[Resolver-log]: Refactor EDNS OPT log print.
An OPT RR has a fixed part and a variable set of options expressed
as {attribute, value} pairs. In OPTION-DATA print function, we
refactor the EDNS print part becuase it could not handle multi-pairs
data well. If the dns server sent two pairs, the print
funtion will have infinite loops.
Bug: 128284562
Test: make; flash; enable resolv log(VERBOSE);
Test: set private DNS to strict mode
Test: server = 1dot1dot1dot1.cloudflare-dns.com
Test: access www.hp.com to make sure issue doesn't happen.
Change-Id: I5ff30c933728f1a4034faeca42fce97a22551ea8
1 file changed