Flag signalling that MP-BGP mode should be used got reset after first
batch of routes, so remaining routes were processed without that, leading
to missing MP_REACH_NLRI attribute.
Thanks to Piotr Wydrych for the bugreport.
s->table = tab;
s->ipv4 = tab ? (tab->addr_type == NET_IP4) : 0;
- s->bws->mp_reach = !s->ipv4;
if (s->table)
rt_lock_table(s->table);
mrt_buffer_need(b, MRT_ATTR_BUFFER_SIZE);
byte *pos = b->pos;
+ s->bws->mp_reach = !s->ipv4;
s->bws->mp_next_hop = NULL;
/* Encode BGP attributes */