aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/flow.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 17:17:10 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:55 -0500
commitbef55aebd560c5a6f8883c421abccee39978c58c (patch)
treeb1adbe59af8817ee6ef3009fe8c296d3c87fc067 /include/net/flow.h
parent1958b856c1a59c0f1e892b92debb8c9fe4f364dc (diff)
decnet: Convert to use flowidn where applicable.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow.h')
-rw-r--r--include/net/flow.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/net/flow.h b/include/net/flow.h
index 172d76dd8731..7fe5a0f9483a 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -95,9 +95,17 @@ struct flowi6 {
95 95
96struct flowidn { 96struct flowidn {
97 struct flowi_common __fl_common; 97 struct flowi_common __fl_common;
98#define flowidn_oif __fl_common.flowic_oif
99#define flowidn_iif __fl_common.flowic_iif
100#define flowidn_mark __fl_common.flowic_mark
101#define flowidn_scope __fl_common.flowic_scope
102#define flowidn_proto __fl_common.flowic_proto
103#define flowidn_flags __fl_common.flowic_flags
98 __le16 daddr; 104 __le16 daddr;
99 __le16 saddr; 105 __le16 saddr;
100 union flowi_uli uli; 106 union flowi_uli uli;
107#define fld_sport uli.ports.sport
108#define fld_dport uli.ports.dport
101}; 109};
102 110
103struct flowi { 111struct flowi {
@@ -115,10 +123,6 @@ struct flowi {
115#define flowi_proto u.__fl_common.flowic_proto 123#define flowi_proto u.__fl_common.flowic_proto
116#define flowi_flags u.__fl_common.flowic_flags 124#define flowi_flags u.__fl_common.flowic_flags
117#define flowi_secid u.__fl_common.flowic_secid 125#define flowi_secid u.__fl_common.flowic_secid
118#define fld_scope flowi_scope
119
120#define fld_dst u.dn.daddr
121#define fld_src u.dn.saddr
122} __attribute__((__aligned__(BITS_PER_LONG/8))); 126} __attribute__((__aligned__(BITS_PER_LONG/8)));
123 127
124static inline struct flowi *flowi4_to_flowi(struct flowi4 *fl4) 128static inline struct flowi *flowi4_to_flowi(struct flowi4 *fl4)