OSDN Git Service

Add the DNS query hook to net context
authorBen Schwartz <bemasc@google.com>
Mon, 24 Apr 2017 21:57:11 +0000 (17:57 -0400)
committerBen Schwartz <bemasc@google.com>
Thu, 18 May 2017 16:03:11 +0000 (12:03 -0400)
commitf0305dcee96018faf95773bbf4be8db9494826dc
tree470008fa6943711a81e487f08ea662d3f796d20c
parent5deddda68e780aaa26e4777378fee10d543eb719
Add the DNS query hook to net context

This change
 - adds a query hook to android_net_context
 - exposes relevant definitions to netd
 - corrects a bug in query hooks' interaction with the cache

This change does not introduce any code to read the query hook
from the net context or make use of it.

Bug: 34953048
Test: Netd test suite passes
Change-Id: Ie091980e22ce9da07a3c4d387b371e544379d762
libc/dns/include/resolv_netid.h
libc/dns/include/resolv_params.h
libc/dns/include/resolv_private.h
libc/dns/resolv/res_send.c