lists.openwall.net   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  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 10 Aug 2010 04:32:23 +0000
From:	Michał Mirosław <mirqus@...il.com>
To:	Jon Smirl <jonsmirl@...il.com>
Cc:	Netdev <netdev@...r.kernel.org>
Subject: Re: Auto generation of IPv6 link local address

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()?).

Best Regards,
Michał Mirosław
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ