aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/flow.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 03:00:33 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:54 -0500
commit9cce96df5b76691712dba22e83ff5efe900361e1 (patch)
treeeecf99e64c6866af944e1e1644d87737392b2da2 /include/net/flow.h
parentf42454d632753d71ea1a2df09be7bbda32b6372d (diff)
net: Put fl4_* macros to struct flowi4 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.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/include/net/flow.h b/include/net/flow.h
index 8d5b402d600a..44bd37628f55 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -61,6 +61,13 @@ struct flowi4 {
61 __be32 daddr; 61 __be32 daddr;
62 __be32 saddr; 62 __be32 saddr;
63 union flowi_uli uli; 63 union flowi_uli uli;
64#define fl4_sport uli.ports.sport
65#define fl4_dport uli.ports.dport
66#define fl4_icmp_type uli.icmpt.type
67#define fl4_icmp_code uli.icmpt.code
68#define fl4_ipsec_spi uli.spi
69#define fl4_mh_type uli.mht.type
70#define fl4_gre_key uli.gre_key
64}; 71};
65 72
66struct flowi6 { 73struct flowi6 {
@@ -101,8 +108,6 @@ struct flowi {
101#define flowi_proto u.__fl_common.flowic_proto 108#define flowi_proto u.__fl_common.flowic_proto
102#define flowi_flags u.__fl_common.flowic_flags 109#define flowi_flags u.__fl_common.flowic_flags
103#define flowi_secid u.__fl_common.flowic_secid 110#define flowi_secid u.__fl_common.flowic_secid
104#define fl4_tos flowi_tos
105#define fl4_scope flowi_scope
106#define fld_scope flowi_scope 111#define fld_scope flowi_scope
107 112
108#define fld_dst u.dn.daddr 113#define fld_dst u.dn.daddr
@@ -110,15 +115,6 @@ struct flowi {
110#define fl6_dst u.ip6.daddr 115#define fl6_dst u.ip6.daddr
111#define fl6_src u.ip6.saddr 116#define fl6_src u.ip6.saddr
112#define fl6_flowlabel u.ip6.flowlabel 117#define fl6_flowlabel u.ip6.flowlabel
113#define fl4_dst u.ip4.daddr
114#define fl4_src u.ip4.saddr
115#define fl4_sport u.ip4.uli.ports.sport
116#define fl4_dport u.ip4.uli.ports.dport
117#define fl4_icmp_type u.ip4.uli.icmpt.type
118#define fl4_icmp_code u.ip4.uli.icmpt.code
119#define fl4_ipsec_spi u.ip4.uli.spi
120#define fl4_mh_type u.ip4.uli.mht.type
121#define fl4_gre_key u.ip4.uli.gre_key
122#define fl6_sport u.ip6.uli.ports.sport 118#define fl6_sport u.ip6.uli.ports.sport
123#define fl6_dport u.ip6.uli.ports.dport 119#define fl6_dport u.ip6.uli.ports.dport
124#define fl6_icmp_type u.ip6.uli.icmpt.type 120#define fl6_icmp_type u.ip6.uli.icmpt.type