Definitions for GNRC's network interfaces. More...

Detailed Description

Definitions for GNRC's network interfaces.

Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de
Oliver Hahm olive.nosp@m.r.ha.nosp@m.hm@in.nosp@m.ria..nosp@m.fr

Definition in file netif.h.

#include <stdlib.h>
#include <stdbool.h>
#include "kernel_types.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  gnrc_netif_handler_t
 The add and remove handlers to set network layer protocol specific options for an interface. More...
 

Macros

#define GNRC_NETIF_NUMOF   (1)
 Maximum number of network interfaces.
 

Typedefs

typedef void(* gnrc_netif_op_t) (kernel_pid_t pid)
 The add/remove operation to set network layer protocol specific options for an interface. More...
 

Functions

void gnrc_netif_init (void)
 Initializes module.
 
int gnrc_netif_add (kernel_pid_t pid)
 Adds a thread as interface. More...
 
void gnrc_netif_remove (kernel_pid_t pid)
 Removes a thread as interface. More...
 
size_t gnrc_netif_get (kernel_pid_t *netifs)
 Get all active interfaces. More...
 
bool gnrc_netif_exist (kernel_pid_t pid)
 Check if an interface exist. More...
 
char * gnrc_netif_addr_to_str (char *out, size_t out_len, const uint8_t *addr, size_t addr_len)
 Converts a hardware address to a human readable string. More...
 
size_t gnrc_netif_addr_from_str (uint8_t *out, size_t out_len, const char *str)
 Parses a string of colon-separated hexadecimals to a hardware address. More...