sixlowpan/netif.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef GNRC_SIXLOWPAN_NETIF_H
21 #define GNRC_SIXLOWPAN_NETIF_H
22 
23 #include <stdbool.h>
24 
25 #include "kernel_types.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 typedef struct {
36  uint16_t max_frag_size;
37 #ifdef MODULE_GNRC_SIXLOWPAN_IPHC
38  bool iphc_enabled;
39 #endif
41 
45 void gnrc_sixlowpan_netif_init(void);
46 
53 void gnrc_sixlowpan_netif_add(kernel_pid_t pid, uint16_t max_frag_size);
54 
61 
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* GNRC_SIXLOWPAN_NETIF_H */
77 
Types used by the kernel.
void gnrc_sixlowpan_netif_remove(kernel_pid_t pid)
Remove interface from 6LoWPAN.
int16_t kernel_pid_t
Unique process identifier.
Definition: kernel_types.h:83
Definition of 6LoWPAN interface type.
void gnrc_sixlowpan_netif_add(kernel_pid_t pid, uint16_t max_frag_size)
Add interface to 6LoWPAN.
uint16_t max_frag_size
Maximum fragment size for this interface.
void gnrc_sixlowpan_netif_init(void)
Initializes the module.
kernel_pid_t pid
PID of the interface.
gnrc_sixlowpan_netif_t * gnrc_sixlowpan_netif_get(kernel_pid_t pid)
Get interface.