net: Allow class-e address assignment via ifconfig ioctl
authorDave Taht <dave.taht@gmail.com>
Tue, 11 Dec 2018 23:30:34 +0000 (15:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 23:39:31 +0000 (15:39 -0800)
commit65cab850f0eeaa9180bd2e10a231964f33743edf
tree4961b7fab35dd56eed20a01ee338e3cfd1bed7a4
parent69d2c86766da2ded2b70281f1bf242cb0d58a778
net: Allow class-e address assignment via ifconfig ioctl

While most distributions long ago switched to the iproute2 suite
of utilities, which allow class-e (240.0.0.0/4) address assignment,
distributions relying on busybox, toybox and other forms of
ifconfig cannot assign class-e addresses without this kernel patch.

While CIDR has been obsolete for 2 decades, and a survey of all the
open source code in the world shows the IN_whatever macros are also
obsolete... rather than obsolete CIDR from this ioctl entirely, this
patch merely enables class-e assignment, sanely.

Signed-off-by: Dave Taht <dave.taht@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/in.h
net/ipv4/devinet.c
net/ipv4/ipconfig.c