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

Function ng_ppp_rcvdata_vjc_ip

freebsd/netgraph/ng_ppp.c:1069–1080  ·  view source on GitHub ↗

* Receive data on a hook vjc_ip. */

Source from the content-addressed store, hash-verified

1067 * Receive data on a hook vjc_ip.
1068 */
1069static int
1070ng_ppp_rcvdata_vjc_ip(hook_p hook, item_p item)
1071{
1072 const node_p node = NG_HOOK_NODE(hook);
1073 const priv_p priv = NG_NODE_PRIVATE(node);
1074
1075 if (!priv->conf.enableVJDecompression) {
1076 NG_FREE_ITEM(item);
1077 return (ENXIO);
1078 }
1079 return (ng_ppp_proto_recv(node, item, PROT_IP, NG_PPP_BUNDLE_LINKNUM));
1080}
1081
1082/*
1083 * Compression layer

Callers

nothing calls this directly

Calls 1

ng_ppp_proto_recvFunction · 0.85

Tested by

no test coverage detected