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

Function sctp_auth_key_acquire

freebsd/netinet/sctp_auth.c:546–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void
547sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id)
548{
549 sctp_sharedkey_t *skey;
550
551 /* find the shared key */
552 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id);
553
554 /* bump the ref count */
555 if (skey) {
556 atomic_add_int(&skey->refcount, 1);
557 SCTPDBG(SCTP_DEBUG_AUTH2,
558 "%s: stcb %p key %u refcount acquire to %d\n",
559 __func__, (void *)stcb, key_id, skey->refcount);
560 }
561}
562
563void
564sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked)

Callers 3

sctp_msg_appendFunction · 0.85
sctp_move_to_outqueueFunction · 0.85
sctp_copy_it_inFunction · 0.85

Calls 1

sctp_find_sharedkeyFunction · 0.85

Tested by

no test coverage detected