Skip to contentSkip to conversation

xprt_bindresvport

DISCUSSION Olaf Kirch 1 participant 1 message Dec 8, 2004

Subsystems (2)
lore
Share & tools
lore

Olaf Kirch

author
#0 lore raw

Hi,

the current xprt_bindresvport implementation will search for a privileged port by counting down from 800 to 0. I think this is a bug, because it will potentially interfere with services trying to bind to low ports as well. The bindresvport implementation in glibc picks from the 600-1023 range.

I also think it would be good to start at a "random" port. Otherwise, when you reboot, the server may still have a TCB for the old connection and send you an ACK probe when you try to connect (if all goes well), and the client's TCP stack will RST and fail the connect. If things go not-so-well you have a packet filter somewhere inbetween that eats the ACK probe because its connection tracking engine thinks the connection is in half-open and shouldn't see any SYN-less ACKs yet.

Olaf

Signature · 13 lines
Olaf Kirch     | Things that make Monday morning interesting, #2:
[email protected]   |        "We have 8,000 NFS mount points, why do we keep
---------------+ 	 running out of privileged ports?"


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs