static int htab_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 HTAB.

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 not found and HTAB was full for the corresponding hash. -EINVAL if bucket >= RTU_BUCKETS
 All Classes Files Functions Variables Defines