zebra: match gateway when deleting NEXTHOP_IPV4_IFINDEX routes

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Feng Lu <lu.feng@6wind.com>
This commit is contained in:
Christian Franke 2013-11-27 17:06:14 +00:00 committed by Vincent JARDIN
parent a25a1264a5
commit 23f5f7c3dd

View File

@ -879,6 +879,7 @@ zread_ipv4_delete (struct zserv *client, u_short length)
break;
case ZEBRA_NEXTHOP_IPV4_IFINDEX:
nexthop.s_addr = stream_get_ipv4 (s);
nexthop_p = &nexthop;
ifindex = stream_getl (s);
break;
case ZEBRA_NEXTHOP_IPV6: