Bug#845153: new ifconfig has incompatible output, please revert

Marc MERLIN marc_soft at merlins.org
Sun Nov 20 21:02:29 UTC 2016


Package: net-tools
Version: 1.60+git20150829.73cef8a-2

before:
eth0 Link encap:Ethernet HWaddr bc:ae:c5:e3:33:fa
inet addr:192.168.205.3 Bcast:192.168.205.255 Mask:255.255.255.0
inet6 addr: 2603:3024:180d:9900:beae:c5ff:fee3:33fa/64 Scope:Global
inet6 addr: fe80::beae:c5ff:fee3:33fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7270392 errors:0 dropped:0 overruns:0 frame:0
TX packets:4543918 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10473484308 (9.7 GiB) TX bytes:312638423 (298.1 MiB)

after:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.205.3 netmask 255.255.255.0 broadcast 192.168.205.255
inet6 2603:3024:180d:9900:beae:c5ff:fee3:33fa prefixlen 64 scopeid 0x0<global>
inet6 fe80::beae:c5ff:fee3:33fa prefixlen 64 scopeid 0x20<link>
ether bc:ae:c5:e3:33:fa txqueuelen 1000 (Ethernet)
RX packets 7078604 bytes 10198858797 (9.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4416898 bytes 303820942 (289.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

let's add ":" after the interface name, so that if you have eth0:0, you
end up with eth0:0:
let's remove "addr' after 'inet' so that it can break every single
script that gets the ip address from ifconfig output.

Well, never mind, that new ifconfig output is almost entirely different
from the old one, the one that's been around for 20 years and that
countless people rely on being that way.

Sure, parsing ifconfig output is not great, but countless stuff on the
internet does it. ipmasq, a package I've been using for 15 years to do
custom firewalling heavily parses ifconfig output, and it's only one
amongst many. Also, sorry, but I don't think there is an easy way to get
the IP from an interface, or even your default GW in shell.

Obviously this came from upstream, please forward this complaint to them
and/or ensure that this new (IMO broken) ifconfig does not spread
further in debian.
If someone feels the need to change ifconfig output that much, they can
call it ifconfig2, or ip2.

Thank you
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                         | PGP 1024R/763BE901



More information about the Pkg-net-tools-maintainers mailing list