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

Function ng_ppp_rcvdata_vjc_vjip

freebsd/netgraph/ng_ppp.c:1024–1035  ·  view source on GitHub ↗

* Receive data on a hook vjc_vjip. */

Source from the content-addressed store, hash-verified

1022 * Receive data on a hook vjc_vjip.
1023 */
1024static int
1025ng_ppp_rcvdata_vjc_vjip(hook_p hook, item_p item)
1026{
1027 const node_p node = NG_HOOK_NODE(hook);
1028 const priv_p priv = NG_NODE_PRIVATE(node);
1029
1030 if (!priv->conf.enableVJCompression) {
1031 NG_FREE_ITEM(item);
1032 return (ENXIO);
1033 }
1034 return (ng_ppp_comp_xmit(node, item, PROT_IP));
1035}
1036
1037static int
1038ng_ppp_hcomp_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum)

Callers

nothing calls this directly

Calls 1

ng_ppp_comp_xmitFunction · 0.85

Tested by

no test coverage detected