Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

IPv6oPPP: SLAAC + DHCPv6 IA_PD: preferred lifetime and valid lifetime are not propagated into RAs on br0 #296

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. IPv6 configuration in WebUI:
####
IPv6 Connection Type: DHCPv6
IPv6 Interface: WAN

LAN IPv6 Setting
Get IPv6 automatically? Yes
IPv6 Address:   <empty>
IPv6 Netsize:   <empty>
Advertise LAN Prefix?   Yes

WAN IPv6 Setting
Get IPv6 automatically? Yes
IPv6 Address:   <empty>
IPv6 Netsize:   <empty>
IPv6 Default Gateway:   <empty>

WAN DNSv6 Setting
Get DNS Server automatically?   Yes
DNSv6 Server1:  <empty>
####
2. DHCPv6 Reply message from BRAS contains IA_PD option and IA_Prefix with 
non-zero lifetimes (preferred==valid==172800 in my example)

What is the expected output? What do you see instead?
The expected behaviour:
====
1. CPE have to assign delegated prefix to LAN(br0) interface with appropriate 
valid and preferred lifetimes.
2. According to RFC 3633 CPE(requesting router) have to start announcing 
appropriate lifetimes in IMCPv6 RA messages:
####       http://tools.ietf.org/html/rfc3633#section-12.1     
   If the requesting router assigns a delegated prefix to a link to
   which the router is attached, and begins to send router
   advertisements for the prefix on the link, the requesting router MUST
   set the valid lifetime in those advertisements to be no later than
   the valid lifetime specified in the IA_PD Prefix option.  A
   requesting router MAY use the preferred lifetime specified in the
   IA_PD Prefix option.
####
====
Packet dump is attached: IPv6oPPP-WAN-initial-connect.1.pcap

Behavior observed:
====
1. CPE assigns delegated prefix to br0 with infinite lifetimes:
####
[root@home root]$ grep dhcp6c /tmp/syslog.log 
Jan  1 04:00:04 dhcp6c[296]: started
Jan  1 04:00:04 dhcp6c[296]: sendto: Cannot assign requested address
Jan  1 04:00:05 dhcp6c[296]: sendto: Cannot assign requested address
Jan  1 04:00:16 dhcp6c[338]: started
Jan  1 04:00:16 dhcp6c[296]: exiting
Jan  1 04:00:17 dhcp6c[338]: unexpected DHCP6 option reconfigure accept, len 0
Jan  1 04:00:17 dhcp6c[338]: status code: success
Jan  1 04:00:17 dhcp6c[338]: add address 
2a02:8040:fffe:1e:e2cb:4eff:fead:ede2/64 on br0

[root@home root]$ ip -6 addr show dev br0
7: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 
    inet6 2a02:8040:fffe:1e:e2cb:4eff:fead:ede2/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::e2cb:4eff:fead:ede2/64 scope link 
       valid_lft forever preferred_lft forever
####
2. CPE sends ICMPv6 RA messages with default values (they're derived from 
radvd.conf):
Preferred lifetime = 14400
Valid lifetime = 86400
====
Packet dump is attached: IPv6oPPP-LAN-RA.pcap

What version of the product are you using?
RT-N16-1.9.2.7-rtn-r3702.trx

Please provide any additional information below.

Original issue reported on code.google.com by Les...@gmail.com on 16 Jan 2012 at 6:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by lly.dev on 26 Jan 2012 at 6:41

GoogleCodeExporter commented 9 years ago
Current dhcp6c implementation (wide-dhcpv6 clone) don't allow to set prefix 
lifetimes due to it requires . In TODO list - see if6.c:ifaddrconf().

Original comment by lly.dev on 8 Oct 2012 at 11:49