RTEMS 4.7.0 On-Line Library
Write the Driver IOCTL Function
 
 
RTEMS Network Supplement
2.11: Write the Driver IOCTL Function
This function handles ioctl requests directed at the device.  The ioctl
commands which must be handled are:
SIOCGIFADDR
SIOCSIFADDR
- 
If the device is an Ethernet interface these
commands should be passed on to 
ether_ioctl.
 SIOCSIFFLAGS
- 
This command should be used to start or stop the device,
depending on the state of the interface 
IFF_UP and
IFF_RUNNING bits in if_flags:
IFF_RUNNING
- 
Stop the device.
 IFF_UP
- 
Start the device.
 IFF_UP|IFF_RUNNING
- 
Stop then start the device.
 0
- 
Do nothing.
 
 
 
 
RTEMS Network Supplement
Copyright © 1988-2004 OAR Corporation