Skip to content

Commit

Permalink
[IPV4]: ports in struct inet_sock are net-endian
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent dddc93c commit 2816e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/net/inet_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ struct inet_sock {
/* Socket demultiplex comparisons on incoming packets. */
__be32 daddr;
__be32 rcv_saddr;
__u16 dport;
__be16 dport;
__u16 num;
__be32 saddr;
__s16 uc_ttl;
__u16 cmsg_flags;
struct ip_options *opt;
__u16 sport;
__be16 sport;
__u16 id;
__u8 tos;
__u8 mc_ttl;
Expand Down

0 comments on commit 2816e12

Please sign in to comment.