From: Al Viro Date: Thu, 28 Sep 2006 01:45:27 +0000 (-0700) Subject: [IPV6]: sin6_port is net-endian X-Git-Tag: v2.6.19-rc1~858^2~43 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e38e819bd03e9674c102aaa2c9dc8151a3c3d0;p=linux-2.6 [IPV6]: sin6_port is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/include/linux/in6.h b/include/linux/in6.h index 348ecd4a36..9be6a4756f 100644 --- a/include/linux/in6.h +++ b/include/linux/in6.h @@ -53,7 +53,7 @@ extern const struct in6_addr in6addr_loopback; struct sockaddr_in6 { unsigned short int sin6_family; /* AF_INET6 */ - __u16 sin6_port; /* Transport layer port # */ + __be16 sin6_port; /* Transport layer port # */ __u32 sin6_flowinfo; /* IPv6 flow information */ struct in6_addr sin6_addr; /* IPv6 address */ __u32 sin6_scope_id; /* scope id (new in RFC2553) */