summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-07-22 11:58:08 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:02 +0100
commite945ee80d35e4cce29ec87c1717db0597f8e6af4 (patch)
treeee98a2f001b6a000d752b7c2809ea6c7c462018b
parentpimd: Fix join in register to use correct nexthop (diff)
downloadfrr-e945ee80d35e4cce29ec87c1717db0597f8e6af4.tar.xz
frr-e945ee80d35e4cce29ec87c1717db0597f8e6af4.zip
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>
-rw-r--r--lib/prefix.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 85488ccea..4878fcfdd 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)));