diff --git a/sys/include/net/netopt.h b/sys/include/net/netopt.h index 9c9a610c1c..6f060590b6 100644 --- a/sys/include/net/netopt.h +++ b/sys/include/net/netopt.h @@ -747,6 +747,21 @@ typedef enum { */ NETOPT_RSSI, + /** + * @brief (array of byte array) get link layer multicast groups as array + * of byte arrays (length of each byte array corresponds to the + * length of @ref NETOPT_ADDRESS) or join a link layer multicast + * group as byte array on an interface + * + * When getting the option you can pass an array of byte arrays of any + * length greater than 0 to the getter. The array will be filled up to to + * its maximum and the remaining addresses on the interface will be ignored + */ + NETOPT_L2_GROUP, + /** + * @brief (array of byte arrays) Leave an link layer multicast group + */ + NETOPT_L2_GROUP_LEAVE, /** * @brief maximum number of options defined here. * diff --git a/sys/net/crosslayer/netopt/netopt.c b/sys/net/crosslayer/netopt/netopt.c index bc737912e1..7d2edba337 100644 --- a/sys/net/crosslayer/netopt/netopt.c +++ b/sys/net/crosslayer/netopt/netopt.c @@ -122,6 +122,8 @@ static const char *_netopt_strmap[] = { [NETOPT_NUM_GATEWAYS] = "NETOPT_NUM_GATEWAYS", [NETOPT_LINK_CHECK] = "NETOPT_LINK_CHECK", [NETOPT_RSSI] = "NETOPT_RSSI", + [NETOPT_L2_GROUP] = "NETOPT_L2_GROUP", + [NETOPT_L2_GROUP_LEAVE] = "NETOPT_L2_GROUP_LEAVE", [NETOPT_NUMOF] = "NETOPT_NUMOF", };