From f027f1a3f7c45bafd7f99776548ef73ba3cc22ec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Mar 2018 16:28:00 +0100 Subject: 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. --- sys/linux/socket_llc_amd64.const | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/linux/socket_llc_amd64.const') diff --git a/sys/linux/socket_llc_amd64.const b/sys/linux/socket_llc_amd64.const index a56b82b69..64ad7ef48 100644 --- a/sys/linux/socket_llc_amd64.const +++ b/sys/linux/socket_llc_amd64.const @@ -34,6 +34,7 @@ LLC_OPT_RETRY = 1 LLC_OPT_RX_WIN = 8 LLC_OPT_SIZE = 2 LLC_OPT_TX_WIN = 7 +# SOCKADDR_SIZE is not set SOCK_DGRAM = 2 SOCK_STREAM = 1 SOL_LLC = 268 -- cgit mrf-deployment