aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-snoop.c
diff options
context:
space:
mode:
authorguy <guy>2008-12-02 16:25:14 +0000
committerguy <guy>2008-12-02 16:25:14 +0000
commit415170069aae4d1765d11592101f67a4f43d1bcc (patch)
treeebf795cd3da275f689d50776b28aa21edfb45538 /pcap-snoop.c
parent7d17ac06c02f3ba17578e39335c22e95ce3b6c13 (diff)
From Albert Chin: fix a cut-and-pasteo.
Diffstat (limited to 'pcap-snoop.c')
-rw-r--r--pcap-snoop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-snoop.c b/pcap-snoop.c
index dffa76e..c8259a4 100644
--- a/pcap-snoop.c
+++ b/pcap-snoop.c
@@ -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));