ip/6in4: request ipv4 packets only in ipmux filter

This commit is contained in:
cinap_lenrek 2020-06-07 16:56:54 +02:00
parent 5474646164
commit 29fee6a8ed

View file

@ -149,7 +149,7 @@ setup(int *v6net, int *tunp)
/*
* gain access to IPv6-in-IPv4 packets via ipmux
*/
p = seprint(buf, buf + sizeof buf, "%s/ipmux!proto=%2.2x|%2.2x;dst=%V",
p = seprint(buf, buf + sizeof buf, "%s/ipmux!ver=4;proto=%2.2x|%2.2x;dst=%V",
outside, IP_IPV6PROTO, IP_ICMPV6PROTO, myip + IPv4off);
if (!anysender)
seprint(p, buf + sizeof buf, ";src=%V", remote4 + IPv4off);