diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-10-02 14:41:37 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-10-02 14:41:37 +0200 |
commit | 28a10f84cbc3635e59bff348cb1715859dfacade (patch) | |
tree | c39b3c3d706d860d1fbdef4745520ab1b8c94dbe /nest/route.h | |
parent | 70c5780535fa3bd2360e8208f9273ac6d1741107 (diff) |
Some fixes in filter code.
Thanks to Sergey Popovich for original patches.
Diffstat (limited to 'nest/route.h')
-rw-r--r-- | nest/route.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nest/route.h b/nest/route.h index 35b5fa19..e0b88551 100644 --- a/nest/route.h +++ b/nest/route.h @@ -405,6 +405,10 @@ struct adata { byte data[0]; }; +static inline int adata_same(struct adata *a, struct adata *b) +{ return (a->length == b->length && !memcmp(a->data, b->data, a->length)); } + + typedef struct ea_list { struct ea_list *next; /* In case we have an override list */ byte flags; /* Flags: EALF_... */ |