- Support 802.1 QinQ as a form of VLAN in filters. - Treat "carp" as equivalent to "vrrp" in filters. - Fix code generated for "ip6 protochain". - Add some new link-layer header types. - Support capturing NetFilter log messages on Linux. - Turn off monitor mode on exit for mac80211 interfaces on Linux. - Fix problems turning monitor mode on for non-mac80211 interfaces - on Linux. - Properly fail if /sys/class/net or /proc/net/dev exist but can't - be opened. - Fail if pcap_activate() is called on an already-activated - pcap_t, and add a test program for that. - Fix filtering in pcap-ng files. - Simplify handling of new DLT_/LINKTYPE_ values. - Expand pcap(3PCAP) man page. - drop libpcap-fix-calculation-of-frame-size.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=21
31 lines
834 B
Diff
31 lines
834 B
Diff
Index: pcap/bpf.h
|
|
===================================================================
|
|
--- pcap/bpf.h.orig
|
|
+++ pcap/bpf.h
|
|
@@ -102,6 +102,25 @@ typedef u_int bpf_u_int32;
|
|
#define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1))
|
|
|
|
/*
|
|
+ * Struct returned by BIOCGSTATS.
|
|
+ */
|
|
+struct bpf_stat {
|
|
+ u_int bs_recv; /* number of packets received */
|
|
+ u_int bs_drop; /* number of packets dropped */
|
|
+};
|
|
+
|
|
+/*
|
|
+ * Structure prepended to each packet.
|
|
+ */
|
|
+struct bpf_hdr {
|
|
+ struct timeval bh_tstamp; /* time stamp */
|
|
+ bpf_u_int32 bh_caplen; /* length of captured portion */
|
|
+ bpf_u_int32 bh_datalen; /* original length of packet */
|
|
+ u_short bh_hdrlen; /* length of bpf header (this struct
|
|
+ plus alignment padding) */
|
|
+};
|
|
+
|
|
+/*
|
|
* Structure for "pcap_compile()", "pcap_setfilter()", etc..
|
|
*/
|
|
struct bpf_program {
|