Modules#
MAC Address Filtering#
API and Callbacks for the MAC Address Filtering Component.
This plugin artificially limits what the stack hears by filtering the packets just above the lower MAC. The plugin can be configured on the fly via CLI with the short or long address of devices whose packets will be dropped or allowed. There are two lists, a short address list (2-byte node ID) and a long address list (8-byte IEEE address). Each list may be configured as either an allow list or block list. The default is a block list with no addresses configured (accept all packets normally). A separate option allows or drops packets with no address information (e.g., Beacon Requests). NOTE: The radio will still generate and process MAC ACKs for packets. This plugin cannot be used to effect the behavior of MAC ACKs, which are handled by the RAIL library and radio hardware.
API#
Print configuration command.
Filter out the no address command.
Add the short address command.
Set the short address list type.
Set the long address list type.
Add long address.
Clear the short address list.
Clear the long address list.
Add panID.
Delete a panID entry.
Clear the panID list.
Set the list type for panID list.
MAC address filtering reset.
Clear all lists for MAC address filtering.
Delete an entry from short address list.
Delete an entry from long address list.
Get stats for a short address.
Get MAC address filtering stats. Get the allowed, dropped and total packet counts.
API Documentation#
emberAfPluginMacAddressFilteringPrintConfigCommand#
void emberAfPluginMacAddressFilteringPrintConfigCommand (sl_cli_command_arg_t * arguments)
Print configuration command.
N/A | arguments | * arguments Ver.: always |
53
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringFilterNoAddressCommand#
void emberAfPluginMacAddressFilteringFilterNoAddressCommand (sl_cli_command_arg_t * arguments)
Filter out the no address command.
N/A | arguments | * arguments Ver.: always |
60
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringAddShortAddressCommand#
void emberAfPluginMacAddressFilteringAddShortAddressCommand (sl_cli_command_arg_t * arguments)
Add the short address command.
N/A | arguments | * arguments Ver.: always |
67
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringSetShortAddressListType#
void emberAfPluginMacAddressFilteringSetShortAddressListType (sl_cli_command_arg_t * arguments)
Set the short address list type.
N/A | arguments | * arguments Ver.: always |
74
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringSetLongAddressListType#
void emberAfPluginMacAddressFilteringSetLongAddressListType (sl_cli_command_arg_t * arguments)
Set the long address list type.
N/A | arguments | * arguments Ver.: always |
81
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringAddLongAddressCommand#
void emberAfPluginMacAddressFilteringAddLongAddressCommand (sl_cli_command_arg_t * arguments)
Add long address.
N/A | arguments | * arguments Ver.: always |
88
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringClearShortAddressList#
void emberAfPluginMacAddressFilteringClearShortAddressList (sl_cli_command_arg_t * arguments)
Clear the short address list.
N/A | arguments | * arguments Ver.: always |
95
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringClearLongAddressList#
void emberAfPluginMacAddressFilteringClearLongAddressList (sl_cli_command_arg_t * arguments)
Clear the long address list.
N/A | arguments | * arguments Ver.: always |
102
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringAddPanIdCommand#
void emberAfPluginMacAddressFilteringAddPanIdCommand (sl_cli_command_arg_t * arguments)
Add panID.
N/A | arguments | * arguments Ver.: always |
109
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringPanIdDeleteEntry#
void emberAfPluginMacAddressFilteringPanIdDeleteEntry (sl_cli_command_arg_t * arguments)
Delete a panID entry.
N/A | arguments | * arguments Ver.: always |
116
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringClearPanIdList#
void emberAfPluginMacAddressFilteringClearPanIdList (sl_cli_command_arg_t * arguments)
Clear the panID list.
N/A | arguments | * arguments Ver.: always |
123
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringSetPanIdListType#
void emberAfPluginMacAddressFilteringSetPanIdListType (sl_cli_command_arg_t * arguments)
Set the list type for panID list.
N/A | arguments | * arguments Ver.: always |
130
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringReset#
void emberAfPluginMacAddressFilteringReset (sl_cli_command_arg_t * arguments)
MAC address filtering reset.
N/A | arguments | * arguments Ver.: always |
137
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringClearAll#
void emberAfPluginMacAddressFilteringClearAll (void )
Clear all lists for MAC address filtering.
N/A | * arguments Ver.: always |
144
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringShortAddressDeleteEntry#
void emberAfPluginMacAddressFilteringShortAddressDeleteEntry (sl_cli_command_arg_t * arguments)
Delete an entry from short address list.
N/A | arguments | * arguments Ver.: always |
151
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringLongAddressDeleteEntry#
void emberAfPluginMacAddressFilteringLongAddressDeleteEntry (sl_cli_command_arg_t * arguments)
Delete an entry from long address list.
N/A | arguments | * arguments Ver.: always |
158
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringGetStatsForShortAddress#
EmberStatus emberAfPluginMacAddressFilteringGetStatsForShortAddress (uint8_t index, uint32_t * matchCountForIndexPtr)
Get stats for a short address.
N/A | index | Ver.: always |
N/A | matchCountForIndexPtr | Ver.: always |
Returns
EmberStatus status code
168
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringGetStats#
void emberAfPluginMacAddressFilteringGetStats (bool shortMode, uint32_t * allowedPacketCountPtr, uint32_t * droppedPacketCountPtr, uint32_t * totalPacketCountPtr)
Get MAC address filtering stats. Get the allowed, dropped and total packet counts.
N/A | shortMode | Ver.: always |
N/A | allowedPacketCountPtr | Ver.: always |
N/A | droppedPacketCountPtr | Ver.: always |
N/A | totalPacketCountPtr | Ver.: always |
178
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h