summaryrefslogtreecommitdiffstats
path: root/include/net/flow.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-31 18:03:35 -0700
committerDavid S. Miller <davem@davemloft.net>2011-03-31 18:03:35 -0700
commit9b12c75bf4d58dd85c987ee7b6a4356fdc7c1222 (patch)
treee259375a3d420d7de464f634dac6515946e48d85 /include/net/flow.h
parentfab0dc89f0d98459c6ce7fa27422949ac15837fa (diff)
downloadop-kernel-dev-9b12c75bf4d58dd85c987ee7b6a4356fdc7c1222.zip
op-kernel-dev-9b12c75bf4d58dd85c987ee7b6a4356fdc7c1222.tar.gz
net: Order ports in same order as addresses in flow objects.
For consistency. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow.h')
-rw-r--r--include/net/flow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/flow.h b/include/net/flow.h
index 37e77d6..c6d5fe5 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -26,8 +26,8 @@ struct flowi_common {
union flowi_uli {
struct {
- __be16 sport;
__be16 dport;
+ __be16 sport;
} ports;
struct {
@@ -36,8 +36,8 @@ union flowi_uli {
} icmpt;
struct {
- __le16 sport;
__le16 dport;
+ __le16 sport;
} dnports;
__be32 spi;
@@ -86,8 +86,8 @@ static inline void flowi4_init_output(struct flowi4 *fl4, int oif,
fl4->flowi4_secid = 0;
fl4->daddr = daddr;
fl4->saddr = saddr;
- fl4->fl4_sport = sport;
fl4->fl4_dport = dport;
+ fl4->fl4_sport = sport;
}
OpenPOWER on IntegriCloud