Re: ifconfig: print netmask in CIDR notation

2016-12-13 Thread Martin Pieuchot
On 13/12/16(Tue) 11:32, Reyk Floeter wrote: > [...] > Simple reasons: this is a different discussion or diff. If we would > want to remove non-contiguous netmasks completely, it should be done > in the stack. Until then, it is better that ifconfig can cope with > them. The stack no longer

Re: ifconfig: print netmask in CIDR notation

2016-12-13 Thread Reyk Floeter
On Tue, Dec 13, 2016 at 10:13:32AM +, Stuart Henderson wrote: > On 2016/12/13 10:51, Reyk Floeter wrote: > > printing the netmask in hex seems to be a historical artifact in ifconfig; > > I always wondered about it and I never got used to it. > > > > The following diff changes ifconfig output

Re: ifconfig: print netmask in CIDR notation

2016-12-13 Thread Stuart Henderson
On 2016/12/13 10:51, Reyk Floeter wrote: > printing the netmask in hex seems to be a historical artifact in ifconfig; > I always wondered about it and I never got used to it. > > The following diff changes ifconfig output to print contiguous > netmasks in CIDR notation. Non-contiguous netmasks

Re: ifconfig: print netmask in CIDR notation

2016-12-13 Thread Reyk Floeter
On Tue, Dec 13, 2016 at 10:58:28AM +0100, Mark Kettenis wrote: > > Date: Tue, 13 Dec 2016 10:51:40 +0100 > > From: Reyk Floeter > > > > Hi, > > > > printing the netmask in hex seems to be a historical artifact in ifconfig; > > I always wondered about it and I never got used to

Re: ifconfig: print netmask in CIDR notation

2016-12-13 Thread Mark Kettenis
> Date: Tue, 13 Dec 2016 10:51:40 +0100 > From: Reyk Floeter > > Hi, > > printing the netmask in hex seems to be a historical artifact in ifconfig; > I always wondered about it and I never got used to it. > > The following diff changes ifconfig output to print contiguous >

ifconfig: print netmask in CIDR notation

2016-12-13 Thread Reyk Floeter
Hi, printing the netmask in hex seems to be a historical artifact in ifconfig; I always wondered about it and I never got used to it. The following diff changes ifconfig output to print contiguous netmasks in CIDR notation. Non-contiguous netmasks will still be printed in full, tunnels will