ReactOS 0.4.16-dev-91-g764881a
|
#include <netif.h>
Public Attributes | |
struct netif * | next |
ip_addr_t | ip_addr |
ip_addr_t | netmask |
ip_addr_t | gw |
netif_input_fn | input |
netif_output_fn | output |
netif_linkoutput_fn | linkoutput |
void * | state |
u16_t | mtu |
u8_t | hwaddr_len |
u8_t | hwaddr [NETIF_MAX_HWADDR_LEN] |
u8_t | flags |
char | name [2] |
u8_t | num |
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 netif::flags |
flags (see NETIF_FLAG_ above)
Definition at line 192 of file netif.h.
Referenced by default_netif_init(), ip4_addr_isbroadcast(), ip_input(), netif_add(), netif_remove(), netif_set_down(), netif_set_link_down(), netif_set_link_up(), netif_set_up(), TCPInterfaceInit(), and test_tcp_init_netif().
ip_addr_t netif::gw |
Definition at line 143 of file netif.h.
Referenced by netif_add(), netif_set_addr(), and netif_set_gw().
u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN] |
link level hardware address of this interface
Definition at line 190 of file netif.h.
Referenced by TCPInterfaceInit().
u8_t netif::hwaddr_len |
number of bytes used in hwaddr
Definition at line 188 of file netif.h.
Referenced by default_netif_init(), and TCPInterfaceInit().
netif_input_fn netif::input |
This function is called by the network device driver to pass a packet up the TCP/IP stack.
Definition at line 147 of file netif.h.
Referenced by netif_add().
ip_addr_t netif::ip_addr |
IP address configuration in network byte order
Definition at line 141 of file netif.h.
Referenced by ip4_addr_isbroadcast(), ip_input(), ip_output_if(), ip_route(), netif_add(), netif_set_ipaddr(), and test_tcp_init_netif().
netif_linkoutput_fn netif::linkoutput |
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.
Definition at line 155 of file netif.h.
Referenced by default_netif_init().
u16_t netif::mtu |
maximum transfer unit (in bytes)
Definition at line 186 of file netif.h.
Referenced by default_netif_init(), and TCPInterfaceInit().
char netif::name[2] |
descriptive abbreviation
Definition at line 194 of file netif.h.
Referenced by ip_input(), ip_output_if(), netif_add(), netif_find(), netif_set_default(), netif_set_gw(), netif_set_ipaddr(), netif_set_netmask(), and TCPInterfaceInit().
ip_addr_t netif::netmask |
Definition at line 142 of file netif.h.
Referenced by ip4_addr_isbroadcast(), ip_input(), ip_route(), netif_add(), netif_set_addr(), netif_set_netmask(), and test_tcp_init_netif().
pointer to next in linked list
Definition at line 138 of file netif.h.
Referenced by ip_input(), ip_route(), netif_add(), netif_find(), netif_remove(), and test_tcp_init_netif().
u8_t netif::num |
number of this interface
Definition at line 196 of file netif.h.
Referenced by netif_add(), and netif_find().
netif_output_fn netif::output |
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.
Definition at line 151 of file netif.h.
Referenced by default_netif_init(), ip_forward(), ip_output_if(), TCPInterfaceInit(), and test_tcp_init_netif().
void* netif::state |
This field can be set by the device driver and could point to state information for the device.
Definition at line 172 of file netif.h.
Referenced by netif_add(), TCPInterfaceInit(), test_tcp_init_netif(), and test_tcp_netif_output().