Merge pull request #1089 from opensourcerouting/zebra-fix-build

zebra: fix compiler error introduced by previous commit
This commit is contained in:
Donald Sharp 2017-08-31 20:02:05 -04:00 committed by GitHub
commit be65e7dcde

View File

@ -389,13 +389,13 @@ static int netlink_route_change_read_unicast(struct sockaddr_nl *snl,
if (index && !gate)
nh.type = NEXTHOP_TYPE_IFINDEX;
else if (index && gate)
nh.type = (afi == AFI_IP) ?
nh.type = (afi == AFI_IP)
? NEXTHOP_TYPE_IPV4_IFINDEX
: NEXTHOP_TYPE_IPV6_IFINDEX;
else if (!index && gate)
nh.type = (afi == AFI_IP) ?
? NEXTHOP_TYPE_IPV4
: NEXTHOP_TYPE_IPV6;
nh.type = (afi == AFI_IP)
? NEXTHOP_TYPE_IPV4
: NEXTHOP_TYPE_IPV6;
else {
nh.type = NEXTHOP_TYPE_BLACKHOLE;
nh.bh_type = bh_type;