Skip to content
Permalink
Browse files

sys/freebsd: add SCTP syscalls

* sys/freebsd: Add SCTP syscalls

* sys/freebsd: SCTP syscalls updated

* sys/freebsd: SCTP syscalls fixed
  • Loading branch information...
msvoelker authored and dvyukov committed Jan 16, 2019
1 parent 505b176 commit c0d4a12ee72a2279eada43d9476d2f8a074c3818
Showing with 2,596 additions and 2 deletions.
  1. +1 −1 executor/defs.h
  2. +176 −0 executor/syscalls.h
  3. +1,771 −1 sys/freebsd/gen/amd64.go
  4. +542 −0 sys/freebsd/socket_inet_sctp.txt
  5. +106 −0 sys/freebsd/socket_inet_sctp_amd64.const
@@ -20,7 +20,7 @@

#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "0ac8cd38f3246ddd0a2f5431819157405b8c3624"
#define SYZ_REVISION "87222f38848c14df07a6a0304da0b1915e3396bb"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -299,6 +299,49 @@ const call_t syscalls[] = {
{"getsockopt", 118},
{"getsockopt$inet6_buf", 118},
{"getsockopt$inet6_int", 118},
{"getsockopt$inet6_sctp_SCTP_ADAPTATION_LAYER", 118},
{"getsockopt$inet6_sctp_SCTP_ASSOCINFO", 118},
{"getsockopt$inet6_sctp_SCTP_AUTH_ACTIVE_KEY", 118},
{"getsockopt$inet6_sctp_SCTP_AUTOCLOSE", 118},
{"getsockopt$inet6_sctp_SCTP_AUTO_ASCONF", 118},
{"getsockopt$inet6_sctp_SCTP_CONTEXT", 118},
{"getsockopt$inet6_sctp_SCTP_DEFAULT_PRINFO", 118},
{"getsockopt$inet6_sctp_SCTP_DEFAULT_SEND_PARAM", 118},
{"getsockopt$inet6_sctp_SCTP_DEFAULT_SNDINFO", 118},
{"getsockopt$inet6_sctp_SCTP_DELAYED_SACK", 118},
{"getsockopt$inet6_sctp_SCTP_DISABLE_FRAGMENTS", 118},
{"getsockopt$inet6_sctp_SCTP_ENABLE_STREAM_RESET", 118},
{"getsockopt$inet6_sctp_SCTP_EVENT", 118},
{"getsockopt$inet6_sctp_SCTP_EVENTS", 118},
{"getsockopt$inet6_sctp_SCTP_EXPLICIT_EOR", 118},
{"getsockopt$inet6_sctp_SCTP_FRAGMENT_INTERLEAVE", 118},
{"getsockopt$inet6_sctp_SCTP_GET_ASSOC_ID_LIST", 118},
{"getsockopt$inet6_sctp_SCTP_GET_ASSOC_NUMBER", 118},
{"getsockopt$inet6_sctp_SCTP_GET_LOCAL_ADDRESSES", 118},
{"getsockopt$inet6_sctp_SCTP_GET_PEER_ADDRESSES", 118},
{"getsockopt$inet6_sctp_SCTP_GET_PEER_ADDR_INFO", 118},
{"getsockopt$inet6_sctp_SCTP_HMAC_IDENT", 118},
{"getsockopt$inet6_sctp_SCTP_INITMSG", 118},
{"getsockopt$inet6_sctp_SCTP_I_WANT_MAPPED_V4_ADDR", 118},
{"getsockopt$inet6_sctp_SCTP_LOCAL_AUTH_CHUNKS", 118},
{"getsockopt$inet6_sctp_SCTP_MAXSEG", 118},
{"getsockopt$inet6_sctp_SCTP_MAX_BURST", 118},
{"getsockopt$inet6_sctp_SCTP_NODELAY", 118},
{"getsockopt$inet6_sctp_SCTP_PARTIAL_DELIVERY_POINT", 118},
{"getsockopt$inet6_sctp_SCTP_PEER_ADDR_PARAMS", 118},
{"getsockopt$inet6_sctp_SCTP_PEER_ADDR_THLDS", 118},
{"getsockopt$inet6_sctp_SCTP_PEER_AUTH_CHUNKS", 118},
{"getsockopt$inet6_sctp_SCTP_PRIMARY_ADDR", 118},
{"getsockopt$inet6_sctp_SCTP_PR_ASSOC_STATUS", 118},
{"getsockopt$inet6_sctp_SCTP_PR_STREAM_STATUS", 118},
{"getsockopt$inet6_sctp_SCTP_PR_SUPPORTED", 118},
{"getsockopt$inet6_sctp_SCTP_RECONFIG_SUPPORTED", 118},
{"getsockopt$inet6_sctp_SCTP_RECVNXTINFO", 118},
{"getsockopt$inet6_sctp_SCTP_RECVRCVINFO", 118},
{"getsockopt$inet6_sctp_SCTP_RESET_STREAMS", 118},
{"getsockopt$inet6_sctp_SCTP_REUSE_PORT", 118},
{"getsockopt$inet6_sctp_SCTP_RTOINFO", 118},
{"getsockopt$inet6_sctp_SCTP_STATUS", 118},
{"getsockopt$inet6_tcp_buf", 118},
{"getsockopt$inet6_tcp_int", 118},
{"getsockopt$inet6_udp", 118},
@@ -309,6 +352,49 @@ const call_t syscalls[] = {
{"getsockopt$inet_mreqn", 118},
{"getsockopt$inet_mreqsrc", 118},
{"getsockopt$inet_opts", 118},
{"getsockopt$inet_sctp_SCTP_ADAPTATION_LAYER", 118},
{"getsockopt$inet_sctp_SCTP_ASSOCINFO", 118},
{"getsockopt$inet_sctp_SCTP_AUTH_ACTIVE_KEY", 118},
{"getsockopt$inet_sctp_SCTP_AUTOCLOSE", 118},
{"getsockopt$inet_sctp_SCTP_AUTO_ASCONF", 118},
{"getsockopt$inet_sctp_SCTP_CONTEXT", 118},
{"getsockopt$inet_sctp_SCTP_DEFAULT_PRINFO", 118},
{"getsockopt$inet_sctp_SCTP_DEFAULT_SEND_PARAM", 118},
{"getsockopt$inet_sctp_SCTP_DEFAULT_SNDINFO", 118},
{"getsockopt$inet_sctp_SCTP_DELAYED_SACK", 118},
{"getsockopt$inet_sctp_SCTP_DISABLE_FRAGMENTS", 118},
{"getsockopt$inet_sctp_SCTP_ENABLE_STREAM_RESET", 118},
{"getsockopt$inet_sctp_SCTP_EVENT", 118},
{"getsockopt$inet_sctp_SCTP_EVENTS", 118},
{"getsockopt$inet_sctp_SCTP_EXPLICIT_EOR", 118},
{"getsockopt$inet_sctp_SCTP_FRAGMENT_INTERLEAVE", 118},
{"getsockopt$inet_sctp_SCTP_GET_ASSOC_ID_LIST", 118},
{"getsockopt$inet_sctp_SCTP_GET_ASSOC_NUMBER", 118},
{"getsockopt$inet_sctp_SCTP_GET_LOCAL_ADDRESSES", 118},
{"getsockopt$inet_sctp_SCTP_GET_PEER_ADDRESSES", 118},
{"getsockopt$inet_sctp_SCTP_GET_PEER_ADDR_INFO", 118},
{"getsockopt$inet_sctp_SCTP_HMAC_IDENT", 118},
{"getsockopt$inet_sctp_SCTP_INITMSG", 118},
{"getsockopt$inet_sctp_SCTP_I_WANT_MAPPED_V4_ADDR", 118},
{"getsockopt$inet_sctp_SCTP_LOCAL_AUTH_CHUNKS", 118},
{"getsockopt$inet_sctp_SCTP_MAXSEG", 118},
{"getsockopt$inet_sctp_SCTP_MAX_BURST", 118},
{"getsockopt$inet_sctp_SCTP_NODELAY", 118},
{"getsockopt$inet_sctp_SCTP_PARTIAL_DELIVERY_POINT", 118},
{"getsockopt$inet_sctp_SCTP_PEER_ADDR_PARAMS", 118},
{"getsockopt$inet_sctp_SCTP_PEER_ADDR_THLDS", 118},
{"getsockopt$inet_sctp_SCTP_PEER_AUTH_CHUNKS", 118},
{"getsockopt$inet_sctp_SCTP_PRIMARY_ADDR", 118},
{"getsockopt$inet_sctp_SCTP_PR_ASSOC_STATUS", 118},
{"getsockopt$inet_sctp_SCTP_PR_STREAM_STATUS", 118},
{"getsockopt$inet_sctp_SCTP_PR_SUPPORTED", 118},
{"getsockopt$inet_sctp_SCTP_RECONFIG_SUPPORTED", 118},
{"getsockopt$inet_sctp_SCTP_RECVNXTINFO", 118},
{"getsockopt$inet_sctp_SCTP_RECVRCVINFO", 118},
{"getsockopt$inet_sctp_SCTP_RESET_STREAMS", 118},
{"getsockopt$inet_sctp_SCTP_REUSE_PORT", 118},
{"getsockopt$inet_sctp_SCTP_RTOINFO", 118},
{"getsockopt$inet_sctp_SCTP_STATUS", 118},
{"getsockopt$inet_tcp_buf", 118},
{"getsockopt$inet_tcp_int", 118},
{"getsockopt$inet_udp", 118},
@@ -388,6 +474,8 @@ const call_t syscalls[] = {
{"semop", 222},
{"sendfile", 393},
{"sendmsg", 28},
{"sendmsg$inet6_sctp", 28},
{"sendmsg$inet_sctp", 28},
{"sendmsg$unix", 28},
{"sendto", 133},
{"sendto$inet", 133},
@@ -412,6 +500,49 @@ const call_t syscalls[] = {
{"setsockopt$inet6_buf", 105},
{"setsockopt$inet6_group_source_req", 105},
{"setsockopt$inet6_int", 105},
{"setsockopt$inet6_sctp_SCTP_ADAPTATION_LAYER", 105},
{"setsockopt$inet6_sctp_SCTP_ADD_STREAMS", 105},
{"setsockopt$inet6_sctp_SCTP_ASSOCINFO", 105},
{"setsockopt$inet6_sctp_SCTP_AUTH_ACTIVE_KEY", 105},
{"setsockopt$inet6_sctp_SCTP_AUTH_CHUNK", 105},
{"setsockopt$inet6_sctp_SCTP_AUTH_DEACTIVATE_KEY", 105},
{"setsockopt$inet6_sctp_SCTP_AUTH_DELETE_KEY", 105},
{"setsockopt$inet6_sctp_SCTP_AUTH_KEY", 105},
{"setsockopt$inet6_sctp_SCTP_AUTOCLOSE", 105},
{"setsockopt$inet6_sctp_SCTP_AUTO_ASCONF", 105},
{"setsockopt$inet6_sctp_SCTP_BINDX_ADD_ADDR", 105},
{"setsockopt$inet6_sctp_SCTP_BINDX_REM_ADDR", 105},
{"setsockopt$inet6_sctp_SCTP_CONNECT_X", 105},
{"setsockopt$inet6_sctp_SCTP_CONTEXT", 105},
{"setsockopt$inet6_sctp_SCTP_DEFAULT_PRINFO", 105},
{"setsockopt$inet6_sctp_SCTP_DEFAULT_SEND_PARAM", 105},
{"setsockopt$inet6_sctp_SCTP_DEFAULT_SNDINFO", 105},
{"setsockopt$inet6_sctp_SCTP_DELAYED_SACK", 105},
{"setsockopt$inet6_sctp_SCTP_DISABLE_FRAGMENTS", 105},
{"setsockopt$inet6_sctp_SCTP_ENABLE_STREAM_RESET", 105},
{"setsockopt$inet6_sctp_SCTP_EVENT", 105},
{"setsockopt$inet6_sctp_SCTP_EVENTS", 105},
{"setsockopt$inet6_sctp_SCTP_EXPLICIT_EOR", 105},
{"setsockopt$inet6_sctp_SCTP_FRAGMENT_INTERLEAVE", 105},
{"setsockopt$inet6_sctp_SCTP_HMAC_IDENT", 105},
{"setsockopt$inet6_sctp_SCTP_INITMSG", 105},
{"setsockopt$inet6_sctp_SCTP_I_WANT_MAPPED_V4_ADDR", 105},
{"setsockopt$inet6_sctp_SCTP_MAXSEG", 105},
{"setsockopt$inet6_sctp_SCTP_MAX_BURST", 105},
{"setsockopt$inet6_sctp_SCTP_NODELAY", 105},
{"setsockopt$inet6_sctp_SCTP_PARTIAL_DELIVERY_POINT", 105},
{"setsockopt$inet6_sctp_SCTP_PEER_ADDR_PARAMS", 105},
{"setsockopt$inet6_sctp_SCTP_PEER_ADDR_THLDS", 105},
{"setsockopt$inet6_sctp_SCTP_PRIMARY_ADDR", 105},
{"setsockopt$inet6_sctp_SCTP_PR_SUPPORTED", 105},
{"setsockopt$inet6_sctp_SCTP_RECONFIG_SUPPORTED", 105},
{"setsockopt$inet6_sctp_SCTP_RECVNXTINFO", 105},
{"setsockopt$inet6_sctp_SCTP_RECVRCVINFO", 105},
{"setsockopt$inet6_sctp_SCTP_RESET_ASSOC", 105},
{"setsockopt$inet6_sctp_SCTP_RESET_STREAMS", 105},
{"setsockopt$inet6_sctp_SCTP_REUSE_PORT", 105},
{"setsockopt$inet6_sctp_SCTP_RTOINFO", 105},
{"setsockopt$inet6_sctp_SCTP_SET_PEER_PRIMARY_ADDR", 105},
{"setsockopt$inet6_tcp_TCP_CONGESTION", 105},
{"setsockopt$inet6_tcp_TCP_FASTOPEN", 105},
{"setsockopt$inet6_tcp_TCP_FUNCTION_BLK", 105},
@@ -429,6 +560,49 @@ const call_t syscalls[] = {
{"setsockopt$inet_mreqsrc", 105},
{"setsockopt$inet_msfilter", 105},
{"setsockopt$inet_opts", 105},
{"setsockopt$inet_sctp_SCTP_ADAPTATION_LAYER", 105},
{"setsockopt$inet_sctp_SCTP_ADD_STREAMS", 105},
{"setsockopt$inet_sctp_SCTP_ASSOCINFO", 105},
{"setsockopt$inet_sctp_SCTP_AUTH_ACTIVE_KEY", 105},
{"setsockopt$inet_sctp_SCTP_AUTH_CHUNK", 105},
{"setsockopt$inet_sctp_SCTP_AUTH_DEACTIVATE_KEY", 105},
{"setsockopt$inet_sctp_SCTP_AUTH_DELETE_KEY", 105},
{"setsockopt$inet_sctp_SCTP_AUTH_KEY", 105},
{"setsockopt$inet_sctp_SCTP_AUTOCLOSE", 105},
{"setsockopt$inet_sctp_SCTP_AUTO_ASCONF", 105},
{"setsockopt$inet_sctp_SCTP_BINDX_ADD_ADDR", 105},
{"setsockopt$inet_sctp_SCTP_BINDX_REM_ADDR", 105},
{"setsockopt$inet_sctp_SCTP_CONNECT_X", 105},
{"setsockopt$inet_sctp_SCTP_CONTEXT", 105},
{"setsockopt$inet_sctp_SCTP_DEFAULT_PRINFO", 105},
{"setsockopt$inet_sctp_SCTP_DEFAULT_SEND_PARAM", 105},
{"setsockopt$inet_sctp_SCTP_DEFAULT_SNDINFO", 105},
{"setsockopt$inet_sctp_SCTP_DELAYED_SACK", 105},
{"setsockopt$inet_sctp_SCTP_DISABLE_FRAGMENTS", 105},
{"setsockopt$inet_sctp_SCTP_ENABLE_STREAM_RESET", 105},
{"setsockopt$inet_sctp_SCTP_EVENT", 105},
{"setsockopt$inet_sctp_SCTP_EVENTS", 105},
{"setsockopt$inet_sctp_SCTP_EXPLICIT_EOR", 105},
{"setsockopt$inet_sctp_SCTP_FRAGMENT_INTERLEAVE", 105},
{"setsockopt$inet_sctp_SCTP_HMAC_IDENT", 105},
{"setsockopt$inet_sctp_SCTP_INITMSG", 105},
{"setsockopt$inet_sctp_SCTP_I_WANT_MAPPED_V4_ADDR", 105},
{"setsockopt$inet_sctp_SCTP_MAXSEG", 105},
{"setsockopt$inet_sctp_SCTP_MAX_BURST", 105},
{"setsockopt$inet_sctp_SCTP_NODELAY", 105},
{"setsockopt$inet_sctp_SCTP_PARTIAL_DELIVERY_POINT", 105},
{"setsockopt$inet_sctp_SCTP_PEER_ADDR_PARAMS", 105},
{"setsockopt$inet_sctp_SCTP_PEER_ADDR_THLDS", 105},
{"setsockopt$inet_sctp_SCTP_PRIMARY_ADDR", 105},
{"setsockopt$inet_sctp_SCTP_PR_SUPPORTED", 105},
{"setsockopt$inet_sctp_SCTP_RECONFIG_SUPPORTED", 105},
{"setsockopt$inet_sctp_SCTP_RECVNXTINFO", 105},
{"setsockopt$inet_sctp_SCTP_RECVRCVINFO", 105},
{"setsockopt$inet_sctp_SCTP_RESET_ASSOC", 105},
{"setsockopt$inet_sctp_SCTP_RESET_STREAMS", 105},
{"setsockopt$inet_sctp_SCTP_REUSE_PORT", 105},
{"setsockopt$inet_sctp_SCTP_RTOINFO", 105},
{"setsockopt$inet_sctp_SCTP_SET_PEER_PRIMARY_ADDR", 105},
{"setsockopt$inet_tcp_TCP_CONGESTION", 105},
{"setsockopt$inet_tcp_TCP_FASTOPEN", 105},
{"setsockopt$inet_tcp_TCP_FUNCTION_BLK", 105},
@@ -460,11 +634,13 @@ const call_t syscalls[] = {
{"socket$inet6", 97},
{"socket$inet6_icmp", 97},
{"socket$inet6_icmp_raw", 97},
{"socket$inet6_sctp", 97},
{"socket$inet6_tcp", 97},
{"socket$inet6_udp", 97},
{"socket$inet6_udplite", 97},
{"socket$inet_icmp", 97},
{"socket$inet_icmp_raw", 97},
{"socket$inet_sctp", 97},
{"socket$inet_tcp", 97},
{"socket$inet_udp", 97},
{"socket$inet_udplite", 97},
Oops, something went wrong.

0 comments on commit c0d4a12

Please sign in to comment.
You can’t perform that action at this time.