From owner-p4-projects@FreeBSD.ORG Tue Sep 11 09:12:02 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D9E6916A41B; Tue, 11 Sep 2007 09:12:01 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F4C516A418 for ; Tue, 11 Sep 2007 09:12:01 +0000 (UTC) (envelope-from mharvan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A351B13C4A8 for ; Tue, 11 Sep 2007 09:12:01 +0000 (UTC) (envelope-from mharvan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l8B9C1kJ076279 for ; Tue, 11 Sep 2007 09:12:01 GMT (envelope-from mharvan@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8B9C1tA076276 for perforce@freebsd.org; Tue, 11 Sep 2007 09:12:01 GMT (envelope-from mharvan@FreeBSD.org) Date: Tue, 11 Sep 2007 09:12:01 GMT Message-Id: <200709110912.l8B9C1tA076276@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to mharvan@FreeBSD.org using -f From: Matus Harvan To: Perforce Change Reviews Cc: Subject: PERFORCE change 126305 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 09:12:02 -0000 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