diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-11-19 15:46:42 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-11-19 15:51:10 -0500 |
| commit | 311c15ee60b07dc8afa523799c87fc5f62363284 (patch) | |
| tree | f3dbb1bf057550840545f0a65bb60389e633d9e5 /zebra/zebra_mpls.c | |
| parent | 47774e275799ce2baf814c5ae00f1bfa001b5d4b (diff) | |
zebra: Router Advertisement socket mess up
The code for when a new vrf is created to properly handle
router advertisement for it is messed up in several ways:
1) Generation of the zrouter data structure should set the rtadv
socket to -1 so that we don't accidently close someone elses
open file descriptor
2) When you created a new zvrf instance *after* bootup we are XCALLOC'ing
the data structure so the zvrf->fd was 0. The shutdown code was looking
for the >= 0 to know if the fd existed (since fd 0 is valid!)
This sequence of events would cause zebra to consume 100% of the
cpu:
Run zebra by itself ( no other programs )
ip link add vrf1 type vrf table 1003
ip link del vrf vrf1
vtysh -c "configure" -c "no interface vrf1"
This commit fixes this issue.
Fixes: #5376
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mpls.c')
0 files changed, 0 insertions, 0 deletions
