From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id f7ffa5e3 for ; Wed, 14 Dec 2016 21:08:51 +0000 (UTC) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 2d68308b for ; Wed, 14 Dec 2016 21:08:51 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id bbc71802 for ; Wed, 14 Dec 2016 21:08:50 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e295b424 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Wed, 14 Dec 2016 21:08:50 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id a197so133300298wmd.0 for ; Wed, 14 Dec 2016 13:15:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: "Jason A. Donenfeld" Date: Wed, 14 Dec 2016 22:15:08 +0100 Message-ID: Subject: Re: Structure(d) output of wg? To: =?UTF-8?Q?Dan_L=C3=BCdtke?= Content-Type: text/plain; charset=UTF-8 Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hey Dan, Yea, but that's usually the case with command line tools and shell processing. If you're in a position to be calling json, then why not just also call the ioctl directly? I guess json might be easier for some consumers? Hmm... > Nice bandwidth, though :) That's just the first ten too... [zx2c4@demo ~]$ sudo wg show wg0 peers | wc -l 232 Jason