]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: reject inconsistent address/mask "ip pim rp command"
authorSarita Patra <saritap@vmware.com>
Fri, 8 Feb 2019 09:35:21 +0000 (01:35 -0800)
committerSarita Patra <saritap@vmware.com>
Fri, 8 Feb 2019 09:35:21 +0000 (01:35 -0800)
commit6b44b401410a7f910af560d99822c65d71e8fbad
tree698b796e329e9d585d42b5932287b964ecb0e6ce
parentaef69c4feab965298bdb176c0fcebddb533a4066
pimd: reject inconsistent address/mask "ip pim rp command"

Issue: Configure "ip pim rp x.x.x.x 225.0.0.0/4".
Show running config shows "ip pim rp x.x.x.x 224.0.0.0/4"
This is mis-leading.

Root-cause: Internally 225.0.0.0/4 is getting converted to
224.0.0.0/4 group mask, since the prefix length is 4.

Fix: Restrict the user to configure inconsistent group address
mask by throughing a cli error "Inconsistent address and mask".

Signed-off-by: Sarita Patra <saritap@vmware.com>
pimd/pim_cmd.c
pimd/pim_rp.c
pimd/pimd.h