From 0f4b1d2d95e4f9bdb1412b5792941289332a7cc6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 30 Mar 2017 00:07:18 -0400 Subject: pimd: Add ability to encode/decode v6 secondary addresses Add ability to encode/decode the v6 secondary addresses if they are passed to us. This also fixes the issue where if we are passed a v6 secondary address list we will not refuse to form neighbors. Signed-off-by: Donald Sharp --- pimd/pim_hello.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pimd/pim_hello.c') diff --git a/pimd/pim_hello.c b/pimd/pim_hello.c index 3d7ae4ad22..d9b04ea952 100644 --- a/pimd/pim_hello.c +++ b/pimd/pim_hello.c @@ -507,7 +507,8 @@ int pim_hello_build_tlv(const char *ifname, if (ifconnected) { curr = pim_tlv_append_addrlist_ucast(curr, pastend, - ifconnected); + ifconnected, + AF_INET); if (!curr) { if (PIM_DEBUG_PIM_HELLO) { zlog_debug("%s: could not set PIM hello Secondary Address List option for interface %s", -- cgit v1.2.3