GNRC's IPv6 implementation.
The IPv6 control thread understands messages of type
| ||Definitions for GNRC's IPv6 implementation. |
This macro allows to specify a certain link local IPv6 address to be assigned to a network interface on startup, which might be handy for testing. Note: a) a interface will keep its auto-generated link local address, too b) the address is incremented by 1, if multiple interfaces are present
To use the macro just add it to
CFLAGS in the application's Makefile, like:
IPV6_STATIC_LLADDR ?= '"fe80::cafe:cafe:cafe:1"'
CFLAGS += -DGNRC_IPV6_STATIC_LLADDR=$(STATIC_IPV6_LLADDR)
Definition at line 87 of file gnrc/ipv6.h.
This function may be used with e.g. a pointer to a (full) UDP datagram.
- A pointer to the ipv6_hdr_t of the packet.
NULL if the packet does not contain an IPv6 header.
- The PID to the IPv6 thread, on success.
a negative errno on error.
-EOVERFLOW, if there are too many threads running already
-EEXIST, if IPv6 was already initialized.