diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-08-30 20:23:48 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-08-30 20:23:48 +0400 |
commit | 8c96b6928e397d6d5e4b6e34c89bc1e17b3df1b9 (patch) | |
tree | 40eecc630655ee40c1e12ba7e5b0d498ab530707 /accel-pppd/ipv6 | |
parent | 98cc654b0c508d63fd872dc5405d6d95e909e5ff (diff) | |
download | accel-ppp-xebd-8c96b6928e397d6d5e4b6e34c89bc1e17b3df1b9.tar.gz accel-ppp-xebd-8c96b6928e397d6d5e4b6e34c89bc1e17b3df1b9.zip |
dhcpv6: include missing rapid commit option to reply
Diffstat (limited to 'accel-pppd/ipv6')
-rw-r--r-- | accel-pppd/ipv6/dhcpv6.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c index 7b37599..aad5934 100644 --- a/accel-pppd/ipv6/dhcpv6.c +++ b/accel-pppd/ipv6/dhcpv6.c @@ -372,8 +372,12 @@ static void dhcpv6_send_reply(struct dhcpv6_packet *req, struct dhcpv6_pd *pd, i insert_status(reply, opt1, D6_STATUS_NoAddrsAvail); // Option Request - } else if (ntohs(opt->hdr->code) == D6_OPTION_ORO) + } else if (ntohs(opt->hdr->code) == D6_OPTION_ORO) { insert_oro(reply, opt); + + } else if (ntohs(opt->hdr->code) == D6_OPTION_RAPID_COMMIT) { + dhcpv6_option_alloc(reply, D6_OPTION_RAPID_COMMIT, 0); + } } opt1 = dhcpv6_option_alloc(reply, D6_OPTION_PREFERENCE, 1); |