[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_ext_opt: initial import (#13275)

benpicco notifications at github.com
Sun May 10 18:51:24 CEST 2020


@benpicco commented on this pull request.



> +/** @} */
+
+/**
+ * @name Processing actions
+ * @see [RFC 8200, section 4.2](https://tools.ietf.org/html/rfc8200#section-4.2)
+ * @{
+ */
+/**
+ * @brief   mask to decode action from type
+ */
+#define IPV6_EXT_OPT_ACTION_MASK            (0xc0)
+/**
+ * @brief   skip over this option and continue processing the header
+ */
+#define IPV6_EXT_OPT_ACTION_SKIP            (0x00)
+#define IPV6_EXT_OPT_ACTION_DISC            (0x40)  /**< discard the packet */

How does this work?
AFAIU those options are already present in the header of the received header - surely there will be no option to tell the receiver should just discard the packet.
So is this indication for an option that is not supported and thus the packet should be discarded? 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13275#pullrequestreview-408762135
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200510/dd9badf3/attachment.htm>


More information about the notifications mailing list