lwIP
2.1.0
Lightweight IP stack
|
#include "lwip/opt.h"
#include <string.h>
#include <stdlib.h>
#include "lwip/def.h"
#include "lwip/ip_addr.h"
#include "lwip/ip6_addr.h"
#include "lwip/netif.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/udp.h"
#include "lwip/priv/raw_priv.h"
#include "lwip/snmp.h"
#include "lwip/igmp.h"
#include "lwip/etharp.h"
#include "lwip/stats.h"
#include "lwip/sys.h"
#include "lwip/ip.h"
#include "lwip/tcpip.h"
#include "netif/ethernet.h"
#include "lwip/autoip.h"
#include "lwip/dhcp.h"
#include "lwip/dhcp6.h"
#include "lwip/mld6.h"
#include "lwip/nd6.h"
Variables | |
struct netif * | netif_list |
struct netif * | netif_default |
lwIP network interface abstraction
s8_t netif_get_ip6_addr_match | ( | struct netif * | netif, |
const ip6_addr_t * | ip6addr | ||
) |
Checks if a specific local address is present on the netif and returns its index. Depending on its state, it may or may not be assigned to the interface (as per RFC terminology).
The given address may or may not be zoned (i.e., have a zone index other than IP6_NO_ZONE). If the address is zoned, it must have the correct zone for the given netif, or no match will be found.
netif | the netif to check |
ip6addr | the IPv6 address to find |
void netif_invoke_ext_callback | ( | struct netif * | netif, |
netif_nsc_reason_t | reason, | ||
const netif_ext_callback_args_t * | args | ||
) |
Invoke extended netif status event
netif | netif that is affected by change |
reason | change reason |
args | depends on reason, see reason description |
void netif_poll | ( | struct netif * | netif | ) |
Call netif_poll() in the main loop of your application. This is to prevent reentering non-reentrant functions like tcp_input(). Packets passed to netif_loop_output() are put on a list that is passed to netif->input() by netif_poll().
struct netif* netif_default |
The default network interface.
struct netif* netif_list |
The list of network interfaces.