Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dttl_utils.c69 datum ttl; in has_entry_expired() local
75 if ((map == NULL) || (map->ttl == NULL)) in has_entry_expired()
79 ttl = dbm_fetch(map->ttl, *key); in has_entry_expired()
81 if (NULL == ttl.dptr) { in has_entry_expired()
119 map->map_name, dbm_error(map->ttl)); in has_entry_expired()
192 int ttl; in update_entry_ttl() local
198 ttl = get_ttl_value(map, type); in update_entry_ttl()
200 if (FAILURE == add_to_timeval(&now, ttl)) in update_entry_ttl()
247 if (NULL == map->ttl) { in update_map_ttl()
249 if (NULL == map->ttl) in update_map_ttl()
[all …]
H A Dmap_ctrl.c103 map->ttl = NULL; in create_map_ctrl()
248 map->ttl = NULL; in map_ctrl_init()
357 if (NULL != map->ttl) { in free_map_ctrl()
358 dbm_close(map->ttl); in free_map_ctrl()
359 map->ttl = NULL; in free_map_ctrl()
482 map->ttl = dbm_open(map->ttl_path, O_RDWR | O_CREAT, 0644); in open_yptol_files()
483 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()
/illumos-gate/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.cc240 m->ttl = (ldapDBTableMapping.ttl > 0) ? in initMappingStruct()
241 ldapDBTableMapping.ttl : 3600; in initMappingStruct()
588 time_t lo, hi, ttl; in setEntryExp() local
594 ttl = mapping.ttl; in setEntryExp()
596 if (ttl == 0) in setEntryExp()
597 ttl = -1; in setEntryExp()
615 ttl = t->ttl; in setEntryExp()
617 if (ttl == 0) in setEntryExp()
618 ttl = -1; in setEntryExp()
626 hi = lo = ttl = maxTimeT - now.tv_sec; in setEntryExp()
[all …]
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_cache.c596 new->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
632 result->ttl = ttl; in kidmap_cache_add_sid2uid()
638 new->ttl = ttl; in kidmap_cache_add_sid2uid()
691 new->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
725 result->ttl = ttl; in kidmap_cache_add_sid2gid()
731 new->ttl = ttl; in kidmap_cache_add_sid2gid()
793 new->uid_ttl = ttl; in kidmap_cache_add_sid2pid()
838 result->ttl = ttl; in kidmap_cache_add_sid2pid()
844 new->ttl = ttl; in kidmap_cache_add_sid2pid()
869 result->ttl = ttl; in kidmap_cache_add_sid2pid()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_ttl.c92 u_long ttl, tmp; in ns_parse_ttl() local
95 ttl = 0; in ns_parse_ttl()
124 ttl += tmp; in ns_parse_ttl()
133 ttl += tmp; in ns_parse_ttl()
136 *dst = ttl; in ns_parse_ttl()
H A Dns_parse.c173 rr->ttl = 0; in ns_parserr()
179 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr()
235 rr->ttl = 0; in ns_parserr2()
241 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr2()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c365 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()
543 if (addr->ttl > 0) { in smb_netbios_cache_refresh()
544 addr->ttl--; in smb_netbios_cache_refresh()
545 if (addr->ttl == 0) { in smb_netbios_cache_refresh()
682 inet_ntoa(addr->sin.sin_addr), addr->ttl); in smb_netbios_name_dump()
686 inet_ntoa(addr->sin.sin_addr), addr->ttl); in smb_netbios_name_dump()
[all …]
H A Dsmbns_netbios_name.c338 uint32_t ttl; in smb_netbios_process_response() local
359 addr->ttl = answer->ttl; in smb_netbios_process_response()
416 ttl = (answer && answer->ttl) ? answer->ttl : DEFAULT_TTL; in smb_netbios_process_response()
417 ttl = TO_SECONDS(ttl); in smb_netbios_process_response()
423 addr->refresh_ttl = addr->ttl = ttl; in smb_netbios_process_response()
1157 answer.ttl = original_packet->additional->ttl; in smb_send_name_registration_response()
1245 answer.ttl = original_packet->additional->ttl; in smb_send_name_release_response()
1346 answer.ttl = entry->addr_list.ttl; in smb_send_name_query_response()
1411 answer.ttl = 0; in smb_send_node_status_response()
1849 name->addr_list.ttl = additional->ttl; in smb_name_process_Bnode_packet()
[all …]
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_cache.c819 result->uid_ttl = ttl; in idmap_cache_add_sid2uid()
831 new->uid_ttl = ttl; in idmap_cache_add_sid2uid()
881 new->sid_ttl = ttl; in idmap_cache_add_sid2uid()
945 new->gid_ttl = ttl; in idmap_cache_add_sid2gid()
993 new->sid_ttl = ttl; in idmap_cache_add_sid2gid()
1065 new->uid_ttl = ttl; in idmap_cache_add_sid2pid()
1073 new->gid_ttl = ttl; in idmap_cache_add_sid2pid()
1124 new->sid_ttl = ttl; in idmap_cache_add_sid2pid()
1171 new->sid_ttl = ttl; in idmap_cache_add_sid2pid()
1243 new->uid_ttl = ttl; in idmap_cache_add_winname2uid()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Drecvmsg.c66 uint8_t ttl; /* TTL to set */ member
117 .ttl = 11,
124 .ttl = 32,
131 .ttl = 173,
139 .ttl = 54,
335 if (t->flags & RT_SETTTL && d != t->ttl) { in servertest()
337 t->name, d, t->ttl); in servertest()
442 int c = t->ttl; in clienttest()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddomain.c111 int ttl; local
134 &rcode, false, &ttl);
135 renew = curtime() + ttl;
230 int ttl = 0; local
355 GETLONG(ttl, cp);
416 if (ttl > 0 && pttl != NULL)
417 *pttl = ttl;
801 int ttl = 0; local
1015 GETLONG(ttl, ap);
1162 if (ttl > 0 && pttl != NULL)
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddns_sd.h1366 uint32_t ttl
1407 uint32_t ttl
1752 uint32_t ttl,
1864 uint32_t ttl,
2042 uint32_t ttl,
2210 … uint32_t ttl, /* may be different than the requested ttl */
2278 uint32_t ttl, /* time to live in seconds */
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c193 int seq, int ttl, struct timeval *tp, int packlen) in send_probe() argument
228 outip->ip_ttl = ttl; in send_probe()
237 if (setsockopt(sndsock, IPPROTO_IP, IP_TTL, (char *)&ttl, in send_probe()
238 sizeof (ttl)) < 0) { in send_probe()
259 outdata->ttl = ttl; in send_probe()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/
H A DDNSCommon.h217 mDNSu32 ttl, const mDNSu8 *limit);
219 #define PutResourceRecordTTL(msg, ptr, count, rr, ttl) \ argument
220 …PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl), (msg)->data + AllowedRRSpace(msg…
222 #define PutResourceRecordTTLJumbo(msg, ptr, count, rr, ttl) \ argument
223 …PutResourceRecordTTLWithLimit((msg), (ptr), (count), (rr), (ttl), (msg)->data + AbsoluteMaxDNSMess…
229 #define PutRR_OS_TTL(ptr, count, rr, ttl) \ argument
230 …PutResourceRecordTTLWithLimit(&m->omsg, (ptr), (count), (rr), (ttl), m->omsg.data + AllowedRRSpace…
/illumos-gate/usr/src/cmd/nscd/
H A Dcache.c1252 int ttl; in get_dns_ttl() local
1268 return (ttl); in get_dns_ttl()
1592 int ttl; in lookup_int() local
1632 if (ttl < 0 || ttl > cfg.pos_ttl) in lookup_int()
1633 ttl = cfg.pos_ttl; in lookup_int()
2239 ttl = ctx->cfg.pos_ttl; in reaper()
2247 if (ttl < 60) in reaper()
2248 ttl = 60; in reaper()
2251 (void) sleep(ttl); in reaper()
2255 if (ttl < 32) ttl = 32; in reaper()
[all …]
/illumos-gate/usr/src/cmd/trapstat/sun4/
H A Dtrapstat.c588 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
792 ttl += sum[i].tsum_time; in print_modedata()
[all …]
/illumos-gate/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c159 uint16_t rdlen, const void *rdata, uint32_t ttl, in _nss_mdns_querynamereply() argument
236 qdata->ttl = ttl; in _nss_mdns_querynamereply()
299 uint16_t rdlen, const void *rdata, uint32_t ttl, in _nss_mdns_queryaddrreply() argument
365 qdata->ttl = ttl; in _nss_mdns_queryaddrreply()
752 *pttl = qdata.ttl; in _nss_mdns_gethost_withttl()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/hsi_repository/
H A Dtcp_common.h125 u8 ttl; member
192 u8 ttl; member
264 u8 ttl; member
/illumos-gate/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()
/illumos-gate/usr/src/contrib/mDNSResponder/Clients/
H A Ddns-sd.c1081 (void)ttl; // Unused in qr_reply()
1264 …printf("%s%9X%3d %-38s %-44s %d%s", op, flags, interfaceIndex, hostname, addr, ttl, enable_dnssec … in addrinfo_reply()
1735 uint32_t ttl = 0; in API_NULL_input_test() local
1770 uint32_t ttl = 100; in API_NULL_input_test() local
1780 if ( (DNSServiceAddRecord( 0, &RecordRef, flags, rrtype, rdlen, rdata, ttl) == 0) in API_NULL_input_test()
1781 || (DNSServiceAddRecord(sdRef, 0, flags, rrtype, rdlen, rdata, ttl) == 0) in API_NULL_input_test()
1782 || (DNSServiceAddRecord(sdRef, &RecordRef, flags, rrtype, rdlen, 0, ttl) == 0) in API_NULL_input_test()
1791 … if (DNSServiceAddRecord(sdRef, &RecordRef, flags, rrtype, 0, 0, ttl) == kDNSServiceErr_BadParam) in API_NULL_input_test()
1799 if ( (DNSServiceUpdateRecord( 0, RecordRef, flags, rdlen, rdata, ttl) == 0) in API_NULL_input_test()
1800 || (DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, 0, ttl) == 0) in API_NULL_input_test()
[all …]
/illumos-gate/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);
/illumos-gate/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,

12345