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

Function ng_ppp_hcomp_xmit

freebsd/netgraph/ng_ppp.c:971–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969 */
970
971static int
972ng_ppp_hcomp_xmit(node_p node, item_p item, uint16_t proto)
973{
974 const priv_p priv = NG_NODE_PRIVATE(node);
975
976 if (proto == PROT_IP &&
977 priv->conf.enableVJCompression &&
978 priv->vjCompHooked) {
979 int error;
980
981 /* Send packet out hook. */
982 NG_FWD_ITEM_HOOK(error, item, priv->hooks[HOOK_INDEX_VJC_IP]);
983 return (error);
984 }
985
986 return (ng_ppp_comp_xmit(node, item, proto));
987}
988
989/*
990 * Receive data on a hook vjc_comp.

Callers 5

ng_ppp_rcvdata_inetFunction · 0.85
ng_ppp_rcvdata_ipv6Function · 0.85
ng_ppp_rcvdata_atalkFunction · 0.85
ng_ppp_rcvdata_ipxFunction · 0.85
ng_ppp_rcvdata_bypassFunction · 0.85

Calls 1

ng_ppp_comp_xmitFunction · 0.85

Tested by

no test coverage detected