ReactOS 0.4.16-dev-311-g9382aa2
|
#include "lwip/opt.h"
#include "lwip/err.h"
#include "lwip/ip_addr.h"
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/stats.h"
Go to the source code of this file.
Classes | |
struct | netif |
union | netif_ext_callback_args_t |
struct | netif_ext_callback_args_t::link_changed_s |
struct | netif_ext_callback_args_t::status_changed_s |
struct | netif_ext_callback_args_t::ipv4_changed_s |
struct | netif_ext_callback_args_t::ipv6_set_s |
struct | netif_ext_callback_args_t::ipv6_addr_state_changed_s |
Typedefs | |
typedef err_t(* | netif_init_fn) (struct netif *netif) |
typedef err_t(* | netif_input_fn) (struct pbuf *p, struct netif *inp) |
typedef err_t(* | netif_linkoutput_fn) (struct netif *netif, struct pbuf *p) |
typedef void(* | netif_status_callback_fn) (struct netif *netif) |
typedef u8_t | netif_addr_idx_t |
typedef u16_t | netif_nsc_reason_t |
typedef void(* | netif_ext_callback_fn) (struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) |
Enumerations | |
enum | lwip_internal_netif_client_data_index { LWIP_NETIF_CLIENT_DATA_INDEX_MAX } |
enum | netif_mac_filter_action { NETIF_DEL_MAC_FILTER = 0 , NETIF_ADD_MAC_FILTER = 1 } |
Functions | |
void | netif_init (void) |
struct netif * | netif_add_noaddr (struct netif *netif, void *state, netif_init_fn init, netif_input_fn input) |
struct netif * | netif_add (struct netif *netif, void *state, netif_init_fn init, netif_input_fn input) |
void | netif_remove (struct netif *netif) |
struct netif * | netif_find (const char *name) |
void | netif_set_default (struct netif *netif) |
void | netif_set_up (struct netif *netif) |
void | netif_set_down (struct netif *netif) |
void | netif_set_link_up (struct netif *netif) |
void | netif_set_link_down (struct netif *netif) |
err_t | netif_input (struct pbuf *p, struct netif *inp) |
u8_t | netif_name_to_index (const char *name) |
char * | netif_index_to_name (u8_t idx, char *name) |
struct netif * | netif_get_by_index (u8_t idx) |
Variables | |
struct netif * | netif_list |
struct netif * | netif_default |
netif API (to be used from TCPIP thread)
Definition in file netif.h.
#define ENABLE_LOOPBACK (LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF) |
#define LWIP_NSC_IPV4_ADDR_VALID 0x0400 |
#define LWIP_NSC_IPV4_ADDRESS_CHANGED 0x0010 |
#define LWIP_NSC_IPV4_GATEWAY_CHANGED 0x0020 |
#define LWIP_NSC_IPV4_NETMASK_CHANGED 0x0040 |
#define LWIP_NSC_IPV4_SETTINGS_CHANGED 0x0080 |
#define LWIP_NSC_IPV6_ADDR_STATE_CHANGED 0x0200 |
#define LWIP_NSC_NETIF_ADDED 0x0001 |
#define LWIP_NSC_NETIF_REMOVED 0x0002 |
#define LWIP_NSC_STATUS_CHANGED 0x0008 |
#define NETIF_NAMESIZE 6 |
typedef u8_t netif_addr_idx_t |
Function prototype for netif->input functions. This function is saved as 'input' callback function in the netif struct. Call it when a packet has been received.
p | The received packet, copied into a pbuf |
inp | The netif which received the packet |
Enumerator | |
---|---|
LWIP_NETIF_CLIENT_DATA_INDEX_MAX |
Definition at line 113 of file netif.h.
MAC Filter Actions, these are passed to a netif's igmp_mac_filter or mld_mac_filter callback function.
Enumerator | |
---|---|
NETIF_DEL_MAC_FILTER | Delete a filter entry |
NETIF_ADD_MAC_FILTER | Add a filter entry |
Definition at line 188 of file netif.c.
Referenced by lwip_init(), and main().
The default network interface.
Definition at line 115 of file netif.c.
Referenced by default_netif_add(), default_netif_remove(), mqtt_setup(), mqtt_teardown(), netif_add(), netif_remove(), netif_set_default(), START_TEST(), tcp_oos_setup(), tcp_oos_teardown(), tcp_setup(), tcp_state_setup(), tcp_state_teardown(), tcp_teardown(), test_netif_add(), and test_netif_remove().
The list of network interfaces.
Definition at line 113 of file netif.c.
Referenced by create_ip4_input_fragment(), default_netif_add(), default_netif_remove(), ip4_teardown(), mqtt_setup(), mqtt_teardown(), netif_add(), netif_remove(), tcp_oos_setup(), tcp_oos_teardown(), tcp_setup(), tcp_state_setup(), tcp_state_teardown(), tcp_teardown(), test_mqtt_init_netif(), and test_tcp_init_netif().