* Receive data on a hook ipx */
| 844 | * Receive data on a hook ipx |
| 845 | */ |
| 846 | static int |
| 847 | ng_ppp_rcvdata_ipx(hook_p hook, item_p item) |
| 848 | { |
| 849 | const node_p node = NG_HOOK_NODE(hook); |
| 850 | const priv_p priv = NG_NODE_PRIVATE(node); |
| 851 | |
| 852 | if (!priv->conf.enableIPX) { |
| 853 | NG_FREE_ITEM(item); |
| 854 | return (ENXIO); |
| 855 | } |
| 856 | return (ng_ppp_hcomp_xmit(NG_HOOK_NODE(hook), item, PROT_IPX)); |
| 857 | } |
| 858 | |
| 859 | /* |
| 860 | * Receive data on a hook bypass |
nothing calls this directly
no test coverage detected