3 ms·
It turns out the ifconfig command does not provide any default subnet mask parameters. That is done inside the kernel. Changing the kernel would break backwar
by sigjuice 6y ago
It turns out the ifconfig command does not provide any default subnet mask parameters. That is done inside the kernel. Changing the kernel would break backwards compatibility.
https://github.com/openbsd/src/blob/0970cb57551e0e8df6688f8a475400ea57aba548/sys/netinet/in.c#L664 https://github.com/openbsd/src/blob/0970cb57551e0e8df6688f8a...
https://github.com/torvalds/linux/blob/cb8e59cc87201af93dfbb6c3dccc8fcad72a09c2/net/ipv4/devinet.c#L1173 https://github.com/torvalds/linux/blob/cb8e59cc87201af93dfbb...