All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH wpan-misc 1/5] website: update testing scripts for netns
@ 2016-08-07 15:33 Alexander Aring
  2016-08-07 15:33 ` [PATCH wpan-misc 2/5] website: remove note about missing short address functionality Alexander Aring
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Alexander Aring @ 2016-08-07 15:33 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring

Reviewed-by: Stefan Schmidt<stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <aar@pengutronix.de>
---
 website/index.txt | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/website/index.txt b/website/index.txt
index 65c6b9c..1438c6e 100644
--- a/website/index.txt
+++ b/website/index.txt
@@ -90,8 +90,13 @@ Setup a 6LowPAN test network
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Let's assume you want to setup a 6lowpan test network of six nodes.
+Each of them will be created in their own net namespace to avoid
+local IPv6 optimizations. Each netns is named according to the wpan
+interface which available in the net namespace.
 
 ---------------------------------------------------------------------
+#!/bin/sh
+
 # we need some Private Area Network ID
 panid="0xbeef"
 # number of nodes
@@ -102,25 +107,26 @@ numnodes=6
 modprobe fakelb numlbs=$numnodes
 
 # initialize all the nodes
-for i in $(seq 0 $numnodes);
+for i in $(seq 0 `expr $numnodes - 1`);
 do
-	iwpan dev wpan${i} set pan_id 0xbeef
-	ip link wpan${i} name lowpan${i} type lowpan
-	ip link set wpan${i} up
-	ip link set lowpan${i} up
+	ip netns delete wpan${i}
+	ip netns add wpan${i}
+	PHYNUM=`iwpan dev | grep -B 1 wpan${i} | sed -ne '1 s/phy#\([0-9]\)/\1/p'`
+	iwpan phy${PHYNUM} set netns name wpan${i}
+
+	ip netns exec wpan${i} iwpan dev wpan${i} set pan_id $panid
+	ip netns exec wpan${i} ip link add link wpan${i} name lowpan${i} type lowpan
+	ip netns exec wpan${i} ip link set wpan${i} up
+	ip netns exec wpan${i} ip link set lowpan${i} up
 done
 ---------------------------------------------------------------------
 
 Now let us send some data over our network:
 
 ---------------------------------------------------------------------
-wireshark -kSl -i lowpan0 &
-# get the IPv6 address of lowpan1
-lowpan1addr="$(ip addr show lowpan1 | grep inet6 \
-	| sed 's,.*inet6 \([^/]*\).*,\1,')"
-# tell ping6 to ping the IPv6 address of lowpan1 and send it via
-# lowpan0
-ping6 ${lowpan1addr}%lowpan0
+ip netns exec wpan0 wireshark -kSl -i lowpan0 &
+# ping all nodes
+ip netns exec wpan0 ping6 ff02::1%lowpan0
 ---------------------------------------------------------------------
 
 Now watch wireshark and all the nice ICMP packets there.
-- 
2.9.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH wpan-misc 2/5] website: remove note about missing short address functionality
  2016-08-07 15:33 [PATCH wpan-misc 1/5] website: update testing scripts for netns Alexander Aring
@ 2016-08-07 15:33 ` Alexander Aring
  2016-08-10 12:08   ` Stefan Schmidt
  2016-08-07 15:33 ` [PATCH wpan-misc 3/5] website: fix typo Alexander Aring
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Alexander Aring @ 2016-08-07 15:33 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring

Signed-off-by: Alexander Aring <aar@pengutronix.de>
---
 website/index.txt | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/website/index.txt b/website/index.txt
index 1438c6e..5d9793a 100644
--- a/website/index.txt
+++ b/website/index.txt
@@ -81,11 +81,6 @@ ip link add link wpan0 name lowpan0 type lowpan
 That's it! Now you have some lowpan0 interface with a 6LoWPAN 1280 MTU which runs on top the wpan interface.
 As default you have a default link-local address based on the MAC (extended address).
 
-Note: we don't support any case of short-addresses right now. This is a complicated issue with the IPv6 neighbour discovery cache.
-Of course we supporting broadcast frames via short-addresses but nothing more in 802.15.4 6LoWPAN.
-Only extended address handling is supported right now.
-
-
 Setup a 6LowPAN test network
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-- 
2.9.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH wpan-misc 3/5] website: fix typo
  2016-08-07 15:33 [PATCH wpan-misc 1/5] website: update testing scripts for netns Alexander Aring
  2016-08-07 15:33 ` [PATCH wpan-misc 2/5] website: remove note about missing short address functionality Alexander Aring
@ 2016-08-07 15:33 ` Alexander Aring
  2016-08-10 12:08   ` Stefan Schmidt
  2016-08-07 15:33 ` [PATCH wpan-misc 4/5] website: add boards with transceiver section Alexander Aring
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Alexander Aring @ 2016-08-07 15:33 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring

Signed-off-by: Alexander Aring <aar@pengutronix.de>
---
 website/index.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/index.txt b/website/index.txt
index 5d9793a..1dcdf32 100644
--- a/website/index.txt
+++ b/website/index.txt
@@ -81,7 +81,7 @@ ip link add link wpan0 name lowpan0 type lowpan
 That's it! Now you have some lowpan0 interface with a 6LoWPAN 1280 MTU which runs on top the wpan interface.
 As default you have a default link-local address based on the MAC (extended address).
 
-Setup a 6LowPAN test network
+Setup a 6LoWPAN test network
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Let's assume you want to setup a 6lowpan test network of six nodes.
-- 
2.9.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH wpan-misc 4/5] website: add boards with transceiver section
  2016-08-07 15:33 [PATCH wpan-misc 1/5] website: update testing scripts for netns Alexander Aring
  2016-08-07 15:33 ` [PATCH wpan-misc 2/5] website: remove note about missing short address functionality Alexander Aring
  2016-08-07 15:33 ` [PATCH wpan-misc 3/5] website: fix typo Alexander Aring
@ 2016-08-07 15:33 ` Alexander Aring
  2016-08-10 12:10   ` Stefan Schmidt
  2016-08-07 15:33 ` [PATCH wpan-misc 5/5] website: add SOB for sending patches Alexander Aring
  2016-08-10 12:08 ` [PATCH wpan-misc 1/5] website: update testing scripts for netns Stefan Schmidt
  4 siblings, 1 reply; 10+ messages in thread
From: Alexander Aring @ 2016-08-07 15:33 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring

Signed-off-by: Alexander Aring <aar@pengutronix.de>
---
 website/index.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/website/index.txt b/website/index.txt
index 1dcdf32..5b2f7d5 100644
--- a/website/index.txt
+++ b/website/index.txt
@@ -52,6 +52,13 @@ Supported Hardware
 |Xbee        |no |https://github.com/joaopedrotaveira/linux-rpl/blob/master/mainline-3.12.y/0001-Added-XBee-driver-support.patch[out of tree]| ?? | https://www.sparkfun.com/pages/xbee_guide[sparkfun]
 |=============================================================
 
+.Boards with Transceivers
+|=============================================================
+|Name        | Transceiver |Website
+|Ci40        | ca8210      |https://www.kickstarter.com/projects/imgtec/creator-ci40-the-ultimate-iot-in-a-box-dev-kit[kickstarter]
+|blixten     | cc2520      |https://jopee.wordpress.com/6lowpan-gateway/[jopee]
+|=============================================================
+
 How-To's
 --------
 
-- 
2.9.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH wpan-misc 5/5] website: add SOB for sending patches
  2016-08-07 15:33 [PATCH wpan-misc 1/5] website: update testing scripts for netns Alexander Aring
                   ` (2 preceding siblings ...)
  2016-08-07 15:33 ` [PATCH wpan-misc 4/5] website: add boards with transceiver section Alexander Aring
@ 2016-08-07 15:33 ` Alexander Aring
  2016-08-10 12:10   ` Stefan Schmidt
  2016-08-10 12:08 ` [PATCH wpan-misc 1/5] website: update testing scripts for netns Stefan Schmidt
  4 siblings, 1 reply; 10+ messages in thread
From: Alexander Aring @ 2016-08-07 15:33 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring

Signed-off-by: Alexander Aring <aar@pengutronix.de>
---
 website/index.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/index.txt b/website/index.txt
index 5b2f7d5..1c414bd 100644
--- a/website/index.txt
+++ b/website/index.txt
@@ -271,7 +271,7 @@ cd wpan-misc/website
 git checkout -b myproposal
 # Change this page to whatever you like.
 $EDITOR index.txt
-git commit -a
+git commit -s -a
 # be sure to be registered to linux-wpan@vger.kernel.org before sending the
 # patch
 git send-email --to linux-wpan@vger.kernel.org -1
-- 
2.9.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH wpan-misc 1/5] website: update testing scripts for netns
  2016-08-07 15:33 [PATCH wpan-misc 1/5] website: update testing scripts for netns Alexander Aring
                   ` (3 preceding siblings ...)
  2016-08-07 15:33 ` [PATCH wpan-misc 5/5] website: add SOB for sending patches Alexander Aring
@ 2016-08-10 12:08 ` Stefan Schmidt
  4 siblings, 0 replies; 10+ messages in thread
From: Stefan Schmidt @ 2016-08-10 12:08 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan

Hello.

On 07/08/16 17:33, Alexander Aring wrote:
> Reviewed-by: Stefan Schmidt<stefan@osg.samsung.com>
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>  website/index.txt | 30 ++++++++++++++++++------------
>  1 file changed, 18 insertions(+), 12 deletions(-)
>
> diff --git a/website/index.txt b/website/index.txt
> index 65c6b9c..1438c6e 100644
> --- a/website/index.txt
> +++ b/website/index.txt
> @@ -90,8 +90,13 @@ Setup a 6LowPAN test network
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>  Let's assume you want to setup a 6lowpan test network of six nodes.
> +Each of them will be created in their own net namespace to avoid
> +local IPv6 optimizations. Each netns is named according to the wpan
> +interface which available in the net namespace.
>
>  ---------------------------------------------------------------------
> +#!/bin/sh
> +
>  # we need some Private Area Network ID
>  panid="0xbeef"
>  # number of nodes
> @@ -102,25 +107,26 @@ numnodes=6
>  modprobe fakelb numlbs=$numnodes
>
>  # initialize all the nodes
> -for i in $(seq 0 $numnodes);
> +for i in $(seq 0 `expr $numnodes - 1`);
>  do
> -	iwpan dev wpan${i} set pan_id 0xbeef
> -	ip link wpan${i} name lowpan${i} type lowpan
> -	ip link set wpan${i} up
> -	ip link set lowpan${i} up
> +	ip netns delete wpan${i}
> +	ip netns add wpan${i}
> +	PHYNUM=`iwpan dev | grep -B 1 wpan${i} | sed -ne '1 s/phy#\([0-9]\)/\1/p'`
> +	iwpan phy${PHYNUM} set netns name wpan${i}
> +
> +	ip netns exec wpan${i} iwpan dev wpan${i} set pan_id $panid
> +	ip netns exec wpan${i} ip link add link wpan${i} name lowpan${i} type lowpan
> +	ip netns exec wpan${i} ip link set wpan${i} up
> +	ip netns exec wpan${i} ip link set lowpan${i} up
>  done
>  ---------------------------------------------------------------------
>
>  Now let us send some data over our network:
>
>  ---------------------------------------------------------------------
> -wireshark -kSl -i lowpan0 &
> -# get the IPv6 address of lowpan1
> -lowpan1addr="$(ip addr show lowpan1 | grep inet6 \
> -	| sed 's,.*inet6 \([^/]*\).*,\1,')"
> -# tell ping6 to ping the IPv6 address of lowpan1 and send it via
> -# lowpan0
> -ping6 ${lowpan1addr}%lowpan0
> +ip netns exec wpan0 wireshark -kSl -i lowpan0 &
> +# ping all nodes
> +ip netns exec wpan0 ping6 ff02::1%lowpan0
>  ---------------------------------------------------------------------
>
>  Now watch wireshark and all the nice ICMP packets there.
>



Acked-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH wpan-misc 2/5] website: remove note about missing short address functionality
  2016-08-07 15:33 ` [PATCH wpan-misc 2/5] website: remove note about missing short address functionality Alexander Aring
@ 2016-08-10 12:08   ` Stefan Schmidt
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Schmidt @ 2016-08-10 12:08 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan

Hello.

On 07/08/16 17:33, Alexander Aring wrote:
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>  website/index.txt | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/website/index.txt b/website/index.txt
> index 1438c6e..5d9793a 100644
> --- a/website/index.txt
> +++ b/website/index.txt
> @@ -81,11 +81,6 @@ ip link add link wpan0 name lowpan0 type lowpan
>  That's it! Now you have some lowpan0 interface with a 6LoWPAN 1280 MTU which runs on top the wpan interface.
>  As default you have a default link-local address based on the MAC (extended address).
>
> -Note: we don't support any case of short-addresses right now. This is a complicated issue with the IPv6 neighbour discovery cache.
> -Of course we supporting broadcast frames via short-addresses but nothing more in 802.15.4 6LoWPAN.
> -Only extended address handling is supported right now.
> -
> -
>  Setup a 6LowPAN test network
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>




Acked-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH wpan-misc 3/5] website: fix typo
  2016-08-07 15:33 ` [PATCH wpan-misc 3/5] website: fix typo Alexander Aring
@ 2016-08-10 12:08   ` Stefan Schmidt
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Schmidt @ 2016-08-10 12:08 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan

Hello.

On 07/08/16 17:33, Alexander Aring wrote:
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>  website/index.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/website/index.txt b/website/index.txt
> index 5d9793a..1dcdf32 100644
> --- a/website/index.txt
> +++ b/website/index.txt
> @@ -81,7 +81,7 @@ ip link add link wpan0 name lowpan0 type lowpan
>  That's it! Now you have some lowpan0 interface with a 6LoWPAN 1280 MTU which runs on top the wpan interface.
>  As default you have a default link-local address based on the MAC (extended address).
>
> -Setup a 6LowPAN test network
> +Setup a 6LoWPAN test network
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>  Let's assume you want to setup a 6lowpan test network of six nodes.
>



Acked-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH wpan-misc 4/5] website: add boards with transceiver section
  2016-08-07 15:33 ` [PATCH wpan-misc 4/5] website: add boards with transceiver section Alexander Aring
@ 2016-08-10 12:10   ` Stefan Schmidt
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Schmidt @ 2016-08-10 12:10 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan

Hello.

On 07/08/16 17:33, Alexander Aring wrote:
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>  website/index.txt | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/website/index.txt b/website/index.txt
> index 1dcdf32..5b2f7d5 100644
> --- a/website/index.txt
> +++ b/website/index.txt
> @@ -52,6 +52,13 @@ Supported Hardware
>  |Xbee        |no |https://github.com/joaopedrotaveira/linux-rpl/blob/master/mainline-3.12.y/0001-Added-XBee-driver-support.patch[out of tree]| ?? | https://www.sparkfun.com/pages/xbee_guide[sparkfun]
>  |=============================================================
>
> +.Boards with Transceivers
> +|=============================================================
> +|Name        | Transceiver |Website
> +|Ci40        | ca8210      |https://www.kickstarter.com/projects/imgtec/creator-ci40-the-ultimate-iot-in-a-box-dev-kit[kickstarter]
> +|blixten     | cc2520      |https://jopee.wordpress.com/6lowpan-gateway/[jopee]
> +|=============================================================
> +
>  How-To's
>  --------



Acked-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH wpan-misc 5/5] website: add SOB for sending patches
  2016-08-07 15:33 ` [PATCH wpan-misc 5/5] website: add SOB for sending patches Alexander Aring
@ 2016-08-10 12:10   ` Stefan Schmidt
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Schmidt @ 2016-08-10 12:10 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan

Hello.

On 07/08/16 17:33, Alexander Aring wrote:
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>  website/index.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/website/index.txt b/website/index.txt
> index 5b2f7d5..1c414bd 100644
> --- a/website/index.txt
> +++ b/website/index.txt
> @@ -271,7 +271,7 @@ cd wpan-misc/website
>  git checkout -b myproposal
>  # Change this page to whatever you like.
>  $EDITOR index.txt
> -git commit -a
> +git commit -s -a
>  # be sure to be registered to linux-wpan@vger.kernel.org before sending the
>  # patch
>  git send-email --to linux-wpan@vger.kernel.org -1
>



Acked-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-08-10 18:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-07 15:33 [PATCH wpan-misc 1/5] website: update testing scripts for netns Alexander Aring
2016-08-07 15:33 ` [PATCH wpan-misc 2/5] website: remove note about missing short address functionality Alexander Aring
2016-08-10 12:08   ` Stefan Schmidt
2016-08-07 15:33 ` [PATCH wpan-misc 3/5] website: fix typo Alexander Aring
2016-08-10 12:08   ` Stefan Schmidt
2016-08-07 15:33 ` [PATCH wpan-misc 4/5] website: add boards with transceiver section Alexander Aring
2016-08-10 12:10   ` Stefan Schmidt
2016-08-07 15:33 ` [PATCH wpan-misc 5/5] website: add SOB for sending patches Alexander Aring
2016-08-10 12:10   ` Stefan Schmidt
2016-08-10 12:08 ` [PATCH wpan-misc 1/5] website: update testing scripts for netns Stefan Schmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.