From owner-freebsd-isp Sun Feb 18 12:40: 5 2001 Delivered-To: freebsd-isp@freebsd.org Received: from verdi.nethelp.no (verdi.nethelp.no [158.36.41.162]) by hub.freebsd.org (Postfix) with SMTP id CCF9937B401 for ; Sun, 18 Feb 2001 12:39:59 -0800 (PST) Received: (qmail 18944 invoked by uid 1001); 18 Feb 2001 20:39:57 +0000 (GMT) To: ernie@spooky.eis.net.au Cc: freebsd-isp@freebsd.org Subject: Re: flow-tools port From: sthaug@nethelp.no In-Reply-To: Your message of "Sun, 18 Feb 2001 21:35:03 +1000 (EST)" References: <200102181135.f1IBZ3Z03490@spooky.eis.net.au> X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Sun, 18 Feb 2001 21:39:57 +0100 Message-ID: <18942.982528797@verdi.nethelp.no> Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I tried the above but still no luck. I checked the syslogs and there was a > message that might give a clue: > > flow-capture[23385]: setsockopt(SO_RCVBUF=246725): No buffer space available > > Any ideas? I had to set the size manually. Patch for flow-tools-0.32 included below. Steinar Haug, Nethelp consulting, sthaug@nethelp.no ---------------------------------------------------------------------- *** flow-capture.c.orig Fri Jan 22 18:43:39 1999 --- flow-capture.c Sun Jul 23 19:40:52 2000 *************** *** 346,355 **** } /* socket buffer */ ! sendbuf = MAX_SOCKETBUF; if (setsockopt(fsockfd, SOL_SOCKET, SO_RCVBUF, (char*)&sendbuf, sizeof (sendbuf)) < 0) { ! report(LOG_ERR, "setsockopt(SO_RCVBUF=%d): %s", MAX_SOCKETBUF, strerror(errno)); exit(1); } --- 346,357 ---- } /* socket buffer */ ! /* sendbuf = MAX_SOCKETBUF; */ ! sendbuf = 232448; if (setsockopt(fsockfd, SOL_SOCKET, SO_RCVBUF, (char*)&sendbuf, sizeof (sendbuf)) < 0) { ! /* report(LOG_ERR, "setsockopt(SO_RCVBUF=%d): %s", MAX_SOCKETBUF, */ ! report(LOG_ERR, "setsockopt(SO_RCVBUF=%d): %s", 232448, strerror(errno)); exit(1); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message