0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 07:31:54 +00:00
bird/nest/assert.c
Jan Maria Matejka ef9e384852 Nest: Make f_val and eattr binary compatible.
This will help merging them in future commits.
2018-07-03 17:24:17 +02:00

9 lines
432 B
C

#include "nest/bird.h"
#include "filter/filter.h"
#include "nest/route.h"
_Static_assert(sizeof(struct f_val) >= sizeof(struct eattr), "Structures f_val and eattr not binary compatible!");
_Static_assert(OFFSETOF(struct f_val, val) == OFFSETOF(struct eattr, u), "Structures f_val and eattr not binary compatible!");
_Static_assert(sizeof(enum ea_type) == sizeof(enum f_type), "Structures f_val and eattr not binary compatible!");