Permalink
Browse files

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>
  • Loading branch information...
donaldsharp committed Jan 9, 2019
1 parent 45511ba commit 6a923ca4626b2c29872c7a759a37516a62eb0eb9
Showing with 1 addition and 0 deletions.
  1. +1 −0 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 */

0 comments on commit 6a923ca

Please sign in to comment.