Bug 144585

Summary: radvd and dhcpv6 dows not agree on the prefixes
Product: [Fedora] Fedora Reporter: Ola Thoresen <redhat>
Component: dhcpv6Assignee: Jason Vas Dias <jvdias>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: sundaram
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/mailarchive/forum.php?thread_id=6167146&forum_id=28420
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-04 23:54:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 166508    

Description Ola Thoresen 2005-01-08 21:19:16 UTC
Description of problem:
(Just copying from the link)

"I manage to get the prefix for the client router which i saw from the 
 debug message, but I didn"t see any modification done to /etc/radvd.conf 
 by the dhcp6c program. I suppose it should modify the range of the 
 available IP addresses according to the assigned prefix." 


Version-Release number of selected component (if applicable):
dhcpv6-0.10-9

How reproducible:
Always

Steps to Reproduce:
1. Set up dhcpv6 with correct prefix
2. restart dhcpv6 (server) and radvd
3. start dhcp6c on a client to get address
  
Actual results:
radvd will give you different prefixes than dhcp6

Expected results:
radvd and dhcp6 should agree on what to give the clients

Additional info:
There is also a patch provided on the url mentioned:
 in line 116 of radvd_token.l, 
 
     (before) : if (!strcmp(yytext, dhcp6_if->ifname))
 
     (after)  : if (strcmp(yytext, dhcp6_if->ifname))

Comment 1 Jason Vas Dias 2005-01-10 22:25:53 UTC
This is now fixed, in version dhcpv6_client-0.10-10 .

Only if radvd.conf already contains an 
    interface ethX { ... } ;
definition, and dhcp6c gets a prefix lease, then dhcp6c will write
the 'prefix' statement to the existing interface definition, such as:
interface eth0 {
# update prefix from DHCPv6 server
        prefix fec0:0:0:1::/64 {};
};
and will restart radvd IF it is already running .

dhcpv6-0.10-10 will be in tomorrow's FC4/rawhide release .