On 2013/01/29 15:44, Julien Dhaille wrote: > Just tried with a GENERIC kernel, however it's still working. > So, if i follow you, this usage of INET6 define is definitely ugly ?
Actually...it is irrelevant whether the kernel has v6 support or not when you build this userland program, the same binary ought to be able to cope with either type of kernel... So it would probably be necessary to make the socket() failure be a non-fatal error providing that both sockets (send/recv) for a particular af did succeed. But then you need to prevent trying to check_icmp_add when the socket couldn't be setup, and maybe even push it back to where the host is added, bearing in mind that someone might add an IPv6 host and reload the config expecting it to not blow up. Makes you wonder if it's really worth running a custom crippled kernel in the first place :)
