dect
/
libpcap
Archived
13
0
Fork 0

From Albert Chin: fix a cut-and-pasteo.

This commit is contained in:
guy 2008-12-02 16:25:14 +00:00
parent 7d17ac06c0
commit 415170069a
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.58 2008-04-14 20:40:58 guy Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.59 2008-12-02 16:25:14 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@ -226,8 +226,8 @@ pcap_activate_snoop(pcap_t *p)
pcap_strerror(errno));
goto bad;
}
if (handle->opt.buffer_size != 0)
v = handle->opt.buffer_size;
if (p->opt.buffer_size != 0)
v = p->opt.buffer_size;
else
v = 64 * 1024; /* default to 64K buffer size */
(void)setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char *)&v, sizeof(v));