linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* devinet.c inet_abc_len() breaking ifconfig?
@ 2018-10-15 14:42 Rob Landley
  0 siblings, 0 replies; only message in thread
From: Rob Landley @ 2018-10-15 14:42 UTC (permalink / raw)
  To: linux-kernel, David S. Miller

Dave Taht pointed out to me that this doesn't work in toybox:

  $ ifconfig eth0 242.2.0.1 netmask 255.255.255.0 broadcast 242.2.0.255
  ifconfig: ioctl 8916: Invalid argument

Because of this in the kernel:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/ipv4/devinet.c#n940

What is the inet_abc_len() function _for_? When's the last time "class A, Class
B, and Class C" IPv4 addresses actually _existed_ as a thing? (Somewhere around
1995?)

He suggested I switch to the netlink API, which doesn't enforce this, but... why
is the kernel enforcing it for one api but not the other?

Rob

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-15 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-15 14:42 devinet.c inet_abc_len() breaking ifconfig? Rob Landley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).