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

Koen Zandberg notifications at github.com
Mon Jun 10 20:01:29 CEST 2019


bergzand commented on this pull request.



> + * @param   addr    ethernet address
+ */
+static inline void ethernet_set_locally_admin(uint8_t *addr)
+{
+    addr[0] |= ETHERNET_ADDR_LOCAL_ADMIN;
+}
+
+/**
+ * @brief Clear the group address bit to signal the address as individual
+ * address
+ *
+ * @see ieee 802-2001 section 9.2
+ *
+ * @param   addr    ethernet address
+ */
+static inline void ethernet_set_individual_addr(uint8_t *addr)

Changed

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


More information about the notifications mailing list