Modify ICMPv6 source address for "Packet Too Big" messages to a routable address so that it correctly routes to nodes in an yggdrasil /64 subnet

This commit is contained in:
Neil Alexander 2018-03-10 22:31:36 +00:00
parent 0dc1dd6292
commit bf0413a0c4
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 11 additions and 7 deletions

View file

@ -163,7 +163,9 @@ func (r *router) sendPacket(bs []byte) {
}
// Create the ICMPv6 response from it
icmpv6Buf, err := r.core.tun.icmpv6.create_icmpv6_tun(bs[8:24], ipv6.ICMPTypePacketTooBig, 0, ptb)
icmpv6Buf, err := r.core.tun.icmpv6.create_icmpv6_tun(
bs[8:24], bs[24:40],
ipv6.ICMPTypePacketTooBig, 0, ptb)
if err == nil {
r.recv <- icmpv6Buf
}