Re: [Linux-zigbee-devel] [PATCH] Support for fetching the mac address from the hardware and generating a IPv6 link local address from it.

2010-08-10 Thread Jon Smirl
Ignore this piece, it is debug code that slipped in. diff --git a/net/mac802154/6lowpan.c b/net/mac802154/6lowpan.c index 99b1202..6525e18 100644 --- a/net/mac802154/6lowpan.c +++ b/net/mac802154/6lowpan.c @@ -60,7 +60,14 @@ static int lowpan_header_create(struct sk_buff *skb, u8 head[24] =

[Linux-zigbee-devel] [PATCH] Support for fetching the mac address from the hardware and generating a IPv6 link local address from it.

2010-08-10 Thread Jon Smirl
Signed-off-by: Jon Smirl --- drivers/ieee802154/serial.c | 54 +-- include/net/mac802154.h |2 ++ net/ipv6/addrconf.c | 12 ++ net/mac802154/6lowpan.c |9 ++- net/mac802154/main.c|9 +++ 5 files change

Re: [Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread Jon Smirl
For a start we could copy the the if_infiniband.h file. It only has a single define in it, address length. I noticed our missing if_xxx file when adding the link local support. All other hardware classes were including if_ and I had to include af_ to get our address length. The other hardw

Re: [Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread David Miller
From: Dmitry Eremin-Solenikov Date: Wed, 11 Aug 2010 01:31:44 +0400 > Adding David Miller to the discussion, as the net-related stuff maintainer Better to add [email protected], so that all the rest of the world of networking developers can respond when (as is the case right now) I am too b

Re: [Linux-zigbee-devel] Link local addresses

2010-08-10 Thread Mariano Alvira
On Tue, Aug 10, 2010 at 05:08:16PM -0400, Jon Smirl wrote: > On Tue, Aug 10, 2010 at 4:26 PM, Dmitry Eremin-Solenikov > wrote: > > On 8/10/10, Jon Smirl wrote: > >> I'm added a command to the serial serial driver to retrieve the MAC > >> address. That let me implement the code needed to auto-add

Re: [Linux-zigbee-devel] Link local addresses

2010-08-10 Thread Mariano Alvira
On Wed, Aug 11, 2010 at 01:35:44AM +0400, Dmitry Eremin-Solenikov wrote: > > IMO you should have generated EUI-64 directly from OUI/extid > EUI-48 -> EUI-64 is really meant for cases where manufacturer > provides 48-bit address (like ethernet card), but we need 64-bit > one (like in IPv6). Ok grea

Re: [Linux-zigbee-devel] Link local addresses

2010-08-10 Thread Dmitry Eremin-Solenikov
On 8/11/10, Mariano Alvira wrote: > On Tue, Aug 10, 2010 at 05:08:16PM -0400, Jon Smirl wrote: >> On Tue, Aug 10, 2010 at 4:26 PM, Dmitry Eremin-Solenikov >> wrote: >> > On 8/10/10, Jon Smirl wrote: >> >> I'm added a command to the serial serial driver to retrieve the MAC >> >> address. That let

Re: [Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread Dmitry Eremin-Solenikov
Hello, Adding David Miller to the discussion, as the net-related stuff maintainer On 8/11/10, Jon Smirl wrote: > On Tue, Aug 10, 2010 at 4:28 PM, Dmitry Eremin-Solenikov > wrote: >> On 8/11/10, Dmitry Eremin-Solenikov wrote: >>> Hello, >>> >>> On 8/10/10, Jon Smirl wrote: Other network h

Re: [Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread Jon Smirl
On Tue, Aug 10, 2010 at 4:28 PM, Dmitry Eremin-Solenikov wrote: > On 8/11/10, Dmitry Eremin-Solenikov wrote: >> Hello, >> >> On 8/10/10, Jon Smirl wrote: >>> Other network hardware has a include/linux/if_.h file describing >>> it. IEEE 802.15.4 has the same info, it is just spread out over >

Re: [Linux-zigbee-devel] Link local addresses

2010-08-10 Thread Jon Smirl
On Tue, Aug 10, 2010 at 4:26 PM, Dmitry Eremin-Solenikov wrote: > On 8/10/10, Jon Smirl wrote: >> I'm added a command to the serial serial driver to retrieve the MAC >> address. That let me implement the code needed to auto-add link local >> addresses. >> >> wpan0     Link encap:IEEE 802.15.4  HW

Re: [Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread Dmitry Eremin-Solenikov
On 8/11/10, Dmitry Eremin-Solenikov wrote: > Hello, > > On 8/10/10, Jon Smirl wrote: >> Other network hardware has a include/linux/if_.h file describing >> it. IEEE 802.15.4 has the same info, it is just spread out over >> different files. There are also naming conventions that don't match.

Re: [Linux-zigbee-devel] Link local addresses

2010-08-10 Thread Dmitry Eremin-Solenikov
On 8/10/10, Jon Smirl wrote: > I'm added a command to the serial serial driver to retrieve the MAC > address. That let me implement the code needed to auto-add link local > addresses. > > wpan0 Link encap:IEEE 802.15.4 HWaddr 00:50:c2:ff:fe:a8:a8:c5 > inet6 addr: fe80::50:c2ff:fea8:

Re: [Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread Dmitry Eremin-Solenikov
Hello, On 8/10/10, Jon Smirl wrote: > Other network hardware has a include/linux/if_.h file describing > it. IEEE 802.15.4 has the same info, it is just spread out over > different files. There are also naming conventions that don't match. > For example IEEE80215_ADDR_LEN vs ARCNET_ALEN, ETH

[Linux-zigbee-devel] Link local addresses

2010-08-10 Thread Jon Smirl
I'm added a command to the serial serial driver to retrieve the MAC address. That let me implement the code needed to auto-add link local addresses. wpan0 Link encap:IEEE 802.15.4 HWaddr 00:50:c2:ff:fe:a8:a8:c5 inet6 addr: fe80::50:c2ff:fea8:c545/64 Scope:Link inet6 addr:

[Linux-zigbee-devel] Matching the design of other networking code

2010-08-10 Thread Jon Smirl
Other network hardware has a include/linux/if_.h file describing it. IEEE 802.15.4 has the same info, it is just spread out over different files. There are also naming conventions that don't match. For example IEEE80215_ADDR_LEN vs ARCNET_ALEN, ETH_ALEN, etc... Do you want to reorganize the h