other-licenses/android/res_private.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /* $NetBSD: res_private.h,v 1.1.1.1 2004/05/20 17:18:54 christos Exp $ */
michael@0 2
michael@0 3 /*
michael@0 4 * This version of this file is derived from Android 2.3 "Gingerbread",
michael@0 5 * which contains uncredited changes by Android/Google developers. It has
michael@0 6 * been modified in 2011 for use in the Android build of Mozilla Firefox by
michael@0 7 * Mozilla contributors (including Michael Edwards <m.k.edwards@gmail.com>,
michael@0 8 * and Steve Workman <sjhworkman@gmail.com>).
michael@0 9 * These changes are offered under the same license as the original NetBSD
michael@0 10 * file, whose copyright and license are unchanged above.
michael@0 11 */
michael@0 12
michael@0 13 #ifndef res_private_h
michael@0 14 #define res_private_h
michael@0 15
michael@0 16 struct __res_state_ext {
michael@0 17 union res_sockaddr_union nsaddrs[MAXNS];
michael@0 18 struct sort_list {
michael@0 19 int af;
michael@0 20 union {
michael@0 21 struct in_addr ina;
michael@0 22 struct in6_addr in6a;
michael@0 23 } addr, mask;
michael@0 24 } sort_list[MAXRESOLVSORT];
michael@0 25 char nsuffix[64];
michael@0 26 char nsuffix2[64];
michael@0 27 };
michael@0 28
michael@0 29 extern int
michael@0 30 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
michael@0 31
michael@0 32 #endif

mercurial