Browse Source

[NET]: ip ports in struct flowi are net-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro 18 years ago
parent
commit
cc939d3734
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/net/flow.h

+ 2 - 2
include/net/flow.h

@@ -56,8 +56,8 @@ struct flowi {
 #define FLOWI_FLAG_MULTIPATHOLDROUTE 0x01
 #define FLOWI_FLAG_MULTIPATHOLDROUTE 0x01
 	union {
 	union {
 		struct {
 		struct {
-			__u16	sport;
-			__u16	dport;
+			__be16	sport;
+			__be16	dport;
 		} ports;
 		} ports;
 
 
 		struct {
 		struct {