[riot-notifications] [RIOT-OS/RIOT] gnrc_netif_ieee802154: drop duplicate broadcast packets (optionally) (#7577)

Martine Lenders notifications at github.com
Mon Feb 4 12:38:28 CET 2019

miri64 commented on this pull request.

Ported to a pure `gnrc_netif` approach and also added some documentation. 

+#include <stdint.h>
+#include "net/gnrc/netif/conf.h"
+#ifdef __cplusplus
+extern "C" {
+ * @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 */

FYI I chose `uint16_t` instead of `uint8_t` since this implementation supposed to be independent of IEEE 802.15.4. I'm not aware of any packet switching Link-Layer with packets `>UINT16_MAX` so I figured `uint16_t` might be enough.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/5367022d/attachment.html>

More information about the notifications mailing list