|
u8_t | netif_alloc_client_data_id (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, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input) |
|
void | netif_set_addr (struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) |
|
void | netif_remove (struct netif *netif) |
|
struct netif * | netif_find (const char *name) |
|
void | netif_set_default (struct netif *netif) |
|
void | netif_set_ipaddr (struct netif *netif, const ip4_addr_t *ipaddr) |
|
void | netif_set_netmask (struct netif *netif, const ip4_addr_t *netmask) |
|
void | netif_set_gw (struct netif *netif, const ip4_addr_t *gw) |
|
void | netif_set_up (struct netif *netif) |
|
void | netif_set_down (struct netif *netif) |
|
void | netif_set_status_callback (struct netif *netif, netif_status_callback_fn status_callback) |
|
void | netif_set_remove_callback (struct netif *netif, netif_status_callback_fn remove_callback) |
|
void | netif_set_link_up (struct netif *netif) |
|
void | netif_set_link_down (struct netif *netif) |
|
void | netif_set_link_callback (struct netif *netif, netif_status_callback_fn link_callback) |
|
err_t | netif_loop_output (struct netif *netif, struct pbuf *p) |
|
void | netif_poll (struct netif *netif) |
|
err_t | netif_input (struct pbuf *p, struct netif *inp) |
|
void | netif_ip6_addr_set (struct netif *netif, s8_t addr_idx, const ip6_addr_t *addr6) |
|
void | netif_ip6_addr_set_state (struct netif *netif, s8_t addr_idx, u8_t state) |
|
s8_t | netif_get_ip6_addr_match (struct netif *netif, const ip6_addr_t *ip6addr) |
|
void | netif_create_ip6_linklocal_address (struct netif *netif, u8_t from_mac_48bit) |
|
err_t | netif_add_ip6_address (struct netif *netif, const ip6_addr_t *ip6addr, s8_t *chosen_idx) |
|
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) |
|
void | netif_add_ext_callback (netif_ext_callback_t *callback, netif_ext_callback_fn fn) |
|
void | netif_remove_ext_callback (netif_ext_callback_t *callback) |
|
void | netif_invoke_ext_callback (struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) |
|
netif API (to be used from TCPIP thread)
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.
- Parameters
-
netif | the netif to check |
ip6addr | the IPv6 address to find |
- Returns
- >= 0: address found, this is its index -1: address not found on this netif