Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Martin Pieuchot
On 12/04/16(Tue) 14:43, Christian Weisgerber wrote: > On 2016-04-12, Martin Pieuchot wrote: > > > Relying on the "scopeid" field is not a viable long-term solution. I'm > > spending too much time these days trying to figure out which interface > > correspond to which index. >

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Sebastian Benoit
Martin Pieuchot(m...@openbsd.org) on 2016.04.12 16:25:36 +0200: > On 12/04/16(Tue) 14:03, Stuart Henderson wrote: > > On 2016/04/12 14:18, Claudio Jeker wrote: > > > On Tue, Apr 12, 2016 at 01:47:53PM +0200, Stefan Sperling wrote: > > > > On Tue, Apr 12, 2016 at 12:27:10PM +0100, Stuart Henderson

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Sebastian Benoit
Christian Weisgerber(na...@mips.inka.de) on 2016.04.12 14:43:50 +: > On 2016-04-12, Martin Pieuchot wrote: > > > Relying on the "scopeid" field is not a viable long-term solution. I'm > > spending too much time these days trying to figure out which interface > > correspond

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Christian Weisgerber
On 2016-04-12, Martin Pieuchot wrote: > Relying on the "scopeid" field is not a viable long-term solution. I'm > spending too much time these days trying to figure out which interface > correspond to which index. What's the general use case for this? I mean apart from

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Martin Pieuchot
On 12/04/16(Tue) 14:03, Stuart Henderson wrote: > On 2016/04/12 14:18, Claudio Jeker wrote: > > On Tue, Apr 12, 2016 at 01:47:53PM +0200, Stefan Sperling wrote: > > > On Tue, Apr 12, 2016 at 12:27:10PM +0100, Stuart Henderson wrote: > > > > On 2016/04/12 13:00, Martin Pieuchot wrote: > > > > >

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Stuart Henderson
On 2016/04/12 14:18, Claudio Jeker wrote: > On Tue, Apr 12, 2016 at 01:47:53PM +0200, Stefan Sperling wrote: > > On Tue, Apr 12, 2016 at 12:27:10PM +0100, Stuart Henderson wrote: > > > On 2016/04/12 13:00, Martin Pieuchot wrote: > > > > Relying on the "scopeid" field is not a viable long-term

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Stuart Henderson
On 2016/04/12 08:32, sven falempin wrote: > still advocating for a structured output of system commands like ifconfig > -json, freebsd is > that way ;-)

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread sven falempin
On Tue, Apr 12, 2016 at 8:18 AM, Claudio Jeker wrote: > On Tue, Apr 12, 2016 at 01:47:53PM +0200, Stefan Sperling wrote: > > On Tue, Apr 12, 2016 at 12:27:10PM +0100, Stuart Henderson wrote: > > > On 2016/04/12 13:00, Martin Pieuchot wrote: > > > > Relying on the

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Claudio Jeker
On Tue, Apr 12, 2016 at 01:47:53PM +0200, Stefan Sperling wrote: > On Tue, Apr 12, 2016 at 12:27:10PM +0100, Stuart Henderson wrote: > > On 2016/04/12 13:00, Martin Pieuchot wrote: > > > Relying on the "scopeid" field is not a viable long-term solution. I'm > > > spending too much time these days

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Stefan Sperling
On Tue, Apr 12, 2016 at 12:27:10PM +0100, Stuart Henderson wrote: > On 2016/04/12 13:00, Martin Pieuchot wrote: > > Relying on the "scopeid" field is not a viable long-term solution. I'm > > spending too much time these days trying to figure out which interface > > correspond to which index. > >

Re: Print ifindex in ifconfig(8)

2016-04-12 Thread Stuart Henderson
On 2016/04/12 13:00, Martin Pieuchot wrote: > Relying on the "scopeid" field is not a viable long-term solution. I'm > spending too much time these days trying to figure out which interface > correspond to which index. > > Here's a difference in output, then the diff itself. ok? > > @@ -1,31