Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add definitions from libpcap-1.9.0
details: https://anonhg.NetBSD.org/src/rev/072d67eb2194
branches: trunk
changeset: 993280:072d67eb2194
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 03 15:16:11 2018 +0000
description:
Add definitions from libpcap-1.9.0
diffstat:
sys/net/bpf.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 5138002cbddc -r 072d67eb2194 sys/net/bpf.h
--- a/sys/net/bpf.h Mon Sep 03 14:58:04 2018 +0000
+++ b/sys/net/bpf.h Mon Sep 03 15:16:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.h,v 1.72 2018/06/26 06:48:02 msaitoh Exp $ */
+/* $NetBSD: bpf.h,v 1.73 2018/09/03 15:16:11 christos Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -334,6 +334,16 @@
};
/*
+ * Auxiliary data, for use when interpreting a filter intended for the
+ * Linux kernel when the kernel rejects the filter (requiring us to
+ * run it in userland). It contains VLAN tag information.
+ */
+struct bpf_aux_data {
+ u_short vlan_tag_present;
+ u_short vlan_tag;
+};
+
+/*
* Macros for insn array initializers.
*/
#define BPF_STMT(code, k) { (uint16_t)(code), 0, 0, k }
@@ -546,6 +556,9 @@
int bpf_validate(const struct bpf_insn *, int);
u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
+u_int bpf_filter_with_aux_data(const struct bpf_insn *, const u_char *, u_int, u_int, const struct bpf_aux_data *);
+
+
__END_DECLS
#endif /* !_NET_BPF_H_ */
Home |
Main Index |
Thread Index |
Old Index