l2filter.h File Reference

Link layer address filter interface definition. More...

Detailed Description

Link layer address filter interface definition.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file l2filter.h.

#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
+ Include dependency graph for l2filter.h:

Go to the source code of this file.

Data Structures

struct  l2filter_t
 Filter list entries. More...
 

Macros

#define L2FILTER_ADDR_MAXLEN   (8U)
 Maximal length of addresses that can be stored in the filter list.
 
#define L2FILTER_LISTSIZE   (8U)
 Number of slots in each filter list (filter entries per device)
 

Functions

int l2filter_add (l2filter_t *list, const void *addr, size_t addr_len)
 Add an entry to a devices filter list. More...
 
int l2filter_rm (l2filter_t *list, const void *addr, size_t addr_len)
 Remove an entry from the given filter list. More...
 
bool l2filter_pass (const l2filter_t *list, const void *addr, size_t addr_len)
 Check if the given address passes the set filters. More...