Menu

#7 UDP mode does not work

closed-fixed
5
2003-08-28
2003-08-28
No

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.

Discussion

  • Giovanni Giacobbi

    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.

     
  • Giovanni Giacobbi

    • assigned_to: nobody --> themnemonic
     
  • Giovanni Giacobbi

    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

     
  • Giovanni Giacobbi

    • status: open --> closed-fixed
     
  • Giovanni Giacobbi

    udp bug fix for Netcat 0.7.0

     

Log in to post a comment.