Skip to content
Snippets Groups Projects
Commit cb63816f authored by Hoelscher's avatar Hoelscher
Browse files

add symbols for freeBSD for sctp_enable_stream_reset

parent fe316863
No related branches found
No related tags found
No related merge requests found
......@@ -3175,7 +3175,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
break;
}
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED) || defined(SCTP_ENABLE_STREAM_RESET)
case EXPR_SCTP_ASSOC_VALUE:
live_optval = malloc(sizeof(struct sctp_assoc_value));
live_optlen = (socklen_t)sizeof(struct sctp_assoc_value);
......@@ -3375,7 +3375,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
result = check_sctp_paddrparams(val_expression->value.sctp_paddrparams, live_optval, error);
break;
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED) || defined(SCTP_ENABLE_STREAM_RESET)
case EXPR_SCTP_ASSOC_VALUE:
result = check_sctp_assoc_value(val_expression->value.sctp_assoc_value, live_optval, error);
break;
......@@ -3467,7 +3467,7 @@ static int syscall_setsockopt(struct state *state, struct syscall_spec *syscall,
#ifdef SCTP_INITMSG
struct sctp_initmsg initmsg;
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED) || defined(SCTP_ENABLE_STREAM_RESET)
struct sctp_assoc_value assoc_value;
#endif
#ifdef SCTP_AUTH_ACTIVE_KEY
......@@ -3609,7 +3609,7 @@ static int syscall_setsockopt(struct state *state, struct syscall_spec *syscall,
optval = &initmsg;
break;
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED) || defined(SCTP_ENABLE_STREAM_RESET)
case EXPR_SCTP_ASSOC_VALUE:
if (get_sctp_assoc_t(val_expression->value.sctp_assoc_value->assoc_id,
&assoc_value.assoc_id, error)) {
......
......@@ -264,6 +264,12 @@ struct int_symbol platform_symbols_table[] = {
{ SCTP_USE_EXT_RCVINFO, "SCTP_USE_EXT_RCVINFO" },
{ SCTP_AUTH_HMAC_ID_SHA1, "SCTP_AUTH_HMAC_ID_SHA1" },
{ SCTP_AUTH_HMAC_ID_SHA256, "SCTP_AUTH_HMAC_ID_SHA256" },
/* sctp stream reconfiguration */
{ SCTP_ENABLE_STREAM_RESET, "SCTP_ENABLE_STREAM_RESET" },
{ SCTP_ENABLE_RESET_STREAM_REQ, "SCTP_ENABLE_RESET_STREAM_REQ" },
{ SCTP_ENABLE_RESET_ASSOC_REQ, "SCTP_ENABLE_RESET_ASSOC_REQ" },
{ SCTP_ENABLE_CHANGE_ASSOC_REQ, "SCTP_ENABLE_CHANGE_ASSOC_REQ" },
/* /usr/include/netinet/tcp.h */
{ TCP_NODELAY, "TCP_NODELAY" },
{ TCP_MAXSEG, "TCP_MAXSEG" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment