|
INET Framework for OMNeT++/OMNEST
|
Generic data structure used for all lwIP network interfaces. More...
#include <netif.h>
Public Attributes | |
| struct netif * | next |
| pointer to next in linked list More... | |
| struct ip_addr | ip_addr |
| IP address configuration in network byte order. More... | |
| struct ip_addr | netmask |
| struct ip_addr | gw |
| err_t(* | input )(struct pbuf *p, struct netif *inp) |
| This function is called by the network device driver to pass a packet up the TCP/IP stack. More... | |
| err_t(* | output )(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) |
| This function is called by the IP module when it wants to send a packet on the interface. More... | |
| err_t(* | linkoutput )(struct netif *netif, struct pbuf *p) |
| This function is called by the ARP module when it wants to send a packet on the interface. More... | |
| void * | state |
| This field can be set by the device driver and could point to state information for the device. More... | |
| u16_t | mtu |
| maximum transfer unit (in bytes) More... | |
| u8_t | hwaddr_len |
| number of bytes used in hwaddr More... | |
| u8_t | hwaddr [NETIF_MAX_HWADDR_LEN] |
| link level hardware address of this interface More... | |
| u8_t | flags |
| flags (see NETIF_FLAG_ above) More... | |
| char | name [2] |
| descriptive abbreviation More... | |
| u8_t | num |
| number of this interface More... | |
Generic data structure used for all lwIP network interfaces.
The following fields should be filled in by the initialization function for the device driver: hwaddr_len, hwaddr[], mtu, flags
| u8_t inet::tcp::netif::flags |
flags (see NETIF_FLAG_ above)
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| struct ip_addr inet::tcp::netif::gw |
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| u8_t inet::tcp::netif::hwaddr[NETIF_MAX_HWADDR_LEN] |
link level hardware address of this interface
| u8_t inet::tcp::netif::hwaddr_len |
number of bytes used in hwaddr
This function is called by the network device driver to pass a packet up the TCP/IP stack.
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| struct ip_addr inet::tcp::netif::ip_addr |
IP address configuration in network byte order.
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
This function is called by the ARP module when it wants to send a packet on the interface.
This function outputs the pbuf as-is on the link medium.
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| u16_t inet::tcp::netif::mtu |
maximum transfer unit (in bytes)
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| char inet::tcp::netif::name[2] |
descriptive abbreviation
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| struct ip_addr inet::tcp::netif::netmask |
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| struct netif* inet::tcp::netif::next |
pointer to next in linked list
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| u8_t inet::tcp::netif::num |
number of this interface
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
This function is called by the IP module when it wants to send a packet on the interface.
This function typically first resolves the hardware address, then sends the packet.
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().
| void* inet::tcp::netif::state |
This field can be set by the device driver and could point to state information for the device.
Referenced by inet::tcp::TCP_lwIP::TCP_lwIP().