]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Supply "Success" status code in reply to DHCPDECLINE.
authorIlya Ponetaev <iponetaev@dlink.ru>
Sat, 13 Sep 2014 20:19:01 +0000 (21:19 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Sat, 13 Sep 2014 20:19:01 +0000 (21:19 +0100)
src/rfc3315.c

index f5ab4f7fdd38e8db3ba47a2ac24fc2704aa9e24e..5ebf09d50ac10105acd3f5693c49921966cc50cf 100644 (file)
@@ -1240,6 +1240,12 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
              }
            
          }
+
+       /* We must anwser with 'success' in global section anyway */
+       o1 = new_opt6(OPTION6_STATUS_CODE);
+       put_opt6_short(DHCP6SUCCESS);
+       put_opt6_string(_("success"));
+       end_opt6(o1);
        break;
       }