diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-01-06 15:01:49 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-01-16 05:06:03 -0800 |
commit | 9103dda49d4d10c3db42b20d38d6b6633755e037 (patch) | |
tree | 79529fe7c1605138563b943639f9571bf76a1c77 /docs/sources/policy.svg | |
parent | 665b8cc324b8d003b7c99c8c49f5bb8e9f942bd2 (diff) |
packet/bgp: Confirm IPv4/v6 conversion when AFI_IP6
Currently, GoBGP will miss-convert IPv4 nexthop address to IPv6
address when advertising AFI_IP6 routes with IPv4 peering.
For example, if the local address of GoBGP is "172.20.0.1", the
advertised nexthop will be miss-converted into "AC14:1::".
In this case, the nexthop address should be "::ffff:172.20.0.1".
This patch fixes this problem.
According to this change, this patch also fixes "nexthoplen"
calculation to parse and serialize NextHop field, otherwise it
will cause "mpreach nexthop length is incorrect" at GoBGP or
"Invalid NextHop length" at BGP peers.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'docs/sources/policy.svg')
0 files changed, 0 insertions, 0 deletions