summaryrefslogtreecommitdiffstats
path: root/kernel/linux/include
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-05-12 17:11:57 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-05-12 17:11:57 +0000
commita9d694d7194f58fd7024b15a60b31ca9cf115936 (patch)
tree873d6d26a631f0b9d0dab4475e8957875807d423 /kernel/linux/include
parentf8c9021beb0f42eca8001fb50123ef8eefe5a572 (diff)
Chris Vitale <csv_at_bluetail.com>
Diffstat (limited to 'kernel/linux/include')
-rw-r--r--kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h b/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h
new file mode 100644
index 0000000..9fcc8ee
--- /dev/null
+++ b/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h
@@ -0,0 +1,46 @@
+#ifndef __LINUX_BRIDGE_EBT_802_3_H
+#define __LINUX_BRIDGE_EBT_802_3_H
+
+#define EBT_802_3_SAP 0x01
+#define EBT_802_3_TYPE 0x02
+
+#define EBT_802_3_MATCH "802_3"
+
+#define EBT_802_3_MASK (EBT_802_3_SAP | EBT_802_3_TYPE | EBT_802_3)
+
+/* ui has one byte ctrl, ni has two */
+struct hdr_ui {
+ uint8_t dsap;
+ uint8_t ssap;
+ uint8_t ctrl;
+ uint8_t orig[3];
+ uint16_t type;
+};
+
+struct hdr_ni {
+ uint8_t dsap;
+ uint8_t ssap;
+ uint16_t ctrl;
+ uint8_t orig[3];
+ uint16_t type;
+};
+
+struct ebt_802_3_hdr {
+ uint8_t daddr[6];
+ uint8_t saddr[6];
+ uint16_t len;
+ union {
+ struct hdr_ui ui;
+ struct hdr_ni ni;
+ } llc;
+};
+
+struct ebt_802_3_info
+{
+ uint8_t sap;
+ uint16_t type;
+ uint8_t bitmask;
+ uint8_t invflags;
+};
+
+#endif