diff options
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r-- | proto/bgp/attrs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 0f41f818..9003feb2 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -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. */ - 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)); |