static int hcam_contains ( uint8_t  mac[ETH_ALEN],
uint8_t  fid,
int *  bucket,
struct filtering_entry **  ent 
) [static]

Checks whether a given pair (mac,fid) is at HCAM

Parameters:
macmac address
fidfiltering database identifier
bucketinout param.Returns the bucket number where the entry was found
entpointer to entry found.
Returns:
0 if entry was not found. 1 if entry was found. -1 if entry was not found and the end of bucket was reached. -ENOMEM if no more entries after the end of bucket. -EINVAL if bucket >= CAM_ENTRIES or HCAM inconsistent.
 All Classes Files Functions Variables Defines