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: 140696 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2847416ljj; Sun, 1 Jul 2018 04:09:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLG9jP3+XTQN8LYvjXGnzPsqlZe0r5sOsZ8Nt+d//xPwgLjROdKaIUsCzTTKaMTiDKXPzp8 X-Received: by 2002:a17:902:28a6:: with SMTP id f35-v6mr21813349plb.110.1530443355373; Sun, 01 Jul 2018 04:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530443355; cv=none; d=google.com; s=arc-20160816; b=LpGe5rG81c+o8aNcyhRQO98505py7NJE7f/WBH2ZBnpVAEvqLj0UcV+e1am5E3V9VK F2IaWEty+BBlKTAVSC4dHR6IfTLlZmKniKSrpYkoDBRHowUSHkXu5eabekly5fDULzNn YAtVMpbp6pZbtqPxLwBzMlU0BXGUUM3OzJ8c21ggTpxzNHB4X4YhModmj2dCTaBSRcKQ CzPh/2G15Iy8n1cxQByB40gJz8qJKa+YfdEjoOUXP+3oy6y5tDUXVbLXMOW+faeljpxo CfUqnmWTFGNHecT8f7ZKkCvahYuyCFs/FJgcS4T/Ne9K5m1jGPlFVyRR1Jq9v+IpshDF LnbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BP9HHyg7i2eQb8D1YdCpsMm24PNvps5gwXNYMbRHD2c=; b=bPpCNpKiKtlLS+FEaXwfIygMv27vXi71s52U37QL0p5SqkEJI33PxteHX41fkqV5Hs NTf9Fy94Gboum1r7OE1FCjvAemDQ8DMSz4+KOQICY+70R4chgAU0L+UktpXiE+tnMUNa Tu/X/xO0jOGnIf6x8fPnWuKprDUlGziss6mBJ6d/JcKp6pEc05cOWrVejeXrK7yoK06B n1py51QLUoulLoxAXB5vNeabddYecQuFY+CDa/tfvCuzS6hatx3yuhtxwSZJmDIEaC41 IGdod038KGgcWUPTBGi/P4Qb4v2hYkPNfitS2ZG/SnUssAfkWG23RhmZC9jtRYalrSkh PSUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si11251445pgu.191.2018.07.01.04.09.14; Sun, 01 Jul 2018 04:09:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326AbeGALJC (ORCPT + 31 others); 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_F=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_R=C3=B6der?= , Dollar Chen , Ken Yu , =?utf-8?q?Andreas_F=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 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(+) -- 2.16.4 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;