Fix building on kernels < 2.6.37 where IPv6 is built as a module
Support 2.6.31