diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/nc/netcat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index e360a6fbe3..cc4683aa32 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: netcat.c,v 1.104 2012/02/09 03:27:36 lum Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.105 2012/02/09 06:25:35 lum Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
| 4 | * | 4 | * |
| @@ -802,7 +802,7 @@ atelnet(int nfd, unsigned char *buf, unsigned int size) | |||
| 802 | 802 | ||
| 803 | /* | 803 | /* |
| 804 | * build_ports() | 804 | * build_ports() |
| 805 | * Build an array or ports in portlist[], listing each port | 805 | * Build an array of ports in portlist[], listing each port |
| 806 | * that we should try to connect to. | 806 | * that we should try to connect to. |
| 807 | */ | 807 | */ |
| 808 | void | 808 | void |
| @@ -865,8 +865,7 @@ build_ports(char *p) | |||
| 865 | /* | 865 | /* |
| 866 | * udptest() | 866 | * udptest() |
| 867 | * Do a few writes to see if the UDP port is there. | 867 | * Do a few writes to see if the UDP port is there. |
| 868 | * XXX - Better way of doing this? Doesn't work for IPv6. | 868 | * Fails once PF state table is full. |
| 869 | * Also fails after around 100 ports checked. | ||
| 870 | */ | 869 | */ |
| 871 | int | 870 | int |
| 872 | udptest(int s) | 871 | udptest(int s) |
