38 #ifndef OPENAPI_STATIC_FILTER_H_INCLUDED
39 #define OPENAPI_STATIC_FILTER_H_INCLUDED
45 OPEN_FILTER_FORWARD_ALL,
46 OPEN_FILTER_FORWARD_UNREGISTERED,
47 OPEN_FILTER_FILTER_UNREGISTERED
48 } OPEN_FILTER_VLAN_FILTER_MODE_t;
384 uint32_t *numOfDstIntf,
408 uint32_t *numOfDstIntf,
447 uint32_t *totalCount, uint32_t *multicastFiltCount,
448 uint32_t *unicastFiltCount);
566 OPEN_FILTER_VLAN_FILTER_MODE_t mode);
587 OPEN_FILTER_VLAN_FILTER_MODE_t mode);
607 OPEN_FILTER_VLAN_FILTER_MODE_t *mode);
open_error_t openapiFilterDstFiltIntfListGet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t *numOfDstIntf, open_buffdesc *dstFiltIntfList)
Gets list of destination filter interfaces for a MAC static filter.
open_error_t openapiFilterVlanFilteringModeGet(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_FILTER_VLAN_FILTER_MODE_t *mode)
Gets multicast address filtering configuration for the specified vlan.
open_error_t openapiFilterStreamGet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t *streamId)
Gets the configured stream id.
open_error_t openapiFilterSrcIntfAdd(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t ifNum)
Adds a source interface to the static MAC filter.
open_error_t openapiFilterCheckMacAddrTypeMulticast(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, OPEN_BOOL_t *status)
Checks to see the mac address type, unicast or multicast.
open_error_t openapiFilterSrcIntfListGet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t *numOfSrcIntf, open_buffdesc *srcIntfList)
Gets list of source interfaces for a MAC static filter.
open_error_t openapiFilterAdminModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
Sets the static MAC filter admin mode.
open_error_t openapiFilterCountersGet(openapiClientHandle_t *client_handle, uint32_t *totalCount, uint32_t *multicastFiltCount, uint32_t *unicastFiltCount)
Gets the number of total, multicast and unicast MAC static filters configured.
open_error_t openapiFilterFirstGet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t *vlanId)
Gets the first configured MAC static filter.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiFilterVlanFilteringModeSet(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_FILTER_VLAN_FILTER_MODE_t mode)
Sets multicast address filtering configuration for the specified vlan.
open_error_t openapiFilterCountGet(openapiClientHandle_t *client_handle, uint32_t *count)
Gets the number of MAC static filters configured.
open_error_t openapiFilterIsValidIntf(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Checks if the interface is valid for filtering.
open_error_t openapiFilterCreate(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanID)
Create a MAC Static Filter.
open_error_t openapiFilterAdminModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
Gets the static MAC filter admin mode.
open_error_t openapiFilterDstIntfListDelete(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t ifNum, open_buffdesc *fwdIntfList, open_buffdesc *filterIntfList)
Deletes destination interfaces from the static MAC filter.
open_error_t openapiFilterStreamSet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t streamId)
Sets the stream id of an existing macfilter with given MAC address and vlan id.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiFilterSizeGet(openapiClientHandle_t *client_handle, uint32_t *size)
Gets the buffer size used by filtering component for the bit mask.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiFilterFilteringModeSet(openapiClientHandle_t *client_handle, OPEN_FILTER_VLAN_FILTER_MODE_t mode)
Set multicast address filtering configuration for all vlans.
open_error_t openapiFilterNextGet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, open_buffdesc *nextMacAddr, uint32_t *nextVlanId)
Gets the next configured MAC static filter.
open_error_t openapiFilterDstIntfAdd(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t ifNum)
Adds a destination interface to the static MAC filter.
open_error_t openapiFilterDstIntfDelete(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t ifNum)
Deletes a destination interface from the destination interface list of the static MAC filter...
open_error_t openapiFilterDstIntfListAdd(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t ifNum, open_buffdesc *fwdIntfList, open_buffdesc *filterIntfList)
Adds destination interfaces to the static MAC filter.
open_error_t openapiFilterSrcIntfDelete(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t ifNum)
Deletes a source interface from the source interface list of the static MAC filter.
open_error_t openapiFilterIsIntfInAnyFilter(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Checks if a particular interface is present in any MAC filter.
open_error_t openapiFilterDstIntfListGet(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, uint32_t *numOfDstIntf, open_buffdesc *dstIntfList)
Gets list of destination interfaces for a MAC static filter.
open_error_t openapiFilterRemove(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanID)
Remove a configured MAC Static Filter.
open_error_t openapiFilterPortParmCanSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Check to see if the port is the appropriate type on which the param can be set.
open_error_t openapiFilterSrcIntfListModify(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, open_buffdesc *srcIntfList)
Apply a source interface list to the static MAC filter.
open_error_t openapiFilterIsConfigured(openapiClientHandle_t *client_handle, open_buffdesc *macAddr, uint32_t vlanId, OPEN_BOOL_t *status)
Checks to see if a MAC filter is configured or not.