Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2021 16:23:28 -0400
From:      Ryan Moeller <ryan@ixsystems.com>
To:        Mark Saad <nonesuch@longcount.org>
Cc:        "freebsd-hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: IFconfig libxo support
Message-ID:  <CAGuotKC0o26T%2BJSmPxXacargWeNOZowqBpuGNXWLRMAWA08eYw@mail.gmail.com>
In-Reply-To: <CAMXt9NYFU_3W=dfgzRfxrtbiMbX2xHNVBpeUJ2Ff9Tu78oNjHQ@mail.gmail.com>
References:  <CAMXt9Na5s3UsJ3Sn7ajmt3ertOh4abYGAWSFeSA5c_6cUxmeMQ@mail.gmail.com> <CAGuotKCzbtbVVbS5aKbTo_cjaR_SzQg2dXbERz-T1=NAPxb64g@mail.gmail.com> <CAGuotKCndUYK1LjPjrUP9Gi-6hs9Hq=E6_VnUJC2cx1Kb%2B7T0g@mail.gmail.com> <CAMXt9NYFU_3W=dfgzRfxrtbiMbX2xHNVBpeUJ2Ff9Tu78oNjHQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 20, 2021 at 3:35 PM Mark Saad <nonesuch@longcount.org> wrote:
> So any reason that ifconfig is going this way over how say netstat has
> --libxo as an output option ?

They're not mutually exclusive. libifconfig handles the low level
information gathering, and ifconfig formats it for output to the user.
One could still make ifconfig use libxo for formatting the output. I
just happen to be working on libifconfig lately and am using the flua
binding for testing. Outputting JSON for the available configuration
information is simply a practical demonstration of the flua binding,
it's not the end goal.

-- 
Ryan Moeller
iXsystems, Inc.
OS Developer
Email: ryan@iXsystems.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGuotKC0o26T%2BJSmPxXacargWeNOZowqBpuGNXWLRMAWA08eYw>