Browse Source

net: added L2FILTER option to netopt

master
Hauke Petersen 6 years ago
parent
commit
e8b0e0b9e7
  1. 20
      sys/include/net/netopt.h
  2. 2
      sys/net/crosslayer/netopt/netopt.c

20
sys/include/net/netopt.h

@ -240,6 +240,26 @@ typedef enum {
*/
NETOPT_RF_TESTMODE,
/**
* @brief add an address to a link layer filter list
*
* 'Getting' this option from a device will return a pointer of type
* @ref l2filter_t to the first entry of a filter list.
* When 'Setting' this option a pointer to an link layer address as well as
* the length of the address are expected as parameters.
*/
NETOPT_L2FILTER,
/**
* @brief remove an address from a link layer filter list
*
* 'Getting' this value always returns -ENOTSUP.
* When 'Setting' this option a pointer to an link layer address as well as
* the length of the address are expected as parameters. 'Setting' this
* option will lead to the given address being removed from the filer list.
*/
NETOPT_L2FILTER_RM,
/* add more options if needed */
/**

2
sys/net/crosslayer/netopt/netopt.c

@ -58,6 +58,8 @@ static const char *_netopt_strmap[] = {
[NETOPT_ENCRYPTION] = "NETOPT_ENCRYPTION",
[NETOPT_ENCRYPTION_KEY] = "NETOPT_ENCRYPTION_KEY",
[NETOPT_RF_TESTMODE] = "NETOPT_RF_TESTMODE",
[NETOPT_L2FILTER] = "NETOPT_L2FILTER",
[NETOPT_L2FILTER_RM] = "NETOPT_L2FILTER_RM",
[NETOPT_NUMOF] = "NETOPT_NUMOF",
};

Loading…
Cancel
Save