author | Chad Brubaker <cbrubaker@google.com> | |
Fri, 21 Feb 2014 18:39:41 +0000 (10:39 -0800) | ||
committer | Chad Brubaker <cbrubaker@google.com> | |
Sat, 15 Mar 2014 22:29:01 +0000 (15:29 -0700) | ||
commit | 081db840befec895fb86e709ae95832ade2d065c | |
tree | 0f2e9ae8154dbd4388f1a51c63263ee16538eb25 | tree | snapshot (tar.xz tar.gz zip) |
parent | 04583ce9b94d6f41f4c1e66939c4ca2ee41ff058 | commit | diff |
Allow overlap in resolv uid => DNS iface mapping
When multiple rules exist covering a given uid the one added most
recently will be used.
This allows us to handle the simultaneous tuns case where a new tun is
coming online for an already running VPN.
_resolv_clear_iface_for_uid_range now also takes the iface and removes
only that matching (iface, uid range) entry.
Bug: 12134439
Change-Id: I9b9cfcfae2f38c409022a8c76ccadad7e2babd78
When multiple rules exist covering a given uid the one added most
recently will be used.
This allows us to handle the simultaneous tuns case where a new tun is
coming online for an already running VPN.
_resolv_clear_iface_for_uid_range now also takes the iface and removes
only that matching (iface, uid range) entry.
Bug: 12134439
Change-Id: I9b9cfcfae2f38c409022a8c76ccadad7e2babd78
libc/netbsd/resolv/res_cache.c | diff | blob | history | |
libc/private/resolv_iface.h | diff | blob | history |