ifnet_ioctl_func
Declaration
typedef errno_t (*ifnet_ioctl_func)(ifnet_t interface, unsigned long cmd, void *data);Parameters
- interface:
The interface the ioctl is being sent to.
- proto_family:
The protocol family to handle the ioctl, may be zero for no protocol_family.
- cmd:
The ioctl command.
- data:
A pointer to any data related to the ioctl.
Discussion
ifnet_ioctl_func is used to communicate ioctls from the stack to the driver.
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
ifnet
ifnet_add_proto_funcifnet_attach_proto_paramifnet_attach_proto_param_v2ifnet_check_multiifnet_del_proto_funcifnet_demux_descifnet_demux_funcifnet_detached_funcifnet_event_funcifnet_family_tifnet_framer_funcifnet_init_paramsifnet_offload_tifnet_output_funcifnet_set_bpf_tapifnet_stat_increment_paramifnet_stats_paramifnet_t