]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3290c038cfdeb6445a411ae9e717746486726ed2
tree4961b7fab35dd56eed20a01ee338e3cfd1bed7a4
parentfecbf473c5634b72ebdb1624f1b6e79a6720eefe
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