summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlum <>2012-02-09 06:25:35 +0000
committerlum <>2012-02-09 06:25:35 +0000
commit63b3f8e909c5a7d8692c979173eb2eb59e2de360 (patch)
tree713c47933adab35cf3915711944fc8a07c598210
parent643a61647750633874b3a111004f8106018e11e3 (diff)
downloadopenbsd-63b3f8e909c5a7d8692c979173eb2eb59e2de360.tar.gz
openbsd-63b3f8e909c5a7d8692c979173eb2eb59e2de360.tar.bz2
openbsd-63b3f8e909c5a7d8692c979173eb2eb59e2de360.zip
Update comments. ok deraadt@
-rw-r--r--src/usr.bin/nc/netcat.c7
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 */
808void 808void
@@ -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 */
871int 870int
872udptest(int s) 871udptest(int s)