New patches allow building Linux IPv6-only

A new set of Linux kernel patches introduces the ability to build the kernel without IPv4 support, labeling it as 'Legacy IP' to pave the way for IPv6-only environments.
New Patches Allow Building Linux IPv6-Only, Option To Deprecate "Legacy" IPv4
The set of six patches add a CONFIG_LEGACY_IP option to allow toggling IPv4 support for the kernel build. At the moment with the patches, there will just be a warning if a process listens on a legacy IP socket. It also "marks Legacy IP for deprecation" though in reality this part of the patch series is more akin for April Fools' Day.
The patches from David Woodhouse, an Amazon/AWS engineer, can be found on the kernel mailing list.
With the hatred for the April 1st Day, Woodhouse did clarify in a follow-up post with his clear intentions:
"Yeah. The date notwithstanding, I do actually think we should do most of this for real. Maybe we don't get away with the actual deprecation and the warnings on use just yet, and maybe we won't even get away with calling the config option CONFIG_LEGACY_IP, although I would genuinely like to see us moving consistently towards saying "Legacy IP" instead of "IPv4" everywhere. But we should clean up the separation of CONFIG_INET and CONFIG_IPV[64] and make it possible to build with either protocol alone."
So we'll see ultimately what comes out of this patch series but there is merit for allowing IPv4-only or IPv6-only kernel builds especially in more forward-looking environments.
Source: Hacker News












