Skip to content

Commit

Permalink
net: Order ports in same order as addresses in flow objects.
Browse files Browse the repository at this point in the history
For consistency.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 1, 2011
1 parent fab0dc8 commit 9b12c75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/net/flow.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ struct flowi_common {

union flowi_uli {
struct {
__be16 sport;
__be16 dport;
__be16 sport;
} ports;

struct {
Expand All @@ -36,8 +36,8 @@ union flowi_uli {
} icmpt;

struct {
__le16 sport;
__le16 dport;
__le16 sport;
} dnports;

__be32 spi;
Expand Down Expand Up @@ -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;
}


Expand Down

0 comments on commit 9b12c75

Please sign in to comment.