-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnrc_sixlowpan: Introduce 6Lo GNRC dispatch sub-layer
This abstracts the sending and receiving of 6Lo packets to the new 6Lo sub-layer model introduced in #8511 and exemplifies it as well.
- Loading branch information
Showing
5 changed files
with
100 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (C) 2018 Freie Universität Berlin | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser | ||
* General Public License v2.1. See the file LICENSE in the top level | ||
* directory for more details. | ||
*/ | ||
|
||
/** | ||
* @ingroup net_gnrc_sixlowpan | ||
* @{ | ||
* | ||
* @file | ||
* @brief 6LoWPAN internal functions | ||
* | ||
* @author Martine Lenders <m.lenders@fu-berlin.de> | ||
*/ | ||
#ifndef NET_GNRC_SIXLOWPAN_INTERNAL_H | ||
#define NET_GNRC_SIXLOWPAN_INTERNAL_H | ||
|
||
#include "net/gnrc/pkt.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Delegates a packet to the network layer | ||
* | ||
* @param[in] pkt A packet | ||
* @param[in] context Context for the packet. May be NULL. | ||
* @param[in] page Current 6Lo dispatch parsing page | ||
*/ | ||
void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context, | ||
unsigned page); | ||
|
||
/** | ||
* @brief Delegates a packet to the network interface | ||
* | ||
* @param[in] pkt A packet | ||
* @param[in] context Context for the packet. May be NULL. | ||
* @param[in] page Current 6Lo dispatch parsing page | ||
*/ | ||
void gnrc_sixlowpan_dispatch_send(gnrc_pktsnip_t *pkt, void *context, | ||
unsigned page); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* INTERNAL_H */ | ||
/** @} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters