diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-04-07 18:38:18 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-04-08 20:20:38 +0200 |
| commit | 822b1269b30114d4bec447845fc71afca97c5b63 (patch) | |
| tree | 9cfab9c0a9163a3101e88255006789216545c380 /sys | |
| parent | 83aa41d8a5a9a7c2bb267ca95d3d087697fde27f (diff) | |
sys: add more udp ioctls
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/socket_inet_udp.txt | 10 | ||||
| -rw-r--r-- | sys/socket_inet_udp_amd64.const | 3 | ||||
| -rw-r--r-- | sys/socket_inet_udp_arm64.const | 3 | ||||
| -rw-r--r-- | sys/socket_inet_udp_ppc64le.const | 3 |
4 files changed, 19 insertions, 0 deletions
diff --git a/sys/socket_inet_udp.txt b/sys/socket_inet_udp.txt index dddb4bb20..52073b21e 100644 --- a/sys/socket_inet_udp.txt +++ b/sys/socket_inet_udp.txt @@ -3,7 +3,9 @@ # AF_INET and AF_INET6: UDP support +include <asm/ioctls.h> include <linux/udp.h> +include <uapi/linux/sockios.h> resource sock_udp[sock_in] @@ -42,3 +44,11 @@ setsockopt$inet_udp_encap(fd sock_udp, level const[IPPROTO_UDP], optname const[U setsockopt$inet6_udp_encap(fd sock_udp6, level const[IPPROTO_UDP], optname const[UDP_ENCAP], optval ptr[in, flags[udp_encap_option_values, int32]], optlen len[optval]) # TODO: UDPLITE_SEND_CSCOV, UDPLITE_RECV_CSCOV + +# UDP ioctls + +ioctl$sock_inet_udp_SIOCINQ(fd sock_udp, cmd const[SIOCINQ], arg ptr[out, int32]) +ioctl$sock_inet6_udp_SIOCINQ(fd sock_udp6, cmd const[SIOCINQ], arg ptr[out, int32]) + +ioctl$sock_inet_udp_SIOCOUTQ(fd sock_udp, cmd const[SIOCOUTQ], arg ptr[out, int32]) +ioctl$sock_inet6_udp_SIOCOUTQ(fd sock_udp6, cmd const[SIOCOUTQ], arg ptr[out, int32]) diff --git a/sys/socket_inet_udp_amd64.const b/sys/socket_inet_udp_amd64.const index 4fcd3dfa7..04a4d2b49 100644 --- a/sys/socket_inet_udp_amd64.const +++ b/sys/socket_inet_udp_amd64.const @@ -2,6 +2,8 @@ AF_INET = 2 AF_INET6 = 10 IPPROTO_UDP = 17 +SIOCINQ = 21531 +SIOCOUTQ = 21521 SOCK_DGRAM = 2 UDP_CORK = 1 UDP_ENCAP = 100 @@ -13,6 +15,7 @@ UDP_ENCAP_L2TPINUDP = 3 UDP_NO_CHECK6_RX = 102 UDP_NO_CHECK6_TX = 101 __NR_getsockopt = 55 +__NR_ioctl = 16 __NR_setsockopt = 54 __NR_socket = 41 __NR_socketpair = 53 diff --git a/sys/socket_inet_udp_arm64.const b/sys/socket_inet_udp_arm64.const index 111726315..ba6764344 100644 --- a/sys/socket_inet_udp_arm64.const +++ b/sys/socket_inet_udp_arm64.const @@ -2,6 +2,8 @@ AF_INET = 2 AF_INET6 = 10 IPPROTO_UDP = 17 +SIOCINQ = 21531 +SIOCOUTQ = 21521 SOCK_DGRAM = 2 UDP_CORK = 1 UDP_ENCAP = 100 @@ -13,6 +15,7 @@ UDP_ENCAP_L2TPINUDP = 3 UDP_NO_CHECK6_RX = 102 UDP_NO_CHECK6_TX = 101 __NR_getsockopt = 209 +__NR_ioctl = 29 __NR_setsockopt = 208 __NR_socket = 198 __NR_socketpair = 199 diff --git a/sys/socket_inet_udp_ppc64le.const b/sys/socket_inet_udp_ppc64le.const index d30a309f5..95e285816 100644 --- a/sys/socket_inet_udp_ppc64le.const +++ b/sys/socket_inet_udp_ppc64le.const @@ -2,6 +2,8 @@ AF_INET = 2 AF_INET6 = 10 IPPROTO_UDP = 17 +SIOCINQ = 1074030207 +SIOCOUTQ = 1074033779 SOCK_DGRAM = 2 UDP_CORK = 1 UDP_ENCAP = 100 @@ -13,6 +15,7 @@ UDP_ENCAP_L2TPINUDP = 3 UDP_NO_CHECK6_RX = 102 UDP_NO_CHECK6_TX = 101 __NR_getsockopt = 340 +__NR_ioctl = 54 __NR_setsockopt = 339 __NR_socket = 326 __NR_socketpair = 333 |
