From 51943369e36ffb30164d13ab75e7ca3bab9f7ed7 Mon Sep 17 00:00:00 2001 From: Ilya Ponetaev Date: Sat, 13 Sep 2014 21:19:01 +0100 Subject: [PATCH] Supply "Success" status code in reply to DHCPDECLINE. --- src/rfc3315.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rfc3315.c b/src/rfc3315.c index f5ab4f7..5ebf09d 100644 --- a/src/rfc3315.c +++ b/src/rfc3315.c @@ -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; }