Skip to content
Snippets Groups Projects
Commit 90a225b6 authored by hoelscher's avatar hoelscher
Browse files

add defines for SCTP_AUTH_DELETE_KEY and SCTP_AUTH_DEACTIVATE_KEY

parent 62c05eff
No related branches found
No related tags found
No related merge requests found
...@@ -2610,7 +2610,7 @@ static int check_sctp_initmsg(struct sctp_initmsg_expr *expr, ...@@ -2610,7 +2610,7 @@ static int check_sctp_initmsg(struct sctp_initmsg_expr *expr,
} }
#endif #endif
#ifdef SCTP_AUTH_ACTIVE_KEY #if defined(SCTP_AUTH_ACTIVE_KEY) || defined(SCTP_AUTH_DEACTIVATE_KEY) || defined(SCTP_AUTH_DELETE_KEY)
static int check_sctp_authkeyid(struct sctp_authkeyid_expr *expr, static int check_sctp_authkeyid(struct sctp_authkeyid_expr *expr,
struct sctp_authkeyid *sctp_authkeyid, struct sctp_authkeyid *sctp_authkeyid,
char **error) char **error)
...@@ -3106,7 +3106,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall, ...@@ -3106,7 +3106,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
live_optlen = (socklen_t)sizeof(struct sctp_initmsg); live_optlen = (socklen_t)sizeof(struct sctp_initmsg);
break; break;
#endif #endif
#ifdef SCTP_AUTH_ACTIVE_KEY #if defined(SCTP_AUTH_ACTIVE_KEY) || defined(SCTP_AUTH_DEACTIVATE_KEY) || defined(SCTP_AUTH_DELETE_KEY)
case EXPR_SCTP_AUTHKEYID: case EXPR_SCTP_AUTHKEYID:
live_optval = malloc(sizeof(struct sctp_authkeyid)); live_optval = malloc(sizeof(struct sctp_authkeyid));
live_optlen = (socklen_t)sizeof(struct sctp_authkeyid); live_optlen = (socklen_t)sizeof(struct sctp_authkeyid);
...@@ -3357,7 +3357,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall, ...@@ -3357,7 +3357,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
result = check_sctp_initmsg(val_expression->value.sctp_initmsg, live_optval, error); result = check_sctp_initmsg(val_expression->value.sctp_initmsg, live_optval, error);
break; break;
#endif #endif
#ifdef SCTP_AUTH_ACTIVE_KEY #if defined(SCTP_AUTH_ACTIVE_KEY) || defined(SCTP_AUTH_DEACTIVATE_KEY) || defined(SCTP_AUTH_DELETE_KEY)
case EXPR_SCTP_AUTHKEYID: case EXPR_SCTP_AUTHKEYID:
result = check_sctp_authkeyid(val_expression->value.sctp_authkeyid, live_optval, error); result = check_sctp_authkeyid(val_expression->value.sctp_authkeyid, live_optval, error);
break; break;
...@@ -3664,7 +3664,7 @@ static int syscall_setsockopt(struct state *state, struct syscall_spec *syscall, ...@@ -3664,7 +3664,7 @@ static int syscall_setsockopt(struct state *state, struct syscall_spec *syscall,
optval = &stream_value; optval = &stream_value;
break; break;
#endif #endif
#ifdef SCTP_AUTH_ACTIVE_KEY #if defined(SCTP_AUTH_ACTIVE_KEY) || defined(SCTP_AUTH_DEACTIVATE_KEY) || defined(SCTP_AUTH_DELETE_KEY)
case EXPR_SCTP_AUTHKEYID: case EXPR_SCTP_AUTHKEYID:
if (get_sctp_assoc_t(val_expression->value.sctp_authkeyid->scact_assoc_id, if (get_sctp_assoc_t(val_expression->value.sctp_authkeyid->scact_assoc_id,
&authkeyid.scact_assoc_id, error)) { &authkeyid.scact_assoc_id, error)) {
......
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