Go to the documentation of this file.
53 #ifndef CONFIG_NETIF_NAMELENMAX
54 #define CONFIG_NETIF_NAMELENMAX (8U)
147 void *value,
size_t max_len);
164 void *value,
size_t value_len);
netopt_t
Global list of configuration options available throughout the network stack, e.g.
Network interface descriptor.
size_t netif_addr_from_str(const char *str, uint8_t *out)
Parses a string of colon-separated hexadecimals to a hardware address.
Definition of global configuration options.
int netif_set_opt(netif_t *netif, netopt_t opt, uint16_t context, void *value, size_t value_len)
Sets option to an interface.
int netif_get_opt(netif_t *netif, netopt_t opt, uint16_t context, void *value, size_t max_len)
Gets option from an interface.
int netif_get_name(netif_t *netif, char *name)
Gets name of an interface.
int16_t netif_get_id(const netif_t *netif)
Gets the numeric identifier of an interface.
netif_t * netif_get_by_id(int16_t id)
Gets interface by a numeric identifier.
netif_t * netif_get_by_name(const char *name)
Gets interface by name.
netif_t * netif_iter(netif_t *last)
Iterator for the interfaces.
list_node_t node
Pointer to the next interface.
int netif_register(netif_t *netif)
Registers a network interface in the global interface list.
char * netif_addr_to_str(const uint8_t *addr, size_t addr_len, char *out)
Converts a hardware address to a human readable string.