diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-25 14:36:12 -0400 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-30 10:03:10 +0200 |
| commit | 0b821bb5ee05fd1b1ff552c71d4d1db9fb12213f (patch) | |
| tree | 92613322cacd8d61fee4de853ffaf0b387009e6e /zebra/kernel_netlink.c | |
| parent | 41e5abf816ddd63dbbd4ce91eacbcd03e2ee2b71 (diff) | |
tools, zebra: Use different protocol value for our statics
The re-use of RTPROT_STATIC has caused too many collisions
where other legitimate route sources are causing us to
believe we are the originator of the route. Modify
the code so that if another protocol inserts RTPROT_STATIC
we will assume it's a Kernel Route.
Fixes: #2293
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_netlink.c')
| -rw-r--r-- | zebra/kernel_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index db4f19460a..da5b01d640 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -110,6 +110,7 @@ static const struct message rtproto_str[] = { {RTPROT_ISIS, "IS-IS"}, {RTPROT_RIP, "RIP"}, {RTPROT_RIPNG, "RIPNG"}, + {RTPROT_ZSTATIC, "static"}, {0}}; static const struct message family_str[] = {{AF_INET, "ipv4"}, |
