mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 20:34:33 +00:00
staticd: exact match on magic interface names
Don't do a substring match on magic interface names - do an exact match. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
306c4dab55
commit
38aac4a8fc
@ -426,9 +426,9 @@ static int static_route_leak(
|
|||||||
|
|
||||||
/* Null0 static route. */
|
/* Null0 static route. */
|
||||||
if (ifname != NULL) {
|
if (ifname != NULL) {
|
||||||
if (strncasecmp(ifname, "Null0", strlen(ifname)) == 0
|
if (strcasecmp(ifname, "Null0") == 0
|
||||||
|| strncasecmp(ifname, "reject", strlen(ifname)) == 0
|
|| strcasecmp(ifname, "reject") == 0
|
||||||
|| strncasecmp(ifname, "blackhole", strlen(ifname)) == 0) {
|
|| strcasecmp(ifname, "blackhole") == 0) {
|
||||||
if (vty)
|
if (vty)
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
"%% Nexthop interface cannot be Null0, reject or blackhole\n");
|
"%% Nexthop interface cannot be Null0, reject or blackhole\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user