diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 16:36:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:55 -0500 |
commit | 1958b856c1a59c0f1e892b92debb8c9fe4f364dc (patch) | |
tree | 679e060ad7c1e36ee2e5aec0c686921c66c9bc2c /include/net/flow.h | |
parent | 4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c (diff) |
net: Put fl6_* macros to struct flowi6 and use them again.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow.h')
-rw-r--r-- | include/net/flow.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/net/flow.h b/include/net/flow.h index 44bd37628f55..172d76dd8731 100644 --- a/include/net/flow.h +++ b/include/net/flow.h | |||
@@ -84,6 +84,13 @@ struct flowi6 { | |||
84 | struct in6_addr saddr; | 84 | struct in6_addr saddr; |
85 | __be32 flowlabel; | 85 | __be32 flowlabel; |
86 | union flowi_uli uli; | 86 | union flowi_uli uli; |
87 | #define fl6_sport uli.ports.sport | ||
88 | #define fl6_dport uli.ports.dport | ||
89 | #define fl6_icmp_type uli.icmpt.type | ||
90 | #define fl6_icmp_code uli.icmpt.code | ||
91 | #define fl6_ipsec_spi uli.spi | ||
92 | #define fl6_mh_type uli.mht.type | ||
93 | #define fl6_gre_key uli.gre_key | ||
87 | }; | 94 | }; |
88 | 95 | ||
89 | struct flowidn { | 96 | struct flowidn { |
@@ -112,16 +119,6 @@ struct flowi { | |||
112 | 119 | ||
113 | #define fld_dst u.dn.daddr | 120 | #define fld_dst u.dn.daddr |
114 | #define fld_src u.dn.saddr | 121 | #define fld_src u.dn.saddr |
115 | #define fl6_dst u.ip6.daddr | ||
116 | #define fl6_src u.ip6.saddr | ||
117 | #define fl6_flowlabel u.ip6.flowlabel | ||
118 | #define fl6_sport u.ip6.uli.ports.sport | ||
119 | #define fl6_dport u.ip6.uli.ports.dport | ||
120 | #define fl6_icmp_type u.ip6.uli.icmpt.type | ||
121 | #define fl6_icmp_code u.ip6.uli.icmpt.code | ||
122 | #define fl6_ipsec_spi u.ip6.uli.spi | ||
123 | #define fl6_mh_type u.ip6.uli.mht.type | ||
124 | #define fl6_gre_key u.ip6.uli.gre_key | ||
125 | } __attribute__((__aligned__(BITS_PER_LONG/8))); | 122 | } __attribute__((__aligned__(BITS_PER_LONG/8))); |
126 | 123 | ||
127 | static inline struct flowi *flowi4_to_flowi(struct flowi4 *fl4) | 124 | static inline struct flowi *flowi4_to_flowi(struct flowi4 *fl4) |