Thread (62 messages) 62 messages, 10 authors, 2019-01-07

[RFC net-next 03/15] net: lora: Add protocol numbers

From: afaerber@suse.de (Andreas Färber)
Date: 2018-07-01 11:09:14
Also in: lkml, netdev
Subsystem: the rest · Maintainer: Linus Torvalds

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(+)
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;
-- 
2.16.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help