diff options
author | Patrick McHardy <kaber@trash.net> | 2009-12-02 20:25:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-03 15:14:36 -0500 |
commit | 491deb24bf5bf7124141287aaf02c3219783ceab (patch) | |
tree | f0465107e0994c89a1f8afa0091d9e7dd19f52d8 /include | |
parent | d285834001df372f81045bb41092e54943e93c84 (diff) |
net 02/05: fib_rules: rename ifindex/ifname/FRA_IFNAME to iifindex/iifname/FRA_IIFNAME
commit 229e77eec406ad68662f18e49fda8b5d366768c5
Author: Patrick McHardy <kaber@trash.net>
Date: Thu Dec 3 12:05:23 2009 +0100
net: fib_rules: rename ifindex/ifname/FRA_IFNAME to iifindex/iifname/FRA_IIFNAME
The next patch will add oif classification, rename interface related members
and attributes to reflect that they're used for iif classification.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fib_rules.h | 6 | ||||
-rw-r--r-- | include/net/fib_rules.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/fib_rules.h b/include/linux/fib_rules.h index c7e5b700bb91..7e11bb2fa655 100644 --- a/include/linux/fib_rules.h +++ b/include/linux/fib_rules.h | |||
@@ -8,7 +8,8 @@ | |||
8 | #define FIB_RULE_PERMANENT 0x00000001 | 8 | #define FIB_RULE_PERMANENT 0x00000001 |
9 | #define FIB_RULE_INVERT 0x00000002 | 9 | #define FIB_RULE_INVERT 0x00000002 |
10 | #define FIB_RULE_UNRESOLVED 0x00000004 | 10 | #define FIB_RULE_UNRESOLVED 0x00000004 |
11 | #define FIB_RULE_DEV_DETACHED 0x00000008 | 11 | #define FIB_RULE_IIF_DETACHED 0x00000008 |
12 | #define FIB_RULE_DEV_DETACHED FIB_RULE_IIF_DETACHED | ||
12 | 13 | ||
13 | /* try to find source address in routing lookups */ | 14 | /* try to find source address in routing lookups */ |
14 | #define FIB_RULE_FIND_SADDR 0x00010000 | 15 | #define FIB_RULE_FIND_SADDR 0x00010000 |
@@ -31,7 +32,8 @@ enum { | |||
31 | FRA_UNSPEC, | 32 | FRA_UNSPEC, |
32 | FRA_DST, /* destination address */ | 33 | FRA_DST, /* destination address */ |
33 | FRA_SRC, /* source address */ | 34 | FRA_SRC, /* source address */ |
34 | FRA_IFNAME, /* interface name */ | 35 | FRA_IIFNAME, /* interface name */ |
36 | #define FRA_IFNAME FRA_IIFNAME | ||
35 | FRA_GOTO, /* target to jump to (FR_ACT_GOTO) */ | 37 | FRA_GOTO, /* target to jump to (FR_ACT_GOTO) */ |
36 | FRA_UNUSED2, | 38 | FRA_UNUSED2, |
37 | FRA_PRIORITY, /* priority/preference */ | 39 | FRA_PRIORITY, /* priority/preference */ |
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 22fb323cd85e..62bebcb2a51c 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h | |||
@@ -10,7 +10,7 @@ | |||
10 | struct fib_rule { | 10 | struct fib_rule { |
11 | struct list_head list; | 11 | struct list_head list; |
12 | atomic_t refcnt; | 12 | atomic_t refcnt; |
13 | int ifindex; | 13 | int iifindex; |
14 | u32 mark; | 14 | u32 mark; |
15 | u32 mark_mask; | 15 | u32 mark_mask; |
16 | u32 pref; | 16 | u32 pref; |
@@ -19,7 +19,7 @@ struct fib_rule { | |||
19 | u8 action; | 19 | u8 action; |
20 | u32 target; | 20 | u32 target; |
21 | struct fib_rule * ctarget; | 21 | struct fib_rule * ctarget; |
22 | char ifname[IFNAMSIZ]; | 22 | char iifname[IFNAMSIZ]; |
23 | struct rcu_head rcu; | 23 | struct rcu_head rcu; |
24 | struct net * fr_net; | 24 | struct net * fr_net; |
25 | }; | 25 | }; |
@@ -67,7 +67,7 @@ struct fib_rules_ops { | |||
67 | }; | 67 | }; |
68 | 68 | ||
69 | #define FRA_GENERIC_POLICY \ | 69 | #define FRA_GENERIC_POLICY \ |
70 | [FRA_IFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \ | 70 | [FRA_IIFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \ |
71 | [FRA_PRIORITY] = { .type = NLA_U32 }, \ | 71 | [FRA_PRIORITY] = { .type = NLA_U32 }, \ |
72 | [FRA_FWMARK] = { .type = NLA_U32 }, \ | 72 | [FRA_FWMARK] = { .type = NLA_U32 }, \ |
73 | [FRA_FWMASK] = { .type = NLA_U32 }, \ | 73 | [FRA_FWMASK] = { .type = NLA_U32 }, \ |