netif.h File Reference

Common network interface API definitions. More...

Detailed Description

Common network interface API definitions.

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e
José Ignacio Alamos jose..nosp@m.alam.nosp@m.os@ha.nosp@m.w-ha.nosp@m.mburg.nosp@m..de

Definition in file netif.h.

#include <stdint.h>
#include "list.h"
#include "net/netopt.h"
+ Include dependency graph for netif.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  netif_t
 Network interface descriptor. More...
 

Macros

#define CONFIG_NETIF_NAMELENMAX   (8U)
 Maximum length for an interface name.
 

Functions

netif_tnetif_iter (netif_t *last)
 Iterator for the interfaces. More...
 
int netif_get_name (netif_t *netif, char *name)
 Gets name of an interface. More...
 
int16_t netif_get_id (const netif_t *netif)
 Gets the numeric identifier of an interface. More...
 
netif_tnetif_get_by_name (const char *name)
 Gets interface by name. More...
 
netif_tnetif_get_by_id (int16_t id)
 Gets interface by a numeric identifier. More...
 
int netif_get_opt (netif_t *netif, netopt_t opt, uint16_t context, void *value, size_t max_len)
 Gets option from an interface. More...
 
int netif_set_opt (netif_t *netif, netopt_t opt, uint16_t context, void *value, size_t value_len)
 Sets option to an interface. More...
 
int netif_register (netif_t *netif)
 Registers a network interface in the global interface list. More...
 
char * netif_addr_to_str (const uint8_t *addr, size_t addr_len, char *out)
 Converts a hardware address to a human readable string. More...
 
size_t netif_addr_from_str (const char *str, uint8_t *out)
 Parses a string of colon-separated hexadecimals to a hardware address. More...