Add status code containing "success" to all IA_TA and IA_NA

which have IAADDR options. This communicates zero information and
RFC3315 is unclear that it's needed, but at least one client seems
to require it.
This commit is contained in:
Simon Kelley
2012-03-10 20:46:57 +00:00
parent 8b37270410
commit dd88c17f15

View File

@@ -737,6 +737,11 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
{ {
if (address_assigned) if (address_assigned)
{ {
o1 = new_opt6(OPTION6_STATUS_CODE);
put_opt6_short(DHCP6SUCCESS);
put_opt6_string("Oh hai from dnsmasq");
end_opt6(o1);
if (ia_type == OPTION6_IA_NA) if (ia_type == OPTION6_IA_NA)
{ {
/* go back an fill in fields in IA_NA option */ /* go back an fill in fields in IA_NA option */
@@ -750,7 +755,7 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
} }
else else
{ {
/* no address, return erro */ /* no address, return error */
o1 = new_opt6(OPTION6_STATUS_CODE); o1 = new_opt6(OPTION6_STATUS_CODE);
put_opt6_short(DHCP6NOADDRS); put_opt6_short(DHCP6NOADDRS);
put_opt6_string("No addresses available"); put_opt6_string("No addresses available");