mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 19:13:19 +00:00
Merge branch 'frr/pull/250' ("bgpd, zebra: Add ifindex to NEXTHOP_TYPE_IPV4")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
commit
0a1c014985
@ -432,6 +432,7 @@ bgp_parse_nexthop_update (int command, vrf_id_t vrf_id)
|
||||
{
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
nexthop->gate.ipv4.s_addr = stream_get_ipv4 (s);
|
||||
nexthop->ifindex = stream_getl (s);
|
||||
break;
|
||||
case NEXTHOP_TYPE_IFINDEX:
|
||||
nexthop->ifindex = stream_getl (s);
|
||||
@ -442,6 +443,7 @@ bgp_parse_nexthop_update (int command, vrf_id_t vrf_id)
|
||||
break;
|
||||
case NEXTHOP_TYPE_IPV6:
|
||||
stream_get (&nexthop->gate.ipv6, s, 16);
|
||||
nexthop->ifindex = stream_getl (s);
|
||||
break;
|
||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||
stream_get (&nexthop->gate.ipv6, s, 16);
|
||||
|
@ -893,6 +893,7 @@ send_client (struct rnh *rnh, struct zserv *client, rnh_type_t type, vrf_id_t vr
|
||||
{
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
stream_put_in_addr (s, &nexthop->gate.ipv4);
|
||||
stream_putl (s, nexthop->ifindex);
|
||||
break;
|
||||
case NEXTHOP_TYPE_IFINDEX:
|
||||
stream_putl (s, nexthop->ifindex);
|
||||
@ -903,6 +904,7 @@ send_client (struct rnh *rnh, struct zserv *client, rnh_type_t type, vrf_id_t vr
|
||||
break;
|
||||
case NEXTHOP_TYPE_IPV6:
|
||||
stream_put (s, &nexthop->gate.ipv6, 16);
|
||||
stream_putl (s, nexthop->ifindex);
|
||||
break;
|
||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||
stream_put (s, &nexthop->gate.ipv6, 16);
|
||||
|
Loading…
Reference in New Issue
Block a user