mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-31 06:56:13 +00:00
Fix missing else in static_add_ipv4() which was causing case of (!ifname)
to always be considered to be a blackhole route. (if gate is passed in, it cant be).
This commit is contained in:
parent
b3516a791d
commit
368aa3f0f5
@ -1431,7 +1431,7 @@ static_add_ipv4 (struct prefix *p, struct in_addr *gate, char *ifname,
|
||||
/* Make flags. */
|
||||
if (gate)
|
||||
type = STATIC_IPV4_GATEWAY;
|
||||
if (ifname)
|
||||
else if (ifname)
|
||||
type = STATIC_IPV4_IFNAME;
|
||||
else
|
||||
type = STATIC_IPV4_BLACKHOLE;
|
||||
|
Loading…
Reference in New Issue
Block a user