dnsmasq: backport arcount edns0 fix
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 8 Sep 2017 07:56:34 +0000 (08:56 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 8 Sep 2017 08:09:48 +0000 (10:09 +0200)
commit1d15a03050d857b2240d380dc691aeeeb5af227c
treeecfc1987302ef64891815c1c4835e6e39dc81cee
parenta7506c0e2b2cc9c25c3c95523d21edcb8c710ed2
dnsmasq: backport arcount edns0 fix

Don't return arcount=1 if EDNS0 RR won't fit in the packet.

Omitting the EDNS0 RR but setting arcount gives a malformed packet.
Also, don't accept UDP packet size less than 512 in received EDNS0.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/patches/030-fix-arcount-edns0-behaviour.patch [new file with mode: 0644]