* Receive data on a hook ipv6. */
| 812 | * Receive data on a hook ipv6. |
| 813 | */ |
| 814 | static int |
| 815 | ng_ppp_rcvdata_ipv6(hook_p hook, item_p item) |
| 816 | { |
| 817 | const node_p node = NG_HOOK_NODE(hook); |
| 818 | const priv_p priv = NG_NODE_PRIVATE(node); |
| 819 | |
| 820 | if (!priv->conf.enableIPv6) { |
| 821 | NG_FREE_ITEM(item); |
| 822 | return (ENXIO); |
| 823 | } |
| 824 | return (ng_ppp_hcomp_xmit(NG_HOOK_NODE(hook), item, PROT_IPV6)); |
| 825 | } |
| 826 | |
| 827 | /* |
| 828 | * Receive data on a hook atalk. |
nothing calls this directly
no test coverage detected