tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* DEC Unix 3.2c UDP port reallocation scheme not working??????
@ 1996-01-24 18:53 marchany
  0 siblings, 0 replies; only message in thread
From: marchany @ 1996-01-24 18:53 UTC (permalink / raw)
  To: tru64-unix-managers


    What is the allocation algorithm for UDP socket port numbers
    under DEC Unix 3.2c?  What is the range of valid UDP port numbers?  I have a 
    number of UDP client processes that bind to an INADDR_ANY port, do some 
    transactions, and close the port.  I'm seeing a situation where UDP ports
    are reallocated in a short timeframe, causing one client to get a second
    clients packets.  For example, 
 
    	Client A binds to any port and gets 1057
	Client A sends a request to a server, times out, and retries, times 
		out, retries, and gives up.  He closes his socket.
	A short time later, client B binds to any port, gets 1057, and 
		receives the packets sent by the server intended for client A.

    I solved the problem by passing some information in the UDP packet that
    allows the client to ignore packets not meant for him.  However, I
    never encountered this problem running the same code on another Unix
    system; so I'm curious how DEC Unix decides which port it will assign
    next when INADDR_ANY is used in bind().
    
As usual, our call to the DEC support center yielded nothing.

	-Thanks
	Randy Marchany
	VA Tech Computing Center
	Blacksburg, VA 24060

INTERNET: randy.marchany@vt.edu

	

------- End of Forwarded Message

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-01-24 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-24 18:53 DEC Unix 3.2c UDP port reallocation scheme not working?????? marchany

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox