[riot-notifications] [RIOT-OS/RIOT] EUI48: Add address flag helper functions (#11666)

Koen Zandberg notifications at github.com
Mon Jun 10 20:39:35 CEST 2019


bergzand commented on this pull request.



> + * @brief Set the locally administrated bit in the EUI-48 address.
+ *
+ * @see ieee 802-2001 section 9.2
+ *
+ * @param   addr    ethernet address
+ */
+static inline void eui48_set_local(eui48_t *addr)
+{
+    addr->uint8[0] |= EUI48_LOCAL_ADMIN_FLAG;
+}
+
+/**
+ * @brief Clear the group address bit to signal the address as individual
+ * address
+ *
+ * @see ieee 802-2001 section 9.2

Done

-- 
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/11666#discussion_r292137310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190610/6b19d70c/attachment.html>


More information about the notifications mailing list