diff options
author | Lou Berger <lberger@labn.net> | 2017-02-23 23:48:47 +0100 |
---|---|---|
committer | Lou Berger <lberger@labn.net> | 2017-02-23 23:48:47 +0100 |
commit | 5f3b76145ee10eaf77f64a73a90be4074ea75ccf (patch) | |
tree | 9ec84d3f97f5e676b359bf319c2b9b4419d18d59 /bgpd | |
parent | Merge pull request #220 from opensourcerouting/fixes/addpath_id (diff) | |
download | frr-5f3b76145ee10eaf77f64a73a90be4074ea75ccf.tar.xz frr-5f3b76145ee10eaf77f64a73a90be4074ea75ccf.zip |
bgpd: Fix issue #218
Wrong offset was used when using global V6 address in place of
v6 LL. (Introduced in earlier fix of broken RD advertisement.)
Tested by @dslice in master.
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_updgrp_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c index 0dcc8fb22..fe60fc3fb 100644 --- a/bgpd/bgp_updgrp_packet.c +++ b/bgpd/bgp_updgrp_packet.c @@ -546,7 +546,7 @@ bpacket_reformat_for_peer (struct bpacket *pkt, struct peer_af *paf) } if (gnh_modified) - stream_put_in6_addr_at (s, vec->offset + 1 + (nhlen-IPV6_MAX_BYTELEN), mod_v6nhg); + stream_put_in6_addr_at (s, vec->offset + 1, mod_v6nhg); if (lnh_modified) stream_put_in6_addr_at (s, vec->offset + 1 + (nhlen-IPV6_MAX_BYTELEN), mod_v6nhl); |