Commit cd360007 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

[IPV4]: Make struct sockaddr_in::sin_port __be16

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent def42ff4
...@@ -177,7 +177,7 @@ struct in_pktinfo ...@@ -177,7 +177,7 @@ struct in_pktinfo
#define __SOCK_SIZE__ 16 /* sizeof(struct sockaddr) */ #define __SOCK_SIZE__ 16 /* sizeof(struct sockaddr) */
struct sockaddr_in { struct sockaddr_in {
sa_family_t sin_family; /* Address family */ sa_family_t sin_family; /* Address family */
unsigned short int sin_port; /* Port number */ __be16 sin_port; /* Port number */
struct in_addr sin_addr; /* Internet address */ struct in_addr sin_addr; /* Internet address */
/* Pad to size of `struct sockaddr'. */ /* Pad to size of `struct sockaddr'. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment