]> git.puffer.fish Git - mirror/frr.git/commit
ripngd: fix interface wakeup after shutdown 8680/head
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 17 May 2021 16:35:57 +0000 (19:35 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 17 May 2021 16:35:57 +0000 (19:35 +0300)
commit29ceb84855f486b43f320cacb7aa0511cde3c027
tree4f9d877310fca30871deb7d2eea603f36d8cf2b6
parent8f0c2688d79d9822157de9651fc2516c2a1379cb
ripngd: fix interface wakeup after shutdown

RIPNG schedules a call to `ripng_interface_wakeup` in 1 second after
receiving the interface UP event from zebra. The function is called even
if the interface was shut down during this interval.

This is incorrect and also leads to a crash in the following scenario:
```
vtysh -c "conf" -c "router ripng vrf red" -c "network enp2s0"
ip link add red type vrf table 1
ip link set enp2s0 vrf red
ip link set enp2s0 down
ip link set enp2s0 up && sleep 2 && ip link del red
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ripngd/ripng_interface.c