commit | 368aa3f0f5edc4daed09055b641c47a9e9dc48c9 | [log] [tgz] |
---|---|---|
author | paul <paul> | Sun May 25 23:24:50 2003 +0000 |
committer | paul <paul> | Sun May 25 23:24:50 2003 +0000 |
tree | da46e98e5c9f8a1c94189dc2de43542ffd5e266a | |
parent | b3516a791d7d44469b9a2a51557347958fe506d1 [diff] |
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).
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index fe29e81..4098db2 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c
@@ -1431,7 +1431,7 @@ /* Make flags. */ if (gate) type = STATIC_IPV4_GATEWAY; - if (ifname) + else if (ifname) type = STATIC_IPV4_IFNAME; else type = STATIC_IPV4_BLACKHOLE;