* Receive data on a hook atalk. */
| 828 | * Receive data on a hook atalk. |
| 829 | */ |
| 830 | static int |
| 831 | ng_ppp_rcvdata_atalk(hook_p hook, item_p item) |
| 832 | { |
| 833 | const node_p node = NG_HOOK_NODE(hook); |
| 834 | const priv_p priv = NG_NODE_PRIVATE(node); |
| 835 | |
| 836 | if (!priv->conf.enableAtalk) { |
| 837 | NG_FREE_ITEM(item); |
| 838 | return (ENXIO); |
| 839 | } |
| 840 | return (ng_ppp_hcomp_xmit(NG_HOOK_NODE(hook), item, PROT_ATALK)); |
| 841 | } |
| 842 | |
| 843 | /* |
| 844 | * Receive data on a hook ipx |
nothing calls this directly
no test coverage detected