aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_amd64.const
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-02 16:28:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-05 12:10:27 +0100
commitf027f1a3f7c45bafd7f99776548ef73ba3cc22ec (patch)
treea004cfeb34c34ae36ef5b2dbfd65f7947c980c61 /sys/linux/socket_amd64.const
parent002cecf2022de3ab01c87f905477aa3b063d73fc (diff)
sys/linux: use size attributes on structs
1. Add size attribte on sockaddr. 2. Remove sockaddr's that are larger than 16 bytes from sockaddr. 3. Add size attribute on sockaddr_storage which wasn't actually 128 bytes. 4. Add size attribute to ifreq. 5. Fix ifmap field types as uncovered by the size attributes. 6. Fix sockaddr_storage_tcp from struct to union which is should be. 7. Make sockaddr_un_file fixed size as it should be. 8. Fix some explicit paddings that were only correct for 64 bits.
Diffstat (limited to 'sys/linux/socket_amd64.const')
-rw-r--r--sys/linux/socket_amd64.const3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/linux/socket_amd64.const b/sys/linux/socket_amd64.const
index 9814b3cba..a845299fc 100644
--- a/sys/linux/socket_amd64.const
+++ b/sys/linux/socket_amd64.const
@@ -119,6 +119,7 @@ IFF_TUN = 1
IFF_TUN_EXCL = 32768
IFF_VNET_HDR = 16384
IFNAMSIZ = 16
+IFREQ_SIZE = 40
IPPROTO_ICMP = 1
IPV4_FLOW = 16
IPV4_USER_FLOW = 13
@@ -215,6 +216,8 @@ SIOCSIFTXQLEN = 35139
SIOCSMIIREG = 35145
SIOCSPGRP = 35074
SIOCWANDEV = 35146
+SOCKADDR_SIZE = 16
+SOCKADDR_STORAGE_SIZE = 128
SOCK_CLOEXEC = 524288
SOCK_DCCP = 6
SOCK_DGRAM = 2