lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 10 Aug 2010 08:49:52 -0400
From:	Jon Smirl <>
To:	Michał Mirosław <>
Cc:	Netdev <>
Subject: Re: Auto generation of IPv6 link local address

2010/8/10 Michał Mirosław <>:
> 2010/8/10 Jon Smirl <>:
>> 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:  Bcast:  Mask:
>>          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.

> Best Regards,
> Michał Mirosław

Jon Smirl
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists