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

Function ng_ppp_rcvdata_encrypt

freebsd/netgraph/ng_ppp.c:1248–1259  ·  view source on GitHub ↗

* Receive data on a hook encrypt. */

Source from the content-addressed store, hash-verified

1246 * Receive data on a hook encrypt.
1247 */
1248static int
1249ng_ppp_rcvdata_encrypt(hook_p hook, item_p item)
1250{
1251 const node_p node = NG_HOOK_NODE(hook);
1252 const priv_p priv = NG_NODE_PRIVATE(node);
1253
1254 if (!priv->conf.enableEncryption) {
1255 NG_FREE_ITEM(item);
1256 return (ENXIO);
1257 }
1258 return (ng_ppp_mp_xmit(node, item, PROT_CRYPTD));
1259}
1260
1261static int
1262ng_ppp_crypt_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum)

Callers

nothing calls this directly

Calls 1

ng_ppp_mp_xmitFunction · 0.85

Tested by

no test coverage detected