Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 25 of 106) sorted by relevance

12345

/titanic_44/usr/src/lib/libnisdb/yptol/
H A Dttl_utils.c70 datum ttl; in has_entry_expired() local
76 if ((map == NULL) || (map->ttl == NULL)) in has_entry_expired()
80 ttl = dbm_fetch(map->ttl, *key); in has_entry_expired()
82 if (NULL == ttl.dptr) { in has_entry_expired()
112 if (ttl.dsize != sizeof (struct timeval)) { in has_entry_expired()
120 map->map_name, dbm_error(map->ttl)); in has_entry_expired()
145 bcopy(ttl.dptr, &old_time, sizeof (struct timeval)); in has_entry_expired()
193 int ttl; in update_entry_ttl() local
199 ttl = get_ttl_value(map, type); in update_entry_ttl()
201 if (FAILURE == add_to_timeval(&now, ttl)) in update_entry_ttl()
[all …]
H A Dmap_ctrl.c105 map->ttl = NULL; in create_map_ctrl()
250 map->ttl = NULL; in map_ctrl_init()
359 if (NULL != map->ttl) { in free_map_ctrl()
360 dbm_close(map->ttl); in free_map_ctrl()
361 map->ttl = NULL; in free_map_ctrl()
484 map->ttl = dbm_open(map->ttl_path, O_RDWR | O_CREAT, 0644); in open_yptol_files()
485 if (NULL == map->ttl) { in open_yptol_files()
H A Dshim.c130 dbm_delete(map->ttl, key); in shim_dbm_delete()
271 dbm_close(map->ttl); in shim_dbm_firstkey()
583 value = dbm_fetch(map->ttl, key); in check_old_map_date()
613 dbm_store(map->ttl, key, value, DBM_REPLACE); in check_old_map_date()
/titanic_44/usr/src/lib/libnisdb/
H A Dnis_ldap.c132 int ttl; in touchRootDir() local
148 ttl = (lrand48() % interval); in touchRootDir()
150 ttl = t->initTtlLo; in touchRootDir()
153 rootDirTtl = t->ttl; in touchRootDir()
155 ttl = rootDirTtl = 3600; in touchRootDir()
158 ttl = rootDirTtl; in touchRootDir()
161 rootDirExpire = now.tv_sec + ttl; in touchRootDir()
H A Ddb_table.cc237 m->ttl = (ldapDBTableMapping.ttl > 0) ? in initMappingStruct()
238 ldapDBTableMapping.ttl : 3600; in initMappingStruct()
585 time_t lo, hi, ttl; in setEntryExp() local
591 ttl = mapping.ttl; in setEntryExp()
593 if (ttl == 0) in setEntryExp()
594 ttl = -1; in setEntryExp()
612 ttl = t->ttl; in setEntryExp()
614 if (ttl == 0) in setEntryExp()
615 ttl = -1; in setEntryExp()
623 hi = lo = ttl = maxTimeT - now.tv_sec; in setEntryExp()
[all …]
/titanic_44/usr/src/uts/common/idmap/
H A Didmap_cache.c434 if (result->ttl > now) { in kidmap_cache_lookup_sidbyuid()
464 if (result->ttl > now) { in kidmap_cache_lookup_sidbygid()
483 time_t ttl = CACHE_TTL + gethrestime_sec(); in kidmap_cache_add_sid2uid() local
502 result->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
508 new->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
542 result->ttl = ttl; in kidmap_cache_add_sid2uid()
548 new->ttl = ttl; in kidmap_cache_add_sid2uid()
572 time_t ttl = CACHE_TTL + gethrestime_sec(); in kidmap_cache_add_sid2gid() local
591 result->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
599 new->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
[all …]
/titanic_44/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c57 static int ttl, valid; in corrupt() local
91 ttl += rv; in corrupt()
93 if (ttl < 10000) { in corrupt()
98 printf("enabled %d probes; resetting device.\n", ttl); in corrupt()
111 ttl = 0; in corrupt()
139 ttl += rv; in corrupt()
/titanic_44/usr/src/lib/libresolv2/common/nameser/
H A Dns_ttl.c98 u_long ttl, tmp; in ns_parse_ttl() local
101 ttl = 0; in ns_parse_ttl()
126 ttl += tmp; in ns_parse_ttl()
135 ttl += tmp; in ns_parse_ttl()
138 *dst = ttl; in ns_parse_ttl()
H A Dns_parse.c179 rr->ttl = 0; in ns_parserr()
185 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr()
241 rr->ttl = 0; in ns_parserr2()
247 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr2()
/titanic_44/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c344 entry.addr_list.refresh_ttl = entry.addr_list.ttl = in smb_netbios_cache_insert_list()
365 addr->ttl = name_addr->ttl; in smb_netbios_cache_update_entry()
373 addr->ttl = name_addr->ttl; in smb_netbios_cache_update_entry()
457 if (addr->ttl < 1) { in smb_netbios_cache_reset_ttl()
459 addr->ttl = addr->refresh_ttl; in smb_netbios_cache_reset_ttl()
461 addr->refresh_ttl = addr->ttl = in smb_netbios_cache_reset_ttl()
541 if (addr->ttl > 0) { in smb_netbios_cache_refresh()
542 addr->ttl--; in smb_netbios_cache_refresh()
543 if (addr->ttl == 0) { in smb_netbios_cache_refresh()
679 inet_ntoa(addr->sin.sin_addr), addr->ttl); in smb_netbios_name_dump()
[all …]
H A Dsmbns_netbios_name.c264 TO_MILLISECONDS(answer->ttl) : in smb_name_get_reply()
336 uint32_t ttl; in smb_netbios_process_response() local
356 if (answer->ttl) in smb_netbios_process_response()
357 addr->ttl = answer->ttl; in smb_netbios_process_response()
359 addr->ttl = DEFAULT_TTL; in smb_netbios_process_response()
360 addr->refresh_ttl = TO_SECONDS(addr->ttl); in smb_netbios_process_response()
361 addr->ttl = addr->refresh_ttl; in smb_netbios_process_response()
414 ttl = (answer && answer->ttl) ? answer->ttl : DEFAULT_TTL; in smb_netbios_process_response()
415 ttl = TO_SECONDS(ttl); in smb_netbios_process_response()
420 (ttl < addr->refresh_ttl)) in smb_netbios_process_response()
[all …]
/titanic_44/usr/src/lib/libidmap/common/
H A Didmap_cache.c797 time_t ttl = CACHE_TTL + time(NULL); in idmap_cache_add_sid2uid() local
816 result->uid_ttl = ttl; in idmap_cache_add_sid2uid()
828 new->uid_ttl = ttl; in idmap_cache_add_sid2uid()
866 result->sid_ttl = ttl; in idmap_cache_add_sid2uid()
878 new->sid_ttl = ttl; in idmap_cache_add_sid2uid()
909 time_t ttl = CACHE_TTL + time(NULL); in idmap_cache_add_sid2gid() local
928 result->gid_ttl = ttl; in idmap_cache_add_sid2gid()
942 new->gid_ttl = ttl; in idmap_cache_add_sid2gid()
978 result->sid_ttl = ttl; in idmap_cache_add_sid2gid()
990 new->sid_ttl = ttl; in idmap_cache_add_sid2gid()
[all …]
/titanic_44/usr/src/lib/libdns_sd/java/com/apple/dnssd/
H A DDNSSD.java776 public void update( int flags, byte[] rData, int ttl) in update() argument
779 this.ThrowOnErr( this.Update( flags, rData, ttl)); in update()
797 protected native int Update( int flags, byte[] rData, int ttl); in Update() argument
814 public DNSRecord addRecord( int flags, int rrType, byte[] rData, int ttl) in addRecord() argument
819 this.ThrowOnErr( this.AddRecord( flags, rrType, rData, ttl, newRecord)); in addRecord()
834 …protected native int AddRecord( int flags, int rrType, byte[] rData, int ttl, AppleDNSRecord destO… in AddRecord() argument
849 int rrclass, byte[] rdata, int ttl) in registerRecord() argument
854 …this.ThrowOnErr( this.RegisterRecord( flags, ifIndex, fullname, rrtype, rrclass, rdata, ttl, newRe… in registerRecord()
863 int rrclass, byte[] rdata, int ttl, AppleDNSRecord destObj); in RegisterRecord() argument
/titanic_44/usr/src/cmd/sendmail/src/
H A Ddomain.c113 int ttl; local
136 &rcode, false, &ttl);
137 renew = curtime() + ttl;
232 int ttl = 0; local
357 GETLONG(ttl, cp);
418 if (ttl > 0 && pttl != NULL)
419 *pttl = ttl;
803 int ttl = 0; local
1017 GETLONG(ttl, ap);
1164 if (ttl > 0 && pttl != NULL)
[all …]
/titanic_44/usr/src/lib/libadutils/common/
H A Daddisc.c238 uint32_t ttl) in update_item() argument
259 if (ttl == 0) in update_item()
262 item->expires = time(NULL) + ttl; in update_item()
663 char **rrname, uint32_t *ttl) in srv_query() argument
685 *ttl = 5 * 60; in srv_query()
755 *ttl = (uint32_t)-1; in srv_query()
798 if (rttl < *ttl) in srv_query()
799 *ttl = rttl; in srv_query()
1280 uint32_t ttl = 0; in validate_DomainName() local
1293 ctx->domain_name.value, &srvname, &ttl); in validate_DomainName()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c195 int seq, int ttl, struct timeval *tp, int packlen) in send_probe() argument
230 outip->ip_ttl = ttl; in send_probe()
239 if (setsockopt(sndsock, IPPROTO_IP, IP_TTL, (char *)&ttl, in send_probe()
240 sizeof (ttl)) < 0) { in send_probe()
261 outdata->ttl = ttl; in send_probe()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DDNSCommon.h282 …ssage *const msg, mDNSu8 *ptr, mDNSu16 *count, ResourceRecord *rr, mDNSu32 ttl, const mDNSu8 *limi…
284 …PutResourceRecordTTL(msg, ptr, count, rr, ttl) PutResourceRecordTTLWithLimit((msg), (ptr), (count)… argument
287 …sourceRecordTTLJumbo(msg, ptr, count, rr, ttl) PutResourceRecordTTLWithLimit((msg), (ptr), (count)… argument
/titanic_44/usr/src/lib/libdns_sd/java/com/apple/dnssd/docs/examples/src/
H A DSwingQueryListener.java66 int rrtype, int rrclass, byte[] rdata, int ttl) in queryAnswered() argument
75 fTTL = ttl; in queryAnswered()
/titanic_44/usr/src/cmd/trapstat/sun4/
H A Dtrapstat.c584 print_missdata(double *ttl, uint64_t diff, double p) in print_missdata() argument
588 if (ttl != NULL) in print_missdata()
589 *ttl += p; in print_missdata()
599 double ttl = 0.0; in print_modepgsz() local
602 g_arg = &ttl; in print_modepgsz()
609 (void) printf(" |%4.1f\n", ttl); in print_modepgsz()
671 double ttl = 0.0; in print_sum() local
680 ttl += sum[i].tsum_time; in print_sum()
683 (void) printf(" |%4.1f\n", ttl); in print_sum()
772 double ttl = 0.0; in print_modedata() local
[all …]
/titanic_44/usr/src/cmd/nscd/
H A Dcache.c1226 int ttl; in get_dns_ttl() local
1237 ttl = *(nssuint_t *)((void *)((char *)pbuf + phdr->ext_off)); in get_dns_ttl()
1240 (me, "dns ttl is %d seconds\n", ttl); in get_dns_ttl()
1242 return (ttl); in get_dns_ttl()
1566 int ttl; in lookup_int() local
1604 ttl = get_dns_ttl(largs->buffer, dbname); in lookup_int()
1606 if (ttl < 0 || ttl > cfg.pos_ttl) in lookup_int()
1607 ttl = cfg.pos_ttl; in lookup_int()
1608 this_stats->timestamp = time(NULL) + ttl; in lookup_int()
2187 uint_t ttl, extra_sleep, total_sleep, intervals; in reaper() local
[all …]
/titanic_44/usr/src/lib/libdns_sd/common/
H A Ddns_sd.h717 uint32_t ttl
756 uint32_t ttl
1135 uint32_t ttl,
1189 uint32_t ttl,
/titanic_44/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c161 uint16_t rdlen, const void *rdata, uint32_t ttl, in _nss_mdns_querynamereply() argument
238 qdata->ttl = ttl; in _nss_mdns_querynamereply()
301 uint16_t rdlen, const void *rdata, uint32_t ttl, in _nss_mdns_queryaddrreply() argument
367 qdata->ttl = ttl; in _nss_mdns_queryaddrreply()
754 *pttl = qdata.ttl; in _nss_mdns_gethost_withttl()
/titanic_44/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c149 int ttl = 255; in spoof_set_max_hops() local
152 (char *)&ttl, sizeof (ttl)) < 0) { in spoof_set_max_hops()
157 (char *)&ttl, sizeof (ttl)) < 0) { in spoof_set_max_hops()
/titanic_44/usr/src/grub/grub-0.97/netboot/
H A Dgrub.h83 extern void build_ip_hdr P((unsigned long destip, int ttl, int protocol,
86 unsigned int srcsock, unsigned int destsock, int ttl,
/titanic_44/usr/src/uts/common/inet/ipf/netinet/
H A Dip_ipsec_pxy.c121 int p, off, dlen, ttl; local
156 ttl = IPF_TTLVAL(ifsipsec->ipsecnattqe->ifq_ttl);
157 ipn->in_tqehead[0] = fr_addtimeoutqueue(&ifs->ifs_nat_utqe, ttl, ifs);
158 ipn->in_tqehead[1] = fr_addtimeoutqueue(&ifs->ifs_nat_utqe, ttl, ifs);

12345