diff options
| author | Bins94 <kaipeng94@gmail.com> | 2019-05-20 05:50:03 -0400 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2019-06-03 18:43:52 +0200 |
| commit | 816587a771077c84b6c06ca93cc94fd656859b58 (patch) | |
| tree | 25866837a9ecfadf4a92651928e997de10a4c26b /sys/linux/socket_inet.txt | |
| parent | 63bf051fc1ccc110060be8490f4f5492b0a78766 (diff) | |
sys/linux: update descriptions of sendmsg/sendmmsg
Add sendmsg$inet, sendmmsg$inet for ip_cmsg_send.
Add sendmsg$inet6, sendmmsg$inet6 for ip6_datagram_send_ctl
Diffstat (limited to 'sys/linux/socket_inet.txt')
| -rw-r--r-- | sys/linux/socket_inet.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/linux/socket_inet.txt b/sys/linux/socket_inet.txt index a18b383f4..6892bae8b 100644 --- a/sys/linux/socket_inet.txt +++ b/sys/linux/socket_inet.txt @@ -7,6 +7,7 @@ include <linux/route.h> include <uapi/linux/if_arp.h> include <uapi/linux/netfilter_ipv6/ip6_tables.h> include <uapi/linux/wireless.h> +include <uapi/linux/in.h> # IP sockets @@ -204,3 +205,31 @@ arpreq_in { arp_netmask sockaddr_in arp_dev devname } + +# sendmsg for ip_cmsg_send + +msghdr_inet { + msg_name ptr[in, sockaddr_in, opt] + msg_namelen len[msg_name, int32] + msg_iov ptr[in, array[iovec_in]] + msg_iovlen len[msg_iov, intptr] + msg_control ptr[in, array[cmsghdr_inet], opt] + msg_controllen bytesize[msg_control, intptr] + msg_flags const[0, int32] +} + +mmsghdr_inet { + msg_hdr msghdr_inet + msg_len const[0, int32] +} + +cmsghdr_inet [ + ip_retopts cmsghdr_t[SOL_IP, IP_RETOPTS, ipv4_options] + ip_pktinfo cmsghdr_t[SOL_IP, IP_PKTINFO, in_pktinfo] + ip_ttl cmsghdr_t[SOL_IP, IP_TTL, int32] + ip_tos_int cmsghdr_t[SOL_IP, IP_TOS, int32] + ip_tos_u8 cmsghdr_t[SOL_IP, IP_TOS, int8] +] [varlen] + +sendmsg$inet(fd sock, msg ptr[in, msghdr_inet], f flags[send_flags]) +sendmmsg$inet(fd sock, mmsg ptr[in, array[mmsghdr_inet]], vlen len[mmsg], f flags[send_flags]) |
