[riot-notifications] [RIOT-OS/RIOT] l2util: initial import of a general IPv6 over X helper module (#10589)

Martine Lenders notifications at github.com
Wed Jan 16 11:19:00 CET 2019


miri64 commented on this pull request.



> +            (void)addr;
+#ifdef DEVELHELP
+            LOG_ERROR("gnrc_netif: can't convert IID to hardware address "
+                      "for device type %d\n", dev_type);
+#endif  /* DEVELHELP */
+            assert(false);
+            break;
+    }
+    return -ENOTSUP;
+}
+
+int l2util_ndp_addr_len_from_l2ao(int dev_type,
+                                  const ndp_opt_t *opt)
+{
+    switch (dev_type) {
+#ifdef MODULE_CC110X

Because the NDP link-layer address option has nothing to do with a driver (it is link-layer specific stuff for required for the network layer), it would require *every* driver to implement this + there are similar functions that are not device specific (but very much specific to the link-layer the device implements; e.g. EUI-64/IPv6 IID conversion which can apply to both the source address or the destination address of a packet).

-- 
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/10589#discussion_r248223402
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190116/f6cfe9bd/attachment.html>


More information about the notifications mailing list