Contents

ifnet_ioctl

Declaration

errno_t ifnet_ioctl(ifnet_t interface, protocol_family_t protocol, unsigned long ioctl_code, void *ioctl_arg);

Parameters

  • interface:

    The interface.

  • protocol:

    The protocol family of the protocol to send the ioctl to (may be zero). Some ioctls apply to a protocol while other ioctls apply to just an interface.

  • ioctl_code:

    The ioctl to perform.

  • ioctl_arg:

    Any parameters to the ioctl.

Return Value

0 on success otherwise the errno error.

Discussion

Calls the interface's ioctl function with the parameters passed.

All undefined ioctls are reserved for future use by Apple. If you need to communicate with your kext using an ioctl, please use SIOCSIFKPI and SIOCGIFKPI.

See Also

Network Kernel Extensions