From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE880C6778C for ; Sun, 1 Jul 2018 11:09:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82CD425028 for ; Sun, 1 Jul 2018 11:09:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82CD425028 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326AbeGALJC (ORCPT ); Sun, 1 Jul 2018 07:09:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:47690 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751909AbeGALI7 (ORCPT ); Sun, 1 Jul 2018 07:08:59 -0400 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?= To: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jian-Hong Pan , Jiri Pirko , Marcel Holtmann , "David S . Miller" , Matthias Brugger , Janus Piwek , =?UTF-8?q?Michael=20R=C3=B6der?= , Dollar Chen , Ken Yu , =?UTF-8?q?Andreas=20F=C3=A4rber?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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; -- 2.16.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: afaerber@suse.de (=?UTF-8?q?Andreas=20F=C3=A4rber?=) Date: Sun, 1 Jul 2018 13:07:52 +0200 Subject: [RFC net-next 03/15] net: lora: Add protocol numbers In-Reply-To: <20180701110804.32415-1-afaerber@suse.de> References: <20180701110804.32415-1-afaerber@suse.de> Message-ID: <20180701110804.32415-4-afaerber@suse.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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; -- 2.16.4