Contents

ifnet_attach_protocol_v2

Declaration

errno_t ifnet_attach_protocol_v2(ifnet_t interface, protocol_family_t protocol_family, const struct ifnet_attach_proto_param_v2 *proto_details);

Parameters

  • interface:

    The interface.

  • protocol_family:

    The protocol family being attached (PF_INET/PF_INET6/etc...).

  • proto_details:

    Details of the protocol being attached.

Return Value

0 on success otherwise the errno error.

Discussion

Attaches a protocol to an interface using the newer version 2 style interface. So far the only difference is support for packet chains which improve performance.

See Also

Network Kernel Extensions