mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
BGP: Fix extended next hop handling
For IPv4 with extended next hop, we use MP-BGP format and therefore no independent NEXT_HOP attribute. Thanks to Arvin Gan for the bugreport.
This commit is contained in:
parent
c408d807a3
commit
f3a8cf050e
@ -295,7 +295,7 @@ bgp_encode_next_hop(struct bgp_write_state *s, eattr *a, byte *buf, uint size)
|
|||||||
* store it and encode it later by AFI-specific hooks.
|
* store it and encode it later by AFI-specific hooks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (s->channel->afi == BGP_AF_IPV4)
|
if ((s->channel->afi == BGP_AF_IPV4) && !s->channel->ext_next_hop)
|
||||||
{
|
{
|
||||||
ASSERT(a->u.ptr->length == sizeof(ip_addr));
|
ASSERT(a->u.ptr->length == sizeof(ip_addr));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user