kernel: backport few bgmac patches to 4.0
[openwrt/staging/chunkeey.git] / package / network / services / dnsmasq / patches / 200-fix-dhcpv6-solicit-handling.patch
1 From 35042c3ef61b3bc07f0f9418dff6be6ed78f4aa1 Mon Sep 17 00:00:00 2001
2 From: Steven Barth <steven@midlink.org>
3 Date: Fri, 10 Apr 2015 10:46:57 +0200
4 Subject: [PATCH] Revert "Don't reply to DHCPv6 SOLICIT messages when not
5 configured for statefull DHCPv6."
6
7 This reverts commit 61b838dd574c51d96fef100285a0d225824534f9.
8 ---
9 src/rfc3315.c | 13 -------------
10 1 file changed, 13 deletions(-)
11
12 diff --git a/src/rfc3315.c b/src/rfc3315.c
13 index c1ddc80..50131d8 100644
14 --- a/src/rfc3315.c
15 +++ b/src/rfc3315.c
16 @@ -824,19 +824,6 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
17 }
18 else
19 {
20 - /* Windows 8 always requests an address even if the Managed bit
21 - in RA is 0 and it keeps retrying if it receives a reply
22 - stating that no addresses are available. We solve this
23 - by not replying at all if we're not configured to give any
24 - addresses by DHCPv6. RFC 3315 17.2.1. appears to allow this. */
25 -
26 - for (c = state->context; c; c = c->current)
27 - if (!(c->flags & CONTEXT_RA_STATELESS))
28 - break;
29 -
30 - if (!c)
31 - return 0;
32 -
33 /* no address, return error */
34 o1 = new_opt6(OPTION6_STATUS_CODE);
35 put_opt6_short(DHCP6NOADDRS);
36 --
37 2.1.4
38