From 5b3cf47acdccd4addc78922d47decc6d07dbf0f3 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 11 Mar 2015 21:06:01 +0100 Subject: [PATCH] ng_netconf: add source length identifier The rational is that for devices with dual addressing modes (or more) as for example IEEE 802.15.4 you can get or set these addressing modes for the source address of a packet. The length of the destination address is clear since it usually arrives through the `ng_netif_hdr_t`. In case of IEEE 802.15.4 this is needed to determine the compression state of source IPv6 addresses in 6LoWPAN IPHC. --- sys/include/net/ng_netconf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/include/net/ng_netconf.h b/sys/include/net/ng_netconf.h index 4567f5ceb4..cb86e37a88 100644 --- a/sys/include/net/ng_netconf.h +++ b/sys/include/net/ng_netconf.h @@ -45,7 +45,9 @@ typedef enum { NETCONF_OPT_ADDR_LEN, /**< get the default address length a * network device expects as uint16_t in * host byte order */ - + NETCONF_OPT_SRC_LEN, /**< get/set the address length to choose + * for the network device's source address + * as uint16_t in host byte order */ /** * @brief get/set the network ID as uint16_t in host byte order *