On 20/08/15 at 10:13, Jan Engelhardt wrote: > > On Wednesday 2015-08-19 16:51, Andreas Herz wrote: > >And in RFC 4443 they are defined as: > > > >> 5 - Source address failed ingress/egress policy > >> 6 - Reject route to destination > > > >Is there a reason for that? > > > >If i look into the "extensions/libip6t_icmp6.c" i just see the codes 0,1,2,3,4 > >for type 1. And in "include/linux/netfilter_ipv6/ip6t_REJECT.h" it's > >"IP6T_ICMP6_ECHOREPLY" which doesnt' sound like the one in the RFC. > > > >Or is it just missing, so i might add it? > > It would appear fine to just add it. I just tested around and icmpv6 is already working but that's caused by rather optimistic parsing: > if (!xtables_strtoui(slash+1, NULL, &number, 0, UINT8_MAX)) So --icmpv6-type 1/255 is also possible. Is this intended to make those types and codes work although they don't match the names defined in "static const struct icmpv6_names icmpv6_codes"? Since it doesn't harm i guess keeping it non restrictive might be good (since checking every type and code number exactly would result in a little bit more complex code) or should i also straiten this check in parse_icmpv6? If no, the patch will just add the missing icmpv6 parts for the name based configuration. -- Andreas Herz -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html