4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-13 12:56:29 +00:00

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
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
}