#include <netdevice.h>
Data Fields | |
| const char * | name |
| Protocol name. | |
| int(* | rx )(struct io_buffer *iobuf, struct net_device *netdev, const void *ll_source) |
| Process received packet. | |
| const char *(* | ntoa )(const void *net_addr) |
| Transcribe network-layer address. | |
| uint16_t | net_proto |
| Network-layer protocol. | |
| uint8_t | net_addr_len |
| Network-layer address length. | |
Definition at line 52 of file netdevice.h.
| const char* net_protocol::name |
Protocol name.
Definition at line 54 of file netdevice.h.
Referenced by arp_resolve(), arp_rx(), pxenv_undi_isr(), and pxenv_undi_transmit().
| int( * net_protocol::rx)(struct io_buffer *iobuf, struct net_device *netdev, const void *ll_source) |
| const char*( * net_protocol::ntoa)(const void *net_addr) |
Transcribe network-layer address.
| net_addr | Network-layer address |
| string | Human-readable transcription of address |
The buffer used to hold the transcription is statically allocated.
Referenced by arp_resolve(), and arp_rx().
Network-layer protocol.
This is an ETH_P_XXX constant, in network-byte order
Definition at line 83 of file netdevice.h.
Referenced by arp_find_protocol(), arp_resolve(), net_rx(), net_tx(), and pxenv_undi_transmit().
Network-layer address length.
Definition at line 85 of file netdevice.h.
Referenced by arp_find_entry(), arp_resolve(), and arp_rx().
1.5.7.1