diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 00:29:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:44 -0500 |
commit | 1d28f42c1bd4bb2363d88df74d0128b4da135b4a (patch) | |
tree | cb2e652fe79a2bc307e871bc2d3fa51cc8051e45 /include/net/flow.h | |
parent | ca116922afa8cc5ad46b00c0a637b1cde5ca478a (diff) |
net: Put flowi_* prefix on AF independent members of struct flowi
I intend to turn struct flowi into a union of AF specific flowi
structs. There will be a common structure that each variant includes
first, much like struct sock_common.
This is the first step to move in that direction.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow.h')
-rw-r--r-- | include/net/flow.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/net/flow.h b/include/net/flow.h index a661fd6f76ba..8c4dbd078490 100644 --- a/include/net/flow.h +++ b/include/net/flow.h | |||
@@ -11,17 +11,17 @@ | |||
11 | #include <asm/atomic.h> | 11 | #include <asm/atomic.h> |
12 | 12 | ||
13 | struct flowi { | 13 | struct flowi { |
14 | int oif; | 14 | int flowi_oif; |
15 | int iif; | 15 | int flowi_iif; |
16 | __u32 mark; | 16 | __u32 flowi_mark; |
17 | __u8 tos; | 17 | __u8 flowi_tos; |
18 | __u8 scope; | 18 | __u8 flowi_scope; |
19 | __u8 proto; | 19 | __u8 flowi_proto; |
20 | __u8 flags; | 20 | __u8 flowi_flags; |
21 | #define FLOWI_FLAG_ANYSRC 0x01 | 21 | #define FLOWI_FLAG_ANYSRC 0x01 |
22 | #define FLOWI_FLAG_PRECOW_METRICS 0x02 | 22 | #define FLOWI_FLAG_PRECOW_METRICS 0x02 |
23 | #define FLOWI_FLAG_CAN_SLEEP 0x04 | 23 | #define FLOWI_FLAG_CAN_SLEEP 0x04 |
24 | __u32 secid; | 24 | __u32 flowi_secid; |
25 | 25 | ||
26 | union { | 26 | union { |
27 | struct { | 27 | struct { |
@@ -49,8 +49,8 @@ struct flowi { | |||
49 | #define fl6_flowlabel nl_u.ip6_u.flowlabel | 49 | #define fl6_flowlabel nl_u.ip6_u.flowlabel |
50 | #define fl4_dst nl_u.ip4_u.daddr | 50 | #define fl4_dst nl_u.ip4_u.daddr |
51 | #define fl4_src nl_u.ip4_u.saddr | 51 | #define fl4_src nl_u.ip4_u.saddr |
52 | #define fl4_tos tos | 52 | #define fl4_tos flowi_tos |
53 | #define fl4_scope scope | 53 | #define fl4_scope flowi_scope |
54 | 54 | ||
55 | union { | 55 | union { |
56 | struct { | 56 | struct { |
@@ -116,7 +116,7 @@ extern atomic_t flow_cache_genid; | |||
116 | static inline int flow_cache_uli_match(const struct flowi *fl1, | 116 | static inline int flow_cache_uli_match(const struct flowi *fl1, |
117 | const struct flowi *fl2) | 117 | const struct flowi *fl2) |
118 | { | 118 | { |
119 | return (fl1->proto == fl2->proto && | 119 | return (fl1->flowi_proto == fl2->flowi_proto && |
120 | !memcmp(&fl1->uli_u, &fl2->uli_u, sizeof(fl1->uli_u))); | 120 | !memcmp(&fl1->uli_u, &fl2->uli_u, sizeof(fl1->uli_u))); |
121 | } | 121 | } |
122 | 122 | ||