Contents

performCommand

Handles an ioctl command sent to the Ethernet interface.

Declaration

virtual SInt32 performCommand(
 IONetworkController *controller, 
 unsigned longcmd, 
 void *arg0, 
 void *arg1);

Parameters

  • controller:

    The controller object.

  • cmd:

    The ioctl command code.

  • arg0:

    Command argument 0. Generally a pointer to an ifnet structure associated with the interface.

  • arg1:

    Command argument 1.

Return Value

Returns a BSD return value defined in bsd/sys/errno.h.

Overview

This method handles socket ioctl commands sent to the Ethernet interface from DLIL. Commands recognized and processed by this method are SIOCSIFADDR, SIOCSIFFLAGS, SIOCADDMULTI, and SIOCDELMULTI. Other commands are passed to the superclass.

See Also

Miscellaneous