Add flags field to struct android_net_context
This is for passing additional instructions through stages of the
DNS resolution pipeling.
Test: as follows
- builds, flashes, boots
- system/netd/tests/runtests.sh passes
Bug: 34953048
Bug: 64133961
Bug: 70694619
Bug: 72345192
Merged-In: I81c49586d675160b66dc2c51b76ad183cc418213
Merged-In: Ie8a8ee5784407d4ec304b3f40a6b234ebeaf6376
Merged-In: Icdec53cf5b210db5ad833dd3b64fa3d8ae74100a
Change-Id: I5a86cc5192e6cfa09c375ac9f5810102da3aba20
(cherry picked from commit 391143e51b
)
This commit is contained in:
parent
ed1b4547df
commit
b85d0bd2b9
1 changed files with 4 additions and 0 deletions
|
@ -72,11 +72,15 @@ struct android_net_context {
|
|||
unsigned dns_netid;
|
||||
unsigned dns_mark;
|
||||
uid_t uid;
|
||||
unsigned flags;
|
||||
res_send_qhook qhook;
|
||||
};
|
||||
|
||||
#define NET_CONTEXT_INVALID_UID ((uid_t)-1)
|
||||
|
||||
#define NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS 0x00000001
|
||||
#define NET_CONTEXT_FLAG_USE_EDNS 0x00000002
|
||||
|
||||
struct hostent *android_gethostbyaddrfornet(const void *, socklen_t, int, unsigned, unsigned) __used_in_netd;
|
||||
struct hostent *android_gethostbynamefornet(const char *, int, unsigned, unsigned) __used_in_netd;
|
||||
int android_getaddrinfofornet(const char *, const char *, const struct addrinfo *, unsigned,
|
||||
|
|
Loading…
Reference in a new issue