commit | 622a36923ec2778dec0f195fec5cdc2056e65fca | [log] [tgz] |
---|---|---|
author | Ben Schwartz <bemasc@google.com> | Mon Feb 05 17:54:06 2018 -0500 |
committer | Erik Kline <ek@google.com> | Mon Apr 02 15:31:30 2018 -0700 |
tree | 8aa910e6031963a882c1d733df6d5ac5f855114a | |
parent | d65576d406a1625847712b0534cf81443f08a4cc [diff] [blame] |
Pad queries when EDNS0 is enabled. Behavior is compliant with https://tools.ietf.org/html/draft-ietf-dprive-padding-policy-04 EDNS0 is only enabled when the netcontext requests it, i.e. in DNS-over-TLS mode. Bug: 69623036 Bug: 64133961 Test: Wireshark verified. Integration tests echo padding and pass. Merged-In: Ie5439b0ad505ebf393a83c87845fd02549afc4a2 Merged-In: I274d659782870818274526d23d3a3c4640cad92d Change-Id: I5ef600e02a572d281441e890cc981614f150629b (cherry picked from commit 23e4081009bb58d9c09e615186208b77749e72de)
diff --git a/libc/include/arpa/nameser.h b/libc/include/arpa/nameser.h index ffb5250..e0b5c45 100644 --- a/libc/include/arpa/nameser.h +++ b/libc/include/arpa/nameser.h
@@ -474,6 +474,7 @@ */ #define NS_OPT_DNSSEC_OK 0x8000U #define NS_OPT_NSID 3 +#define NS_OPT_PADDING 12 /* * Inline versions of get/put short/long. Pointer is advanced.