Fix kernel build after fcb3f813f379f544f9cd2a10d18045588da0e132 .
By adding missing ifdefs for INET and INET6 when building LINT-NOIP .
Differential Revision: https://reviews.freebsd.org/D36731
Sponsored by: NVIDIA Networking
(cherry picked from commit 1d41a055578704a28b34820e0aaf14a29f28f413)