In my tests, IPv6 worked ok. ok to amend comment? (and small typo) -lum
Index: netcat.c =================================================================== RCS file: /cvs/src/usr.bin/nc/netcat.c,v retrieving revision 1.104 diff -u -p -r1.104 netcat.c --- netcat.c 9 Feb 2012 03:27:36 -0000 1.104 +++ netcat.c 9 Feb 2012 04:45:28 -0000 @@ -802,7 +802,7 @@ atelnet(int nfd, unsigned char *buf, uns /* * build_ports() - * Build an array or ports in portlist[], listing each port + * Build an array of ports in portlist[], listing each port * that we should try to connect to. */ void @@ -865,8 +865,7 @@ build_ports(char *p) /* * udptest() * Do a few writes to see if the UDP port is there. - * XXX - Better way of doing this? Doesn't work for IPv6. - * Also fails after around 100 ports checked. + * Fails once PF state table is full. */ int udptest(int s)
