Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3354691pxk; Mon, 7 Sep 2020 10:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuUyZpxDig8Mf19OgKX4jd+HZ4d4mnbTlHf2jhOyyPeSG3xNrAegs5Y/ymqVlu+e3FQrAQ X-Received: by 2002:a17:906:b156:: with SMTP id bt22mr21798884ejb.481.1599499579772; Mon, 07 Sep 2020 10:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599499579; cv=none; d=google.com; s=arc-20160816; b=KZ4Z4bLNQ8LClXhk4WZDfbAt2cHqz5QI1/UIrPnbfl/AgVVH/VJP+vm7vZfcPQgEja Kn8QOLmUv2GLnkvMzwvFpB9Md8oAD5g938lXDn7wBqCXChDfwVF9+BUvTmxz4LhW+oEO mZLADo3wDAh2LZDsUFweGsKyedG4sU8sslkxRiM6Z9X9qlBCizJdVUPFobLuiRSMN0X/ 4FcErMsHA/8B2EDF/wTvlbHIpcUo/c/Q8EvqIUv+1AHCLhGxQCJfGXptyLa9/sXS0YA+ 4VIs5qHT26lTIFg4xlMtKf+Ot2DX0Rv/oD/knsdgBcm81JMOXhfJeu9ylyllYlx7Z/iG M19g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wewuNiWfC3+VcD7XitHx4kJB96Pupcst/n2VBO7spuc=; b=aqX78wWli/H2oLQMQgWI7XTPWTl6yH+eQGN7DiJqcFCVB4ZALmSZCYBS7Z6NZCOyzV /0WCdCAQH0KKkXEo6tXRTNZKAJgubLnzZYmphJEhPNb4apa8Ad7CdudQkBG/FxQAkre4 FFvnqHMwnvPszEZ0KdTKz/MLtK6v79DTzjfCtAfEX/13U9U5VkyXe/mcrbUJq9hQ7o0J qnSc3efK8JwqWvm0WSKU/RoKN9Ael39qpdE1JCrPswSuZHNpbOGKHWo4U4QOgQmiYBUi 0nDbOyu/0iMUwKcuucjteyyHuN+yaY+JnniT8QVEwpK1U6idIB4f06Sp5pAd7xmWmoYt U6IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QGI4gjlD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si25655edq.28.2020.09.07.10.25.55; Mon, 07 Sep 2020 10:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QGI4gjlD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729732AbgIGRZk (ORCPT + 99 others); Mon, 7 Sep 2020 13:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730712AbgIGRZe (ORCPT ); Mon, 7 Sep 2020 13:25:34 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DF04C061573 for ; Mon, 7 Sep 2020 10:25:34 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id p81so3804494ybc.12 for ; Mon, 07 Sep 2020 10:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wewuNiWfC3+VcD7XitHx4kJB96Pupcst/n2VBO7spuc=; b=QGI4gjlDfckcgjSDRAVGr7u7ISedvmWmOFQ6k8RSBPQoFlbGuUZZc5mXX/tPWckuR6 VKmHilWolHX07J4w26JjsRkjaqxoSFPUl+ZaSDs29DVjfkeJNFjJDzFs1Fd7jz6+1dfX B8b6Z3lkI6VsbdU+rQp4QjYLR72QJgFBEefzqJth0t5Yq9xoF2EKj3LanQNN6LsgoaKs mYxvb8SscEZ0T0LuA3PMq0BXZjqyOiipPllsT0/5kcJldnrXubnqeg49KCdhyBm8BRZi 3xsvAHPlA76HWmnpf3TfbLyzO7gCAfLb7QwBZ8k5hxJNu9VplIhDQ9/+UHkHWRzLYTI5 Q0Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wewuNiWfC3+VcD7XitHx4kJB96Pupcst/n2VBO7spuc=; b=CtSGs7K73jcS9Jcso371GsEaoMblHeHEZxbFvHPWvzRenDQiMr/rMcO8yAxVYVmE1o amCgH9TZ+HeE56r7yICQskXWasz6775mRavvZqpljKIrkNgHk4waVk9AnEKvzOOTfJRT 0tgQbzhZvQq6Wvd0+qza2enpFeRxl/8PFbzKErt8Vi8F0KaDw4/45PU3Z+IJbIqV9oE6 QfWKg7HTl/HdXgVD56cABUqw/yv1x2Rlt5VmzWutigQofWUlJO5AgVNJAYTg4UFJVe7n a5JBRdAZv93sJICpRM9cMpbmRusMYYSgYiisdUaw1aoBy7Nxwt1apdz1ALrugOb5T3Fl Eo5Q== X-Gm-Message-State: AOAM532gcsXE9zmE3gTk9RHEB2Cxd7Wi+3xWr18stBRWuecIKfnzhwxa GWkDSqgYh663JwhLS6TXCSsqhRhXp5ArgQZweOj9wmVPL3U= X-Received: by 2002:a25:a081:: with SMTP id y1mr29458416ybh.370.1599499533171; Mon, 07 Sep 2020 10:25:33 -0700 (PDT) MIME-Version: 1.0 References: <04HAGQ.ASDIWY4TQH8H3@crapouillou.net> <55e3de67208c2120857102d13a896553fbf223b4.camel@sipsolutions.net> In-Reply-To: From: Krishna Chaitanya Date: Mon, 7 Sep 2020 22:55:22 +0530 Message-ID: Subject: Re: alternatives to screenscraping iw? To: Johannes Berg Cc: Paul Cercueil , linux-wireless , od@zcrc.me Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Sep 7, 2020 at 10:22 PM Johannes Berg wrote: > > On Mon, 2020-09-07 at 21:52 +0530, Krishna Chaitanya wrote: > > > > FYI, We have open-sourced our internal library which takes care of abstracting > > Netlink attributes, just need to define commands and event messages in JSON, > > https://github.com/bluwireless/py-genl. The initial port of all > > messages might be an effort but extending it would be easy. > > Nice. > > I wonder if the netlink policy export I wrote for the kernel could be > used to generate attribute descriptions? Even if it means just running a > tool in a latest kernel VM to do it. Can you please point me to it? But yes, auto-generating those should be handy. Probably can pick up the header file from sources in kernel.org instead of booting into a VM (depending on how your tools work)?