[riot-notifications] [RIOT-OS/RIOT] ieee802154: migrate `netdev_ieee802154_dst_filter` to a common ieee802154 (#16576)

benpicco notifications at github.com
Mon Jun 21 18:30:26 CEST 2021

@benpicco commented on this pull request.

> + * @brief  Check whether a frame pass the IEEE 802.15.4 frame filter.
+ *
+ * A frame passes the frame filter only if:
+ * - The PAN ID matches the PAN ID of the frame filter
+ * - Either the Short or Extended Address matches the frame filter OR the
+ *   Short Address is the broadcast address.
+ *
+ * @param[in] mhr           MAC header (PSDU)
+ * @param[in] pan           PAN ID of the frame filter.
+ * @param[in] short_addr    Short Address of the frame filter.
+ * @param[in] ext_addr      Extended Address of the frame filter.
+ *
+ * @return 0            if frame passes the frame filter.
+ * @return 1            if frame doesn't pass the frame filter.
+ */
+int ieee802154_dst_filter(const uint8_t *mhr, uint16_t pan, void *short_addr, void *ext_addr);

Why not

int ieee802154_dst_filter(const uint8_t *mhr, uint16_t pan, const uint16_t *short_addr, const eui64_t *ext_addr);

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/20210621/612914bc/attachment.htm>

More information about the notifications mailing list