diff options
author | Lawrence Teo <lteo@cvs.openbsd.org> | 2018-04-05 03:47:28 +0000 |
---|---|---|
committer | Lawrence Teo <lteo@cvs.openbsd.org> | 2018-04-05 03:47:28 +0000 |
commit | c8ff793a61f3e71157e0a4d045930085b3b20667 (patch) | |
tree | 627df78cf87d8b96420ad7227ffe711d89c28979 /lib/libpcap/pcap-int.h | |
parent | 60f200a61170b2ba9955ecad57a14acf50ecf870 (diff) |
Import pcap_set_immediate_mode() from mainline libpcap which allows a
libpcap-based program to process packets as soon as they arrive.
feedback from jasper@
ok jca@
(a long time ago)
Diffstat (limited to 'lib/libpcap/pcap-int.h')
-rw-r--r-- | lib/libpcap/pcap-int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpcap/pcap-int.h b/lib/libpcap/pcap-int.h index 079db9828f2..eeb08860243 100644 --- a/lib/libpcap/pcap-int.h +++ b/lib/libpcap/pcap-int.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcap-int.h,v 1.13 2014/04/11 04:08:58 lteo Exp $ */ +/* $OpenBSD: pcap-int.h,v 1.14 2018/04/05 03:47:27 lteo Exp $ */ /* * Copyright (c) 1994, 1995, 1996 @@ -48,6 +48,7 @@ struct pcap_opt { char *source; int promisc; int rfmon; + int immediate; /* immediate mode - deliver packets as soon as they arrive */ }; /* |