From 28a10f84cbc3635e59bff348cb1715859dfacade Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 2 Oct 2013 14:41:37 +0200 Subject: Some fixes in filter code. Thanks to Sergey Popovich for original patches. --- nest/route.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nest/route.h') 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_... */ -- cgit v1.2.3