Date: Tue, 11 Sep 2007 09:12:01 GMT From: Matus Harvan <mharvan@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 126305 for review Message-ID: <200709110912.l8B9C1tA076276@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=126305 Change 126305 by mharvan@mharvan_peleus on 2007/09/11 09:11:05 s/CATCHAL/LISTENALL/g where I forgot to do it last time Affected files ... .. //depot/projects/soc2007/mharvan-mtund/mtund.src/plugin_tcp.c#17 edit .. //depot/projects/soc2007/mharvan-mtund/sys.patches/usr_include.patch#3 edit Differences ... ==== //depot/projects/soc2007/mharvan-mtund/mtund.src/plugin_tcp.c#17 (text+ko) ==== @@ -51,7 +51,7 @@ #define MAXTMPCONNS 10 #define TEMP_CONN_TIMEOUT 5 -#define USE_TCP_CATCHALL 1 +#define USE_TCP_LISTENALL 1 #define min(a,b) ( (a>b) ? b : a ) @@ -393,12 +393,12 @@ /* open the socket */ if (server) { data->conns->fd = tcp_listen(port); - /* enable TCP_CATCHALL */ - if (USE_TCP_CATCHALL != 0) { + /* enable TCP_LISTENALL */ + if (USE_TCP_LISTENALL != 0) { int soval = 1; if (0 != setsockopt(data->conns->fd, IPPROTO_TCP, - TCP_CATCHALL, &soval, sizeof(soval))) - warnx("setsockopt(TCP_CATCHALL) failed\n"); + TCP_LISTENALL, &soval, sizeof(soval))) + warnx("setsockopt(TCP_LISTENALL) failed\n"); } event_set(&data->conns->ev, data->conns->fd, EV_PERSIST | EV_READ, ==== //depot/projects/soc2007/mharvan-mtund/sys.patches/usr_include.patch#3 (text+ko) ==== @@ -4,7 +4,7 @@ #define TCP_NOOPT 0x08 /* don't use TCP options */ #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ #define TCP_INFO 0x20 /* retrieve tcp_info structure */ -+#define TCP_LISTENALL 0x40 /* bind to all unused TCP ports */ ++#define TCP_LISTENALL 0x40 /* listen on all unused TCP ports */ #define TCPI_OPT_TIMESTAMPS 0x01 #define TCPI_OPT_SACK 0x02
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709110912.l8B9C1tA076276>