Skip to content

Commit 2816e12

Browse files
Al ViroDavid S. Miller
authored andcommitted
[IPV4]: ports in struct inet_sock are net-endian
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dddc93c commit 2816e12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/net/inet_sock.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ struct inet_sock {
112112
/* Socket demultiplex comparisons on incoming packets. */
113113
__be32 daddr;
114114
__be32 rcv_saddr;
115-
__u16 dport;
115+
__be16 dport;
116116
__u16 num;
117117
__be32 saddr;
118118
__s16 uc_ttl;
119119
__u16 cmsg_flags;
120120
struct ip_options *opt;
121-
__u16 sport;
121+
__be16 sport;
122122
__u16 id;
123123
__u8 tos;
124124
__u8 mc_ttl;

0 commit comments

Comments
 (0)