summaryrefslogtreecommitdiff
path: root/pimd/pim_hello.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-30 00:07:18 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-30 09:34:03 -0400
commit0f4b1d2d95e4f9bdb1412b5792941289332a7cc6 (patch)
treeba571cc3e3ff22dae0edd8d2b0f1231a7c18f538 /pimd/pim_hello.c
parent07b17d5927499beaf42665bb7bd2bcaea0b1e9d6 (diff)
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_hello.c')
-rw-r--r--pimd/pim_hello.c3
1 files changed, 2 insertions, 1 deletions
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",