When in udp mode the listening side locks after first
packet has been sent from sender. First packet is
recieved and printed.
on the same machine:
$ ./netcat -l -u -p 2000
hello
$./netcat -vv -n -u 127.0.0.1 2000
hello
there
read(net): Connection refused
the first packet 'hello' got through, the second packet
'there' did not.
Compiled and run on linux 2.4.20.
Logged In: YES
user_id=361125
Bug confirmed.
In order to allow full-duplex socket comunication, Netcat
restricts the remote socket to the first packet's source
address/port. There seems to be a bug in the code that does
this.
Thank you.
Logged In: YES
user_id=361125
This bug has been fixed and the fix will be included in the
next bugfix release.
In the meanwhile, you may want to use the attached patch to
get the UDP working on the 0.7.0 version.
Regards
udp bug fix for Netcat 0.7.0