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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue