mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 06:42:17 +00:00
lib: Setup prefix.h to allow it to store (s,g)
We need the ability to store the (s,g) in a struct prefix. This will allow us to consolidate some duplicated code in pimd as well as set us up to switch from a link list to a table to store (s,g) state. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f6a1dc2ca7
commit
e945ee80d3
@ -83,6 +83,11 @@ struct prefix
|
|||||||
struct in_addr adv_router;
|
struct in_addr adv_router;
|
||||||
} lp;
|
} lp;
|
||||||
struct ethaddr prefix_eth; /* AF_ETHERNET */
|
struct ethaddr prefix_eth; /* AF_ETHERNET */
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
struct in_addr src;
|
||||||
|
struct in_addr grp;
|
||||||
|
} sg;
|
||||||
u_char val[8];
|
u_char val[8];
|
||||||
uintptr_t ptr;
|
uintptr_t ptr;
|
||||||
} u __attribute__ ((aligned (8)));
|
} u __attribute__ ((aligned (8)));
|
||||||
|
Loading…
Reference in New Issue
Block a user