mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user