summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-01-09 18:28:10 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-01-10 19:26:31 -0500
commit6a923ca4626b2c29872c7a759a37516a62eb0eb9 (patch)
treeae1dab49abbca36441a4edd57737f25ccfcab98c /lib/prefix.h
parent45511ba99cc00149e38cc41a85cef51dbbd98d36 (diff)
lib: Add another 32 bit accessor to the prefix data structure
It would be nice to have the ability to access the prefix data structure address as a block of 4 uint32_t's. This will allow me to easily/quickly update the v6 address by 1. This will be used in subsuquent commits. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.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 4247569137..04c62b19e2 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -162,6 +162,7 @@ struct prefix {
} lp;
struct ethaddr prefix_eth; /* AF_ETHERNET */
uint8_t val[16];
+ uint32_t val32[4];
uintptr_t ptr;
struct evpn_addr prefix_evpn; /* AF_EVPN */
struct flowspec_prefix prefix_flowspec; /* AF_FLOWSPEC */