diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-02-09 21:45:36 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-02-10 14:05:04 +0100 |
| commit | 4706ff2514f7eac43bccc80d304b1ad2c61828c3 (patch) | |
| tree | 1add588d6b13f17214f8999dd7f42deb14fe11e9 /sys | |
| parent | 8a8eb125b0ef2bcc81bfba8166a1e5e6fb42de8c (diff) | |
sys: add icmp sock opt
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/socket_inet_icmp.txt | 7 | ||||
| -rw-r--r-- | sys/socket_inet_icmp_amd64.const | 3 | ||||
| -rw-r--r-- | sys/socket_inet_icmp_arm64.const | 3 | ||||
| -rw-r--r-- | sys/socket_inet_icmp_ppc64le.const | 3 |
4 files changed, 16 insertions, 0 deletions
diff --git a/sys/socket_inet_icmp.txt b/sys/socket_inet_icmp.txt index 4343c7b63..c7b41ede3 100644 --- a/sys/socket_inet_icmp.txt +++ b/sys/socket_inet_icmp.txt @@ -29,3 +29,10 @@ icmp6_pair { f0 sock_icmp6 f1 sock_icmp6 } + +icmp_option_types_buf = ICMP_FILTER + +getsockopt$tcp_buf(fd sock_icmp, level const[IPPROTO_ICMP], optname flags[icmp_option_types_buf], optval buffer[out], optlen ptr[inout, len[optval, int32]]) +setsockopt$tcp_buf(fd sock_icmp, level const[IPPROTO_ICMP], optname flags[icmp_option_types_buf], optval buffer[in], optlen len[optval]) +getsockopt$tcp6_buf(fd sock_icmp6, level const[IPPROTO_ICMP], optname flags[icmp_option_types_buf], optval buffer[out], optlen ptr[inout, len[optval, int32]]) +setsockopt$tcp6_buf(fd sock_icmp6, level const[IPPROTO_ICMP], optname flags[icmp_option_types_buf], optval buffer[in], optlen len[optval]) diff --git a/sys/socket_inet_icmp_amd64.const b/sys/socket_inet_icmp_amd64.const index c0d3ea977..aab7d3bfc 100644 --- a/sys/socket_inet_icmp_amd64.const +++ b/sys/socket_inet_icmp_amd64.const @@ -1,9 +1,12 @@ # AUTOGENERATED FILE AF_INET = 2 AF_INET6 = 10 +ICMP_FILTER = 1 IPPROTO_ICMP = 1 IPPROTO_ICMPV6 = 58 SOCK_DGRAM = 2 SOCK_RAW = 3 +__NR_getsockopt = 55 +__NR_setsockopt = 54 __NR_socket = 41 __NR_socketpair = 53 diff --git a/sys/socket_inet_icmp_arm64.const b/sys/socket_inet_icmp_arm64.const index 51a57d6df..e17aeec39 100644 --- a/sys/socket_inet_icmp_arm64.const +++ b/sys/socket_inet_icmp_arm64.const @@ -1,9 +1,12 @@ # AUTOGENERATED FILE AF_INET = 2 AF_INET6 = 10 +ICMP_FILTER = 1 IPPROTO_ICMP = 1 IPPROTO_ICMPV6 = 58 SOCK_DGRAM = 2 SOCK_RAW = 3 +__NR_getsockopt = 209 +__NR_setsockopt = 208 __NR_socket = 198 __NR_socketpair = 199 diff --git a/sys/socket_inet_icmp_ppc64le.const b/sys/socket_inet_icmp_ppc64le.const index 14ec7251c..5ee5a18c6 100644 --- a/sys/socket_inet_icmp_ppc64le.const +++ b/sys/socket_inet_icmp_ppc64le.const @@ -1,9 +1,12 @@ # AUTOGENERATED FILE AF_INET = 2 AF_INET6 = 10 +ICMP_FILTER = 1 IPPROTO_ICMP = 1 IPPROTO_ICMPV6 = 58 SOCK_DGRAM = 2 SOCK_RAW = 3 +__NR_getsockopt = 340 +__NR_setsockopt = 339 __NR_socket = 326 __NR_socketpair = 333 |
