summaryrefslogtreecommitdiff
path: root/filter/filter.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-09-26 22:08:21 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2013-09-26 22:08:21 +0200
commita5fc59587fe864e4fcfb44eb3be57231b4ca339b (patch)
tree8c9459d5a432e85e8a3febb0c42fa6674fede9df /filter/filter.h
parent4df2019ebfc0f77feb16b6a33dea6d5ac595f55e (diff)
Rewrites static attribute filter code and adds ifname/ifindex attributes.
Thanks to Sergey Popovich for the original ifname/ifindex patch.
Diffstat (limited to 'filter/filter.h')
-rw-r--r--filter/filter.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/filter/filter.h b/filter/filter.h
index 1d5150e7..dcac8253 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -172,6 +172,19 @@ void val_print(struct f_val v);
#define T_SET 0x80
#define T_PREFIX_SET 0x81
+
+#define SA_FROM 1
+#define SA_GW 2
+#define SA_NET 3
+#define SA_PROTO 4
+#define SA_SOURCE 5
+#define SA_SCOPE 6
+#define SA_CAST 7
+#define SA_DEST 8
+#define SA_IFNAME 9
+#define SA_IFINDEX 10
+
+
struct f_tree {
struct f_tree *left, *right;
struct f_val from, to;