diff options
author | guy <guy> | 2003-11-20 02:02:38 +0000 |
---|---|---|
committer | guy <guy> | 2003-11-20 02:02:38 +0000 |
commit | 2c618b93a0ed7ede8a1cf90e425b343c25265dc3 (patch) | |
tree | 983278a360c37b20b87f986820e2b72110595d6e /pcap-snoop.c | |
parent | 028bb1b31de62247b5c23a2ce76501c985ea1f14 (diff) |
Add "getnonblock" and "setnonblock" operations, and set the function
pointers appropriately, rather than using #ifdefs and run-time checks.
Get rid of declaration of non-existent "pcap_set_datalink_platform()"
routine.
Diffstat (limited to 'pcap-snoop.c')
-rw-r--r-- | pcap-snoop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap-snoop.c b/pcap-snoop.c index 6161774c..0feaf7e4 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.47 2003-11-15 23:24:04 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.48 2003-11-20 02:02:40 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -326,6 +326,8 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, p->read_op = pcap_read_snoop; p->setfilter_op = install_bpf_program; /* no kernel filtering */ p->set_datalink_op = NULL; /* can't change data link type */ + p->getnonblock_op = pcap_getnonblock_fd; + p->setnonblock_op = pcap_setnonblock_fd; p->stats_op = pcap_stats_snoop; p->close_op = pcap_close_snoop; |