diff options
| author | Patrick Meyer <meyerpatrick@google.com> | 2021-05-22 20:48:47 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-06-07 19:19:55 +0200 |
| commit | b718257f456d456345e1129b27a9340c91c18f3b (patch) | |
| tree | 1206868c25c2ab1a211711b17757cc501abddf0d /sys/darwin/socket_inet_icmp.txt | |
| parent | e59537be40a9ad863e953e187c14dbde57caf1b1 (diff) | |
sys/darwin: initial syscall definitions
Pretty much ripped from freebsd +/- what isn't applicable to darwin.
Diffstat (limited to 'sys/darwin/socket_inet_icmp.txt')
| -rw-r--r-- | sys/darwin/socket_inet_icmp.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/darwin/socket_inet_icmp.txt b/sys/darwin/socket_inet_icmp.txt new file mode 100644 index 000000000..909245812 --- /dev/null +++ b/sys/darwin/socket_inet_icmp.txt @@ -0,0 +1,14 @@ +# Copyright 2021 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +# AF_INET and AF_INET6: ICMP support + +include <sys/types.h> +include <sys/socket.h> +include <netinet/in.h> + +socket$inet_icmp(domain const[AF_INET], type const[SOCK_DGRAM], proto const[IPPROTO_ICMP]) sock_in +socket$inet_icmp_raw(domain const[AF_INET], type const[SOCK_RAW], proto const[IPPROTO_ICMP]) sock_in + +socket$inet6_icmp(domain const[AF_INET6], type const[SOCK_DGRAM], proto const[IPPROTO_ICMPV6]) sock_in6 +socket$inet6_icmp_raw(domain const[AF_INET6], type const[SOCK_RAW], proto const[IPPROTO_ICMPV6]) sock_in6 |
