* Receive data on a hook inet. */
| 783 | * Receive data on a hook inet. |
| 784 | */ |
| 785 | static int |
| 786 | ng_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. |
nothing calls this directly
no test coverage detected