Message ID | 20180701110804.32415-4-afaerber@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6FF5E6035E for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 1 Jul 2018 11:10:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60B4028AF3 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 1 Jul 2018 11:10:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54A8728AFB; Sun, 1 Jul 2018 11:10:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0A67228AF3 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 1 Jul 2018 11:10:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5cYheWait3ZgbaC5b/Rwf3K6H6kmd8a5ts5MEAsgYh0=; b=OAjl7jDGvQcrOb z9M425uBrzSXe61vmlEJAj9m2eqwI/hsYCNzkuLZWyvRwpyD0f7R0lZnQLjVWdtfP1HLFIymf7NTe /IqKfFYulC3GOhIFTmOKVHDLhDcZTAqLgnHYdBwfkLUjCkx3GkN5Vwi6ebtSIi9WYd4fXMsLB8Heb NMSQTQxioBbEIJQz9D9dEOe2tZSZO7IMe0JPbBOKV3XHaOujZYhPs+0oEvxZTQzjKjmCwT3vC6s/q Tyq9rF9r3n05Mh4Eljvc1zgRH+2c34yfIwPVj0qHfCSRbtc3yg53Rvd4W+XON89PtCMEaxIurTnSw 6j9lZS5sBgli5skWegdQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fZaF4-0005Av-Ln; Sun, 01 Jul 2018 11:10:06 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fZaEC-0004Vk-B4 for linux-arm-kernel@lists.infradead.org; Sun, 01 Jul 2018 11:09:15 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 787A0AE3F; Sun, 1 Jul 2018 11:08:57 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de> To: netdev@vger.kernel.org Subject: [RFC net-next 03/15] net: lora: Add protocol numbers Date: Sun, 1 Jul 2018 13:07:52 +0200 Message-Id: <20180701110804.32415-4-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180701110804.32415-1-afaerber@suse.de> References: <20180701110804.32415-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180701_040912_577170_E74ABFB9 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Matthias Brugger <mbrugger@suse.com>, Jiri Pirko <jiri@resnulli.us>, Marcel Holtmann <marcel@holtmann.org>, Dollar Chen <dollar.chen@wtmec.com>, linux-kernel@vger.kernel.org, =?UTF-8?q?Michael=20R=C3=B6der?= <michael.roeder@avnet.eu>, Janus Piwek <jpiwek@arroweurope.com>, =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>, Jian-Hong Pan <starnight@g.ncu.edu.tw>, Ken Yu <ken.yu@rakwireless.com>, "David S . Miller" <davem@davemloft.net>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/uapi/linux/lora.h b/include/uapi/linux/lora.h index 9368e8a84f3a..4ff00b9c3c20 100644 --- a/include/uapi/linux/lora.h +++ b/include/uapi/linux/lora.h @@ -10,6 +10,10 @@ #include <linux/types.h> #include <linux/socket.h> +/* particular protocols of the protocol family PF_LORA */ +#define LORA_PROTO_DATAGRAM 0 +#define LORA_NPROTO 1 + struct sockaddr_lora { __kernel_sa_family_t lora_family; int lora_ifindex;
Default protocol implementation will be datagram. No other protocols are implemented yet. Q: Would these protocol numbers be the suitable place to define LoRaWAN? Signed-off-by: Andreas Färber <afaerber@suse.de> --- include/uapi/linux/lora.h | 4 ++++ 1 file changed, 4 insertions(+)