This patch is to add sockopt SCTP_AUTH_DEACTIVATE_KEY, as described in section 8.3.4 of RFC6458. This set option indicates that the application will no longer send user messages using the indicated key identifier. Note that RFC requires that only deactivated keys that are no longer used by an association can be deleted, but for the backward compatibility, it is not to check deactivated when deleting or replacing one sh_key.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -99,6 +99,7 @@ typedef __s32 sctp_assoc_t; · 98 unmodified lines | |||
| 99 | #define SCTP_RECVRCVINFO 32 | 99 | #define SCTP_RECVRCVINFO 32 |
| 100 | #define SCTP_RECVNXTINFO 33 | 100 | #define SCTP_RECVNXTINFO 33 |
| 101 | #define SCTP_DEFAULT_SNDINFO 34 | 101 | #define SCTP_DEFAULT_SNDINFO 34 |
| 102 | #define SCTP_AUTH_DEACTIVATE_KEY 35 | ||
| 102 | 103 | ||
| 103 | /* Internal Socket Options. Some of the sctp library functions are | 104 | /* Internal Socket Options. Some of the sctp library functions are |
| 104 | * implemented using these socket options. | 105 | * implemented using these socket options. |