summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-10-15 15:01:39 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-08-21 13:37:08 +0200
commite4552d667aa43a518c5adaf3f06295be05c01d57 (patch)
tree21246c810c9c7ee7e55071b3a8e309f0a39e5e43 /lib/prefix.h
parent92b4f625d53df3b29a8b5075029b031cc4016e8b (diff)
lib: add family attribute for flowspec prefix structure
to recognize whether a flowspec prefix has been carried out by ipv4 flowspec or ipv6 flowspec ( actually, the hypothesis is that only ipv4 flowspec is supported), then a new attribute should contain the family value: AF_INET or AF_INET6. That value will be further used in the BGP flowspec code. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 400f07386f..2a33d532c8 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -176,6 +176,7 @@ struct evpn_addr {
#endif
struct flowspec_prefix {
+ uint8_t family;
uint16_t prefixlen; /* length in bytes */
uintptr_t ptr;
};