Thread (23 messages) 23 messages, 2 authors, 2016-11-22

[RFCv2 bluetooth-next 05/19] 6lowpan: introduce generic default naming

flat view
STALE3621d

From: Alexander Aring <hidden>
Date: 2016-08-07 14:30:42
Subsystem: 6lowpan generic (btle/ieee 802.15.4), networking [general], the rest · Maintainers: Alexander Aring, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Revision v1 of 2 in this series.

Revisions (2)
  1. rfc [diff vs current]
  2. v1 current
This patch adds a default naming for all 6LoWPAN interfaces. All
userspace software should have them as example e.g. for configurations.

I see currently many examples which has different interface naming for
software which works for 6LoWPAN BTLE and 6LoWPAN 802.15.4.

We need to change also all examples outside to this naming stuff, so the
interface naming inside such examples doesn't depends on L2.

Signed-off-by: Alexander Aring <redacted>
---
 include/net/6lowpan.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h
index 7f4b63c..2570237 100644
--- a/include/net/6lowpan.h
+++ b/include/net/6lowpan.h
@@ -78,6 +78,8 @@
 #define LOWPAN_DISPATCH_IPHC		0x60 /* 011xxxxx = ... */
 #define LOWPAN_DISPATCH_IPHC_MASK	0xe0
 
+#define LOWPAN_IFNAME_TEMPLATE "6lo%d"
+
 static inline bool lowpan_is_ipv6(u8 dispatch)
 {
 	return dispatch == LOWPAN_DISPATCH_IPV6;
-- 
2.9.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help