]> git.puffer.fish Git - matthieu/frr.git/commit
ripngd: fix drop of multicast membership when the interface is down
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 18 Nov 2016 17:39:25 +0000 (15:39 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 25 Nov 2016 13:46:06 +0000 (11:46 -0200)
commit9e544a9c4bd13aac6bbeaff235abaaeb07a186b3
tree8227396cd0f79a4edb4d136c4dc974d9c31667de
parentd7f966abed5f822e6f90442de5ccbf848be01b64
ripngd: fix drop of multicast membership when the interface is down

When an interface is shut down, ripng_multicast_leave() is called after
ifp->flags is updated in ripng_interface_down(). So we shouldn't check
if the interface is up in order to proceed with the membership drop.

For consistency's sake, don't check for if_is_up() in
ripng_multicast_join() as well. In this case, this function is only
called when the interface is up, so the check was unnecessary.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripngd/ripng_interface.c