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

Function key_senderror

freebsd/netipsec/key.c:7984–7995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7982}
7983
7984static int
7985key_senderror(struct socket *so, struct mbuf *m, int code)
7986{
7987 struct sadb_msg *msg;
7988
7989 IPSEC_ASSERT(m->m_len >= sizeof(struct sadb_msg),
7990 ("mbuf too small, len %u", m->m_len));
7991
7992 msg = mtod(m, struct sadb_msg *);
7993 msg->sadb_msg_errno = code;
7994 return key_sendup_mbuf(so, m, KEY_SENDUP_ONE);
7995}
7996
7997/*
7998 * set the pointer to each header into message buffer.

Callers 15

key_spdaddFunction · 0.85
key_spddeleteFunction · 0.85
key_spddelete2Function · 0.85
key_spdgetFunction · 0.85
key_spdflushFunction · 0.85
key_spddumpFunction · 0.85
key_getspiFunction · 0.85
key_updateFunction · 0.85
key_addFunction · 0.85
key_deleteFunction · 0.85
key_delete_allFunction · 0.85
key_getFunction · 0.85

Calls 1

key_sendup_mbufFunction · 0.85

Tested by

no test coverage detected