]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Setup prefix.h to allow it to store (s,g)
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 22 Jul 2016 09:58:08 +0000 (05:58 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:02 +0000 (20:26 -0500)
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>
lib/prefix.h

index 85488ccea7bbd5fb2186ac63c26059b0b320a7b4..4878fcfdd2f3efb9de08bff5bedfee42b1697d9e 100644 (file)
@@ -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)));