[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTikXvo8Dy7xH4TFvqRUBZAhVYezSzxu-FCyyy9St@mail.gmail.com>
Date: Tue, 10 Aug 2010 08:49:52 -0400
From: Jon Smirl <jonsmirl@...il.com>
To: Michał Mirosław <mirqus@...il.com>
Cc: Netdev <netdev@...r.kernel.org>
Subject: Re: Auto generation of IPv6 link local address
2010/8/10 Michał Mirosław <mirqus@...il.com>:
> 2010/8/10 Jon Smirl <jonsmirl@...il.com>:
>> When I bring my Ethernet interface up it automatically gets a link
>> local IPv6 address.
>>
>> eth3 Link encap:Ethernet HWaddr 00:1b:21:59:65:32
>> inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
>> inet6 addr: fe80::21b:21ff:fe59:6532/64 Scope:Link -->
>> Missing from my driver
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:1836635 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:1283010 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:2259859914 (2.2 GB) TX bytes:121836850 (121.8 MB)
>> Interrupt:16 Memory:dbd60000-dbd80000
>>
>> I'm writing a device driver for new 802.15.4 hardware. When I bring it
>> up I don't get an automatic IPv6 link local address. What controls
>> whether an adapter gets a link local address added or not? My driver
>> should get one so I must have something wrong in my code.
>>
>> wpan0 Link encap:IEEE 802.15.4 HWaddr 00:50:c2:ff:fe:a8:a8:c5
>> UP BROADCAST RUNNING NOARP MTU:1280 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:10
>> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> addrconf_notify() in linux-2.6.34/net/ipv6/addrconf.c does not have
> code for IEEE 802.15.4. I don't know much about 802.15.4, but if IPv6
> with static addresses works over it, then adding support for
> autogenerated addresses should be easy (just addrconf_dev_config() and
> ipv6_generate_eui64()?).
It was easy...
I added a ipv6_generate_eui64() since the addresses are already 64b.
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: aaaa::1/64 Scope:Global
UP BROADCAST RUNNING NOARP MTU:1280 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Back to working on my 6lowpan implementation.
http://en.wikipedia.org/wiki/6lowpan
>
> Best Regards,
> Michał Mirosław
>
--
Jon Smirl
jonsmirl@...il.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists