diff options
author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-05-25 06:10:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 06:10:19 +0200 |
commit | fb13a6d478f5ac3a95309a009909c7769ec6c1cc (patch) | |
tree | 5e139d0d47d310e88aa5dec825cd9daed4afee5b | |
parent | Merge remote-tracking branch 'origin/stable/3.0' (diff) | |
parent | pimd: Allow secondary address comparisons to work (diff) | |
download | frr-fb13a6d478f5ac3a95309a009909c7769ec6c1cc.tar.xz frr-fb13a6d478f5ac3a95309a009909c7769ec6c1cc.zip |
Merge pull request #610 from donaldsharp/rpprefixlen
pimd: Allow secondary address comparisons to work
-rw-r--r-- | pimd/pim_rp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c index d3d9beb05..3dde18708 100644 --- a/pimd/pim_rp.c +++ b/pimd/pim_rp.c @@ -98,6 +98,7 @@ pim_rp_init (void) str2prefix ("224.0.0.0/4", &rp_info->group); rp_info->group.family = AF_INET; rp_info->rp.rpf_addr.family = AF_INET; + rp_info->rp.rpf_addr.prefixlen = IPV4_MAX_PREFIXLEN; rp_info->rp.rpf_addr.u.prefix4.s_addr = INADDR_NONE; tail = rp_info; @@ -306,6 +307,7 @@ pim_rp_new (const char *rp, const char *group_range, const char *plist) } rp_info->rp.rpf_addr.family = AF_INET; + rp_info->rp.rpf_addr.prefixlen = IPV4_MAX_PREFIXLEN; result = inet_pton (rp_info->rp.rpf_addr.family, rp, &rp_info->rp.rpf_addr.u.prefix4); if (result <= 0) |