From: Alexey Dobriyan Date: Tue, 29 Aug 2006 06:58:32 +0000 (-0700) Subject: [IPV4]: Make struct sockaddr_in::sin_port __be16 X-Git-Tag: v2.6.19-rc1~1272^2~97 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd360007a0eb8cbf17c006cca42aa884d33f96be;p=linux-2.6 [IPV4]: Make struct sockaddr_in::sin_port __be16 Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/include/linux/in.h b/include/linux/in.h index 9a9d5dd32e..bcaca8399a 100644 --- a/include/linux/in.h +++ b/include/linux/in.h @@ -177,7 +177,7 @@ struct in_pktinfo #define __SOCK_SIZE__ 16 /* sizeof(struct sockaddr) */ struct sockaddr_in { 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 */ /* Pad to size of `struct sockaddr'. */