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.
Modules#
MacAddressFilterOptionsDescription
API#
Clear all lists for MAC address filtering.
Get stats for a short address.
Get MAC address filtering stats. Get the allowed, dropped and total packet counts.
Set the decision to manupulate the MAC address filtering tables.
Add the short address.
Add the long address.
Add the panID.
Set the short address list type.
Set the long address list type.
Set the list type of panId list.
Enumerations#
Typedefs#
Macros#
API Documentation#
emberAfPluginMacAddressFilteringClearAll#
void emberAfPluginMacAddressFilteringClearAll (void )
Clear all lists for MAC address filtering.
N/A | * arguments Ver.: always |
225
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
235
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 |
245
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringFilterNoAddress#
void emberAfPluginMacAddressFilteringFilterNoAddress (bool filterNoAddress)
Set the decision to manupulate the MAC address filtering tables.
N/A | filterNoAddress | Ver.:always |
254
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringAddShortAddress#
void emberAfPluginMacAddressFilteringAddShortAddress (EmberNodeId nodeId)
Add the short address.
N/A | nodeId | Ver.:always |
260
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringAddLongAddress#
void emberAfPluginMacAddressFilteringAddLongAddress (EmberEUI64 eui64)
Add the long address.
N/A | eui64 | Ver.:always |
266
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringAddPanId#
void emberAfPluginMacAddressFilteringAddPanId (EmberPanId panId)
Add the panID.
N/A | panId | Ver.:always |
272
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringSetShortAddressListType#
void emberAfPluginMacAddressFilteringSetShortAddressListType (uint8_t * listType)
Set the short address list type.
N/A | listType | Ver.:always, listType can be "set-whitelist" or "set-blacklist". |
278
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringSetLongAddressListType#
void emberAfPluginMacAddressFilteringSetLongAddressListType (uint8_t * listType)
Set the long address list type.
N/A | listType | Ver.:always, listType can be "set-whitelist" or "set-blacklist". |
284
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
emberAfPluginMacAddressFilteringSetPanIdListType#
void emberAfPluginMacAddressFilteringSetPanIdListType (uint8_t * listType)
Set the list type of panId list.
N/A | listType | Ver.:always, listType can be "set-whitelist" or "set-blacklist". |
290
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
Enumeration Documentation#
MacAddressMode#
MacAddressMode
Enumerator | |
---|---|
MAC_ADDRESS_MODE_NONE | |
MAC_ADDRESS_MODE_SHORT | |
MAC_ADDRESS_MODE_LONG |
133
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
MacFilterType#
MacFilterType
Enumerator | |
---|---|
MAC_FILTER_TYPE_NO_ADDRESS | |
MAC_FILTER_TYPE_SHORT_ADDRESS | |
MAC_FILTER_TYPE_LONG_ADDRESS | |
MAC_FILTER_TYPE_PAN_ID |
145
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
FilterResult#
FilterResult
Enumerator | |
---|---|
ALLOW_PACKET | |
DROP_PACKET |
204
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
Typedef Documentation#
MacAddressFilterOptions#
typedef uint8_t MacAddressFilterOptions
151
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
Variable Documentation#
macAddressFilterData#
MacAddressFilterGlobals macAddressFilterData
211
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h
zeroEui64#
const EmberEUI64 zeroEui64
213
of file app/framework/plugin-soc/mac-address-filtering/mac-address-filtering.h