From patchwork Sun Jul 1 11:07:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 937542 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OAjl7jDG"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41JSND0ptPz9s1b for ; Sun, 1 Jul 2018 21:10:19 +1000 (AEST) 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 1fZaF7-0005Av-98; Sun, 01 Jul 2018 11:10:09 +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_F=C3=A4rber?= 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-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [195.135.220.15 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthias Brugger , Jiri Pirko , Marcel Holtmann , Dollar Chen , linux-kernel@vger.kernel.org, =?utf-8?q?Michael_R=C3=B6der?= , Janus Piwek , =?utf-8?q?Andreas_F=C3=A4rber?= , Jian-Hong Pan , Ken Yu , "David S . Miller" , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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 --- include/uapi/linux/lora.h | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +/* 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;