From 8c96b6928e397d6d5e4b6e34c89bc1e17b3df1b9 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Tue, 30 Aug 2011 20:23:48 +0400 Subject: dhcpv6: include missing rapid commit option to reply --- accel-pppd/ipv6/dhcpv6.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'accel-pppd/ipv6') diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c index 7b37599d..aad59344 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); -- cgit v1.2.3