]> err.no Git - linux-2.6/blobdiff - include/linux/fib_rules.h
[NET] fib_rules: goto rule action
[linux-2.6] / include / linux / fib_rules.h
index 5e503f0ca6e46e2b26e724143ad5eece1339fa59..ec9c7b1d3e9193eaaa3ef6dd7ade69bd2f55806a 100644 (file)
@@ -6,6 +6,8 @@
 
 /* rule is permanent, and cannot be deleted */
 #define FIB_RULE_PERMANENT     1
+#define FIB_RULE_INVERT                2
+#define FIB_RULE_UNRESOLVED    4
 
 struct fib_rule_hdr
 {
@@ -28,14 +30,19 @@ enum
        FRA_DST,        /* destination address */
        FRA_SRC,        /* source address */
        FRA_IFNAME,     /* interface name */
-       FRA_UNUSED1,
+       FRA_GOTO,       /* target to jump to (FR_ACT_GOTO) */
        FRA_UNUSED2,
        FRA_PRIORITY,   /* priority/preference */
        FRA_UNUSED3,
        FRA_UNUSED4,
        FRA_UNUSED5,
-       FRA_FWMARK,     /* netfilter mark (IPv4) */
+       FRA_FWMARK,     /* mark */
        FRA_FLOW,       /* flow/class id */
+       FRA_UNUSED6,
+       FRA_UNUSED7,
+       FRA_UNUSED8,
+       FRA_TABLE,      /* Extended table id */
+       FRA_FWMASK,     /* mask for netfilter mark */
        __FRA_MAX
 };
 
@@ -45,7 +52,7 @@ enum
 {
        FR_ACT_UNSPEC,
        FR_ACT_TO_TBL,          /* Pass to fixed table */
-       FR_ACT_RES1,
+       FR_ACT_GOTO,            /* Jump to another rule */
        FR_ACT_RES2,
        FR_ACT_RES3,
        FR_ACT_RES4,