diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-09-17 04:32:11 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-11 01:51:30 +0200 |
commit | 730fc3d05cd4ba4c9ce2de91f3d43349e95dbbf5 (patch) | |
tree | 50a59c6592a7546f9d54364f26dc2a03f5f18345 /net/sctp/sm_sideeffect.c | |
parent | [SCTP]: Implement SCTP-AUTH initializations. (diff) | |
download | linux-730fc3d05cd4ba4c9ce2de91f3d43349e95dbbf5.tar.xz linux-730fc3d05cd4ba4c9ce2de91f3d43349e95dbbf5.zip |
[SCTP]: Implete SCTP-AUTH parameter processing
Implement processing for the CHUNKS, RANDOM, and HMAC parameters and
deal with how this parameters are effected by association restarts.
In particular, during unexpeted INIT processing, we need to reply with
parameters from the original INIT chunk. Also, after restart, we need
to update the old association with new peer parameters and change the
association shared keys.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_sideeffect.c')
-rw-r--r-- | net/sctp/sm_sideeffect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 8d7890083493..bbdc938da86f 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c @@ -1524,6 +1524,11 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, sctp_cmd_adaptation_ind(commands, asoc); break; + case SCTP_CMD_ASSOC_SHKEY: + error = sctp_auth_asoc_init_active_key(asoc, + GFP_ATOMIC); + break; + default: printk(KERN_WARNING "Impossible command: %u, %p\n", cmd->verb, cmd->obj.ptr); |