forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnrc_netif_ieee802154: drop duplicate broadcast packets (optionally)
- Loading branch information
Showing
5 changed files
with
94 additions
and
0 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
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) 2019 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. | ||
*/ | ||
|
||
/** | ||
* @defgroup net_gnrc_netif_dedup Link-layer Broadcast deduplication | ||
* @ingroup net_gnrc_netif | ||
* @brief Deduplicates broadcast link-layer packets best-effort style | ||
* | ||
* To activate, use `USEMODULE += gnrc_netif_dedup` in your applications | ||
* Makefile. Also make sure the link-layer you use supports the module. | ||
* Currently supported are | ||
* | ||
* - IEEE 802.15.4 | ||
* | ||
* @{ | ||
* | ||
* @file | ||
* @brief | ||
* | ||
* @author Martine Lenders <m.lenders@fu-berlin.de> | ||
*/ | ||
#ifndef NET_GNRC_NETIF_DEDUP_H | ||
#define NET_GNRC_NETIF_DEDUP_H | ||
|
||
#include <stdint.h> | ||
|
||
#include "net/gnrc/netif/conf.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Structure to store information on the last broadcast packet received | ||
*/ | ||
typedef struct { | ||
uint8_t src[GNRC_NETIF_L2ADDR_MAXLEN]; /**< link-layer source address */ | ||
uint16_t seq; /**< link-layer sequence number */ | ||
uint8_t src_len; /**< length of gnrc_netif_dedup_t:src */ | ||
} gnrc_netif_dedup_t; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* NET_GNRC_NETIF_DEDUP_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