- Updated: April 1, 2026
- 1 min read
Linux Kernel Introduces CONFIG_LEGACY_IP Flag for IPv6‑Only Builds, Paving Way for IPv4 Deprecation
Linux kernel developers have added a new configuration flag, CONFIG_LEGACY_IP, that enables the creation of IPv6‑only kernels while emitting warnings for IPv4 socket usage. This change is a strategic step toward the eventual deprecation of legacy IPv4 support, offering a slimmer, more secure, and performance‑optimized kernel for cloud, embedded, and security‑focused environments.
The new flag allows administrators to build kernels that completely omit IPv4 code, reducing the attack surface and memory footprint. When an IPv4 socket is attempted on such a kernel, a clear warning is generated, helping developers and operators transition smoothly.
Key benefits include:
- Smaller kernel size, ideal for resource‑constrained devices.
- Improved security by eliminating outdated IPv4 networking stacks.
- Enhanced performance for workloads that rely solely on IPv6.
For a deeper dive into the technical details, see the original Phoronix article: Linux IPv6‑IPv4 Legacy Knobs.
Related internal resources:
Stay tuned for future updates as the Linux community continues to refine networking support and phase out legacy protocols.