summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2012-03-10 20:46:57 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2012-03-10 20:46:57 +0000
commitdd88c17f152b2a30e7004d5fcca1e7503157452f (patch)
tree6d6c8f327c6cf395b9c1dd321854d42eb82de088
parent8b372704106bfa8777182db0264edc9fedb3dc0f (diff)
downloaddnsmasq-2.61test2.tar.gz
Add status code containing "success" to all IA_TA and IA_NAv2.61test2
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.
-rw-r--r--src/rfc3315.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rfc3315.c b/src/rfc3315.c
index f4573a1..f28f5f6 100644
--- a/src/rfc3315.c
+++ b/src/rfc3315.c
@@ -737,6 +737,11 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
{
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)
{
/* 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
{
- /* no address, return erro */
+ /* no address, return error */
o1 = new_opt6(OPTION6_STATUS_CODE);
put_opt6_short(DHCP6NOADDRS);
put_opt6_string("No addresses available");