Null Driver. More...
Functions | |
| int | NullEtherOutput (NUTDEVICE *dev, NETBUF *nb) |
| Send Ethernet packet. | |
| int | NullEtherInit (NUTDEVICE *dev) |
| Initialize Ethernet hardware. | |
Variables | |
| NUTDEVICE | devNullEther |
| Device information structure. | |
Null Driver.
Send Ethernet packet.
This null devices silently discards all outgoing packets.
| dev | Identifies the device to use. |
| nb | Network buffer structure containing the packet to be sent. The structure must have been allocated by a previous call NutNetBufAlloc(). |
| int NullEtherInit | ( | NUTDEVICE * | dev | ) |
Initialize Ethernet hardware.
| dev | Identifies the device to initialize. |
{
0,
{'e', 't', 'h', '0', 0, 0, 0, 0, 0},
IFTYP_NET,
0,
0,
&ifn_eth0,
NULL,
NullEtherInit,
0,
0,
0,
0,
0,
0,
0
}
Device information structure.
A pointer to this structure must be passed to NutRegisterDevice() to bind this Ethernet device driver to the Nut/OS kernel. An application may then call NutNetIfConfig() with the name eth0 of this driver to initialize the network interface.