/dports/net/siproxd/siproxd-0.8.2/src/ |
H A D | utils.c | 84 } dns_cache[DNS_CACHE_SIZE]; in get_ip_by_host() local 108 memset(dns_cache, 0, sizeof(dns_cache)); in get_ip_by_host() 118 memset (&dns_cache[i], 0, sizeof(dns_cache[0])); in get_ip_by_host() 130 if (dns_cache[i].bad_entry) { in get_ip_by_host() 135 if (dns_cache[i].error_count > 0) { in get_ip_by_host() 238 (dns_cache[i].bad_entry == 0)) { in get_ip_by_host() 257 memset(&dns_cache[idx], 0, sizeof(dns_cache[0])); in get_ip_by_host() 268 dns_cache[idx].error_count = 0; in get_ip_by_host() 269 dns_cache[idx].bad_entry = 0; in get_ip_by_host() 271 dns_cache[idx].error_count++; in get_ip_by_host() [all …]
|
/dports/security/zeronet/ZeroNet-0.7.1/plugins/disabled-Dnschain/ |
H A D | SiteManagerPlugin.py | 15 dns_cache = None variable in SiteManagerPlugin 33 self.dns_cache = json.load(open(self.dns_cache_path)) 35 self.dns_cache = {} 36 log.debug("Loaded dns cache, entries: %s" % len(self.dns_cache)) 41 json.dump(self.dns_cache, open(self.dns_cache_path, "wb"), indent=2) 58 self.dns_cache[key+"."+top_domain] = [val, time.time()+60*60*5] # Cache for 5 hours 80 self.dns_cache[key+"."+top_domain] = [val, time.time()+60*60*5] # Cache for 5 hours 93 if self.dns_cache == None: 98 domain_details = self.dns_cache.get(domain) 118 self.dns_cache[domain] = [None, time.time()+60] # Don't check again for 1 min
|
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/lib/ |
H A D | dnscache.c | 380 DNSCache *dns_cache; variable 384 #define dns_cache __tls_deref(dns_cache) macro 426 return dns_cache_lookup(dns_cache, family, addr, hostname, hostname_len, positive); in dns_caching_lookup() 432 dns_cache_store_dynamic(dns_cache, family, addr, hostname, positive); in dns_caching_store() 452 g_assert(dns_cache == NULL); in dns_caching_thread_init() 457 dns_cache = unused_dns_caches->data; in dns_caching_thread_init() 462 if (!dns_cache) in dns_caching_thread_init() 463 dns_cache = dns_cache_new(&effective_dns_cache_options); in dns_caching_thread_init() 469 g_assert(dns_cache != NULL); in dns_caching_thread_deinit() 472 unused_dns_caches = g_list_prepend(unused_dns_caches, dns_cache); in dns_caching_thread_deinit() [all …]
|
/dports/www/dillo2/dillo-3.0.5/src/ |
H A D | dns.c | 93 static GDnsCache *dns_cache; variable 166 a_List_add(dns_cache, dns_cache_size, dns_cache_size_max); in Dns_cache_add() 167 dns_cache[dns_cache_size].hostname = dStrdup(hostname); in Dns_cache_add() 168 dns_cache[dns_cache_size].addr_list = addr_list; in Dns_cache_add() 193 dns_cache = dNew(GDnsCache, dns_cache_size_max); in a_Dns_init() 391 if (!dStrAsciiCasecmp(hostname, dns_cache[i].hostname)) in a_Dns_resolve() 396 cb_func(0, dns_cache[i].addr_list, cb_data); in a_Dns_resolve() 506 dFree(dns_cache[i].hostname); in a_Dns_freeall() 508 dFree(dList_nth_data(dns_cache[i].addr_list, j)); in a_Dns_freeall() 509 dList_free(dns_cache[i].addr_list); in a_Dns_freeall() [all …]
|
/dports/security/spybye/spybye-0.3/ |
H A D | spybye.h | 32 struct dns_cache { struct 33 SPLAY_ENTRY(dns_cache) node; 45 struct dns_cache *dns_new(const char *name); argument 46 void dns_free(struct dns_cache *entry);
|
H A D | spybye.c | 45 static void dns_dispatch_error(struct dns_cache *); 63 dns_compare(struct dns_cache *a, struct dns_cache *b) in dns_compare() 68 static SPLAY_HEAD(dns_tree, dns_cache) root; 76 struct dns_cache *dns = arg; in dns_ttl_expired() 88 struct dns_cache *entry = arg; in dns_resolv_cb() 508 dns_dispatch_requests(struct dns_cache *dns) in dns_dispatch_requests() 533 struct dns_cache * 536 struct dns_cache *entry, tmp; in dns_new() 544 entry = calloc(1, sizeof(struct dns_cache)); in dns_new() 576 dns_free(struct dns_cache *entry) in dns_free() [all …]
|
/dports/net/p5-Net-Whois-Raw/Net-Whois-Raw-2.99032/t/ |
H A D | example-domains-load-balancing.pl | 79 my $dns_cache = {}; 135 if (! $dns_cache->{$name}) { 137 $dns_cache->{$name} = $ip; 139 $ip = $dns_cache->{$name}; 168 PeerAddr => $dns_cache->{$name},
|
H A D | coro-domains.pl | 34 my $dns_cache = {}; 84 if (! $dns_cache->{$name}) { 86 $dns_cache->{$name} = $ip; 90 PeerAddr => $dns_cache->{$name},
|
/dports/japanese/webalizer/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/portuguese/webalizer-pt_BR/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/portuguese/webalizer-pt_PT/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/polish/webalizer2/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/www/geolizer/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/german/webalizer2/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/ukrainian/webalizer/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/www/webalizer/webalizer-2.23-08/ |
H A D | dns_resolv.c | 191 if(stat(dns_cache, &dbStat) < 0) in dns_resolver() 195 dns_cache=NULL; in dns_resolver() 203 unlink(dns_cache); /* remove it so we can recreate... */ in dns_resolver() 213 dns_cache, NULL, DB_HASH, in dns_resolver() 218 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache); in dns_resolver() 219 dns_cache=NULL; in dns_resolver() 235 if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache); in dns_resolver() 241 dns_cache=NULL; in dns_resolver() 795 if(!dns_cache) { dns_db=NULL; return 0; } in open_cache() 798 if(stat(dns_cache, &dbStat) < 0) in open_cache() [all …]
|
/dports/devel/libdill/libdill-2.14/dns/ |
H A D | dns.h | 965 struct dns_cache { struct 968 dns_refcount_t (*acquire)(struct dns_cache *); argument 969 dns_refcount_t (*release)(struct dns_cache *); argument 973 int (*submit)(struct dns_packet *, struct dns_cache *); argument 974 int (*check)(struct dns_cache *); argument 975 struct dns_packet *(*fetch)(struct dns_cache *, int *); argument 977 int (*pollfd)(struct dns_cache *); argument 978 short (*events)(struct dns_cache *); argument 979 void (*clear)(struct dns_cache *); argument 992 struct dns_cache *dns_cache_init(struct dns_cache *); [all …]
|
/dports/devel/libmill/libmill-1.18/dns/ |
H A D | dns.h | 965 struct dns_cache { struct 968 dns_refcount_t (*acquire)(struct dns_cache *); argument 969 dns_refcount_t (*release)(struct dns_cache *); argument 973 int (*submit)(struct dns_packet *, struct dns_cache *); argument 974 int (*check)(struct dns_cache *); argument 975 struct dns_packet *(*fetch)(struct dns_cache *, int *); argument 977 int (*pollfd)(struct dns_cache *); argument 978 short (*events)(struct dns_cache *); argument 979 void (*clear)(struct dns_cache *); argument 992 struct dns_cache *dns_cache_init(struct dns_cache *); [all …]
|
/dports/www/links1/links-1.04/ |
H A D | dns.c | 36 struct list_head dns_cache = {&dns_cache, &dns_cache}; variable 211 foreach(e, dns_cache) in find_in_dns_cache() 214 add_to_list(dns_cache, e); in find_in_dns_cache() 251 add_to_list(dns_cache, dnsentry); in end_dns_lookup() 299 foreach(d, dns_cache) if (u || (uttime)get_time() - (uttime)d->get_time > DNS_TIMEOUT) { in shrink_dns_cache()
|
/dports/devel/lua-cqueues/cqueues-rel-20200726/src/lib/ |
H A D | dns.h | 1018 struct dns_cache { struct 1021 dns_refcount_t (*acquire)(struct dns_cache *); argument 1022 dns_refcount_t (*release)(struct dns_cache *); argument 1026 int (*submit)(struct dns_packet *, struct dns_cache *); argument 1027 int (*check)(struct dns_cache *); argument 1028 struct dns_packet *(*fetch)(struct dns_cache *, int *); argument 1030 int (*pollfd)(struct dns_cache *); argument 1031 short (*events)(struct dns_cache *); argument 1032 void (*clear)(struct dns_cache *); argument 1045 DNS_PUBLIC struct dns_cache *dns_cache_init(struct dns_cache *); [all …]
|
/dports/security/gnupg/gnupg-2.3.3/dirmngr/ |
H A D | dns.h | 973 struct dns_cache { struct 976 dns_refcount_t (*acquire)(struct dns_cache *); argument 977 dns_refcount_t (*release)(struct dns_cache *); argument 981 int (*submit)(struct dns_packet *, struct dns_cache *); argument 982 int (*check)(struct dns_cache *); argument 983 struct dns_packet *(*fetch)(struct dns_cache *, int *); argument 985 int (*pollfd)(struct dns_cache *); argument 986 short (*events)(struct dns_cache *); argument 987 void (*clear)(struct dns_cache *); argument 1000 DNS_PUBLIC struct dns_cache *dns_cache_init(struct dns_cache *); [all …]
|
/dports/net/belle-sip/belle-sip-1.6.3-0/src/ |
H A D | dns.h | 1038 struct dns_cache { struct 1041 dns_refcount_t (*acquire)(struct dns_cache *); argument 1042 dns_refcount_t (*release)(struct dns_cache *); argument 1046 int (*submit)(struct dns_packet *, struct dns_cache *); argument 1047 int (*check)(struct dns_cache *); argument 1048 struct dns_packet *(*fetch)(struct dns_cache *, int *); argument 1050 int (*pollfd)(struct dns_cache *); argument 1051 short (*events)(struct dns_cache *); argument 1052 void (*clear)(struct dns_cache *); argument 1065 DNS_PUBLIC struct dns_cache *dns_cache_init(struct dns_cache *); [all …]
|
/dports/www/links/links-2.25/ |
H A D | dns.c | 89 static struct list_head dns_cache = {&dns_cache, &dns_cache}; variable 533 foreach(struct dnsentry, e, le, dns_cache) in find_in_dns_cache() 536 add_to_list(dns_cache, e); in find_in_dns_cache() 583 add_to_list(dns_cache, dnsentry); in end_dns_lookup() 689 return list_size(&dns_cache); in dns_info() 702 if (u == SH_FREE_SOMETHING && !list_empty(dns_cache)) { in shrink_dns_cache() 703 d = list_struct(dns_cache.prev, struct dnsentry); in shrink_dns_cache() 712 return f | (list_empty(dns_cache) ? ST_CACHE_EMPTY : 0); in shrink_dns_cache() 795 while (!list_empty(dns_cache)) { in flood_memory() 796 de = list_struct(dns_cache.prev, struct dnsentry); in flood_memory() [all …]
|
/dports/mail/postgrey/postgrey-1.37/contrib/ |
H A D | postgreyreport | 20 my $dns; my %dns_cache; # used for --check_sender 326 if ( $dns_cache{$hostname}{mx} ) 328 @iplist = @{$dns_cache{$hostname}{mx}}; # use the cache for MX records 352 …$dns_cache{$hostname}{mx} = [ @iplist ]; # cache the array IPs of the MX records into an hash loca… 368 if ( $dns_cache{$hostname}{a} ) 370 @iplist = @{$dns_cache{$hostname}{a}}; # use the cache'd A records 385 …$dns_cache{$hostname}{a} = [ @iplist ]; # cache the array IPs of the A records into an hash locati…
|
/dports/net/p5-srv2pf/srv2pf-20211010/scripts/ |
H A D | srv2pf | 95 our %dns_cache; 105 if (!$dns_cache{$dnsname}) { 122 $dns_cache{$dnsname} = [ keys %answers ]; 124 return @{$dns_cache{$dnsname}}
|