[cmaster-next] [PATCH 1/9] lib: Setup prefix.h to allow it to store (s, g)
Donald Sharp
sharpd at cumulusnetworks.com
Wed Dec 14 15:49:45 EST 2016
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 at cumulusnetworks.com>
(cherry picked from commit c8fad6b8d700353d1a6d6eb7f3807f1c00dda097)
---
lib/prefix.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/prefix.h b/lib/prefix.h
index 85488cc..4878fcf 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -83,6 +83,11 @@ struct prefix
struct in_addr adv_router;
} lp;
struct ethaddr prefix_eth; /* AF_ETHERNET */
+ struct
+ {
+ struct in_addr src;
+ struct in_addr grp;
+ } sg;
u_char val[8];
uintptr_t ptr;
} u __attribute__ ((aligned (8)));
--
2.5.5
More information about the dev
mailing list