diff options
author | lum <> | 2012-02-09 06:25:35 +0000 |
---|---|---|
committer | lum <> | 2012-02-09 06:25:35 +0000 |
commit | 63b3f8e909c5a7d8692c979173eb2eb59e2de360 (patch) | |
tree | 713c47933adab35cf3915711944fc8a07c598210 | |
parent | 643a61647750633874b3a111004f8106018e11e3 (diff) | |
download | openbsd-63b3f8e909c5a7d8692c979173eb2eb59e2de360.tar.gz openbsd-63b3f8e909c5a7d8692c979173eb2eb59e2de360.tar.bz2 openbsd-63b3f8e909c5a7d8692c979173eb2eb59e2de360.zip |
Update comments. ok deraadt@
-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) |