From: Donald Sharp Date: Fri, 22 Jul 2016 09:58:08 +0000 (-0400) Subject: lib: Setup prefix.h to allow it to store (s,g) X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~364 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e945ee80d35e4cce29ec87c1717db0597f8e6af4;p=mirror%2Ffrr.git 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 --- diff --git a/lib/prefix.h b/lib/prefix.h index 85488ccea7..4878fcfdd2 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)));