[GLLUG] Ports > 65535 with netcat

STeve Andre' andres at msu.edu
Tue Jan 13 15:12:09 EST 2009


On Tuesday 13 January 2009 15:05:19 Karl Schuttler wrote:
> When you specify a port above 65535 in netcat, such as 70000, it does
> <high invalid port>-65536 and uses that port number (4464 in 70000's
> case i think). Can anyone come up with a good reason _why_ netcat does
> this, code wise? What makes it do this?
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://mailman.egr.msu.edu/mailman/listinfo/linux-user

It's modulo 16 bit-- 70000 minus 4464 is 65535.  Seems silly to me to
do this and not complain, as port 70000 does not exist.

--STeve Andre'



More information about the linux-user mailing list