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-dlpi.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-dlpi.c')
-rw-r--r-- | pcap-dlpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c index 3500d3cb..4a9eafd4 100644 --- a/pcap-dlpi.c +++ b/pcap-dlpi.c @@ -38,7 +38,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.92 2003-11-15 23:24:02 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.93 2003-11-20 02:02:38 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -707,6 +707,8 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, p->read_op = pcap_read_dlpi; 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_dlpi; p->close_op = pcap_close_dlpi; |