diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-02 16:28:00 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:10:27 +0100 |
| commit | f027f1a3f7c45bafd7f99776548ef73ba3cc22ec (patch) | |
| tree | a004cfeb34c34ae36ef5b2dbfd65f7947c980c61 /sys/linux/socket_can.txt | |
| parent | 002cecf2022de3ab01c87f905477aa3b063d73fc (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_can.txt')
| -rw-r--r-- | sys/linux/socket_can.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/linux/socket_can.txt b/sys/linux/socket_can.txt index 7b58d7b5e..3c8323268 100644 --- a/sys/linux/socket_can.txt +++ b/sys/linux/socket_can.txt @@ -30,8 +30,7 @@ ioctl$ifreq_SIOCGIFINDEX_vcan(fd sock_can, cmd const[SIOCGIFINDEX], arg ptr[inou ifreq_SIOCGIFINDEX_vcan { ifr_ifrn string["vcan0", IFNAMSIZ] ifr_ifru ifindex_vcan - pad array[const[0, int8], 20] -} [packed] +} [size[IFREQ_SIZE]] sockaddr_can { can_family const[AF_CAN, int16] |
