diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-01-12 15:37:01 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-01-12 15:37:01 +0100 |
commit | d774f6d721b0e52ed800c4b9a3a482c8ce9dd074 (patch) | |
tree | 8aa6798a9e775098edda40f348a6ee4646b64ee4 /proto/bgp/bgp.h | |
parent | 910adaa08bbd416288797505399ab47f990817e6 (diff) |
MRT: Fix IPv6 table dumps
Add fake MP_REACH_NLRI attribute with BGP next hop when encoding MRT
table dumps for IPv6 routes. That is necessary to encode next hop as
NEXT_HOP attribute is not used for MP-BGP.
Thanks to Santiago Aggio for the bugreport.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 5cabd327..dd7dc28f 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -559,6 +559,7 @@ static inline void bgp_unset_attr(ea_list **to, struct linpool *pool, uint code) { eattr *e = bgp_set_attr(to, pool, code, 0, 0); e->type = EAF_TYPE_UNDEF; } +int bgp_encode_mp_reach_mrt(struct bgp_write_state *s, eattr *a, byte *buf, uint size); int bgp_encode_attrs(struct bgp_write_state *s, ea_list *attrs, byte *buf, byte *end); ea_list * bgp_decode_attrs(struct bgp_parse_state *s, byte *data, uint len); |