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

Function ng_ppp_rcvdata_inet

freebsd/netgraph/ng_ppp.c:785–796  ·  view source on GitHub ↗

* Receive data on a hook inet. */

Source from the content-addressed store, hash-verified

783 * Receive data on a hook inet.
784 */
785static int
786ng_ppp_rcvdata_inet(hook_p hook, item_p item)
787{
788 const node_p node = NG_HOOK_NODE(hook);
789 const priv_p priv = NG_NODE_PRIVATE(node);
790
791 if (!priv->conf.enableIP) {
792 NG_FREE_ITEM(item);
793 return (ENXIO);
794 }
795 return (ng_ppp_hcomp_xmit(NG_HOOK_NODE(hook), item, PROT_IP));
796}
797
798/*
799 * Receive data on a hook inet and pass it directly to first link.

Callers

nothing calls this directly

Calls 1

ng_ppp_hcomp_xmitFunction · 0.85

Tested by

no test coverage detected