aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index c4132c1b63a8..0a9a01a5b0d7 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -126,6 +126,9 @@ struct sock;
126struct proto; 126struct proto;
127struct net; 127struct net;
128 128
129typedef __u32 __bitwise __portpair;
130typedef __u64 __bitwise __addrpair;
131
129/** 132/**
130 * struct sock_common - minimal network layer representation of sockets 133 * struct sock_common - minimal network layer representation of sockets
131 * @skc_daddr: Foreign IPv4 addr 134 * @skc_daddr: Foreign IPv4 addr
@@ -155,7 +158,7 @@ struct sock_common {
155 * address on 64bit arches : cf INET_MATCH() and INET_TW_MATCH() 158 * address on 64bit arches : cf INET_MATCH() and INET_TW_MATCH()
156 */ 159 */
157 union { 160 union {
158 unsigned long skc_addrpair; 161 __addrpair skc_addrpair;
159 struct { 162 struct {
160 __be32 skc_daddr; 163 __be32 skc_daddr;
161 __be32 skc_rcv_saddr; 164 __be32 skc_rcv_saddr;
@@ -167,7 +170,7 @@ struct sock_common {
167 }; 170 };
168 /* skc_dport && skc_num must be grouped as well */ 171 /* skc_dport && skc_num must be grouped as well */
169 union { 172 union {
170 u32 skc_portpair; 173 __portpair skc_portpair;
171 struct { 174 struct {
172 __be16 skc_dport; 175 __be16 skc_dport;
173 __u16 skc_num; 176 __u16 skc_num;