diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-01-10 19:13:27 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-30 14:00:47 +0200 |
| commit | 9a14899b0ac8f3d9d0ce077127568f215c301f6a (patch) | |
| tree | 177eadb198e40a532c4ae6d9a2f72ab2825df5cd /lib/memory.c | |
| parent | 46f1e1ee964e6408fbae477b824e8ed18cb357d6 (diff) | |
lib: prefix support for flowspec
prefix structure is used to handle flowspec prefixes. A new AFI is
introduced: AF_FLOWSPEC. A sub structure named flowspec_prefix is
used in prefix to host the flowspec entry.
Reason to introduce that new kind is that prefixlen from prefix
structure is too short to all the flowspec needs, since NLRI can go over
0xff bytes.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/memory.c')
| -rw-r--r-- | lib/memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/memory.c b/lib/memory.c index 90d7d420a9..be8b100ba7 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -26,6 +26,7 @@ struct memgroup **mg_insert = &mg_first; DEFINE_MGROUP(LIB, "libfrr") DEFINE_MTYPE(LIB, TMP, "Temporary memory") +DEFINE_MTYPE(LIB, PREFIX_FLOWSPEC, "Prefix Flowspec") static inline void mt_count_alloc(struct memtype *mt, size_t size) { |
