aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/fib_rules.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/fib_rules.h')
-rw-r--r--include/net/fib_rules.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h
index 62bebcb2a51c..d4e875a58f8b 100644
--- a/include/net/fib_rules.h
+++ b/include/net/fib_rules.h
@@ -11,6 +11,7 @@ struct fib_rule {
11 struct list_head list; 11 struct list_head list;
12 atomic_t refcnt; 12 atomic_t refcnt;
13 int iifindex; 13 int iifindex;
14 int oifindex;
14 u32 mark; 15 u32 mark;
15 u32 mark_mask; 16 u32 mark_mask;
16 u32 pref; 17 u32 pref;
@@ -20,6 +21,7 @@ struct fib_rule {
20 u32 target; 21 u32 target;
21 struct fib_rule * ctarget; 22 struct fib_rule * ctarget;
22 char iifname[IFNAMSIZ]; 23 char iifname[IFNAMSIZ];
24 char oifname[IFNAMSIZ];
23 struct rcu_head rcu; 25 struct rcu_head rcu;
24 struct net * fr_net; 26 struct net * fr_net;
25}; 27};
@@ -68,6 +70,7 @@ struct fib_rules_ops {
68 70
69#define FRA_GENERIC_POLICY \ 71#define FRA_GENERIC_POLICY \
70 [FRA_IIFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \ 72 [FRA_IIFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \
73 [FRA_OIFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \
71 [FRA_PRIORITY] = { .type = NLA_U32 }, \ 74 [FRA_PRIORITY] = { .type = NLA_U32 }, \
72 [FRA_FWMARK] = { .type = NLA_U32 }, \ 75 [FRA_FWMARK] = { .type = NLA_U32 }, \
73 [FRA_FWMASK] = { .type = NLA_U32 }, \ 76 [FRA_FWMASK] = { .type = NLA_U32 }, \