Date: Sun, 18 Feb 2001 21:39:57 +0100 From: sthaug@nethelp.no To: ernie@spooky.eis.net.au Cc: freebsd-isp@freebsd.org Subject: Re: flow-tools port Message-ID: <18942.982528797@verdi.nethelp.no> In-Reply-To: Your message of "Sun, 18 Feb 2001 21:35:03 %2B1000 (EST)" References: <200102181135.f1IBZ3Z03490@spooky.eis.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18942.982528797>
