MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_clear_cachedkeys_ep

Function sctp_clear_cachedkeys_ep

freebsd/netinet/sctp_auth.c:1165–1179  ·  view source on GitHub ↗

- * clear any cached key(s) if they match the given key id for all assocs on * an endpoint. * ASSUMES INP_WLOCK is already held */

Source from the content-addressed store, hash-verified

1163 * ASSUMES INP_WLOCK is already held
1164 */
1165void
1166sctp_clear_cachedkeys_ep(struct sctp_inpcb *inp, uint16_t keyid)
1167{
1168 struct sctp_tcb *stcb;
1169
1170 if (inp == NULL)
1171 return;
1172
1173 /* clear the cached keys on all assocs on this instance */
1174 LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) {
1175 SCTP_TCB_LOCK(stcb);
1176 sctp_clear_cachedkeys(stcb, keyid);
1177 SCTP_TCB_UNLOCK(stcb);
1178 }
1179}
1180
1181/*-
1182 * delete a shared key from an association

Callers 2

sctp_setoptFunction · 0.85
sctp_delete_sharedkey_epFunction · 0.85

Calls 1

sctp_clear_cachedkeysFunction · 0.85

Tested by

no test coverage detected