Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 25 of 104) 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()
111 if (ttl.dsize != sizeof (struct timeval)) { in has_entry_expired()
119 map->map_name, dbm_error(map->ttl)); in has_entry_expired()
144 bcopy(ttl.dptr, &old_time, sizeof (struct timeval)); 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()
[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.c518 if (result->ttl > now) { in kidmap_cache_lookup_sidbyuid()
550 if (result->ttl > now) { in kidmap_cache_lookup_sidbygid()
569 time_t ttl = CACHE_TTL + gethrestime_sec(); in kidmap_cache_add_sid2uid() local
590 result->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
596 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()
662 time_t ttl = CACHE_TTL + gethrestime_sec(); in kidmap_cache_add_sid2gid() local
683 result->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
691 new->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
[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.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()
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()
[all …]
H A Dsmbns_netbios_name.c266 TO_MILLISECONDS(answer->ttl) : in smb_name_get_reply()
338 uint32_t ttl; in smb_netbios_process_response() local
358 if (answer->ttl) in smb_netbios_process_response()
359 addr->ttl = answer->ttl; in smb_netbios_process_response()
361 addr->ttl = DEFAULT_TTL; in smb_netbios_process_response()
362 addr->refresh_ttl = TO_SECONDS(addr->ttl); in smb_netbios_process_response()
363 addr->ttl = addr->refresh_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()
422 (ttl < addr->refresh_ttl)) in smb_netbios_process_response()
[all …]
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_cache.c800 time_t ttl = CACHE_TTL + time(NULL); in idmap_cache_add_sid2uid() local
819 result->uid_ttl = ttl; in idmap_cache_add_sid2uid()
831 new->uid_ttl = ttl; in idmap_cache_add_sid2uid()
869 result->sid_ttl = ttl; in idmap_cache_add_sid2uid()
881 new->sid_ttl = ttl; in idmap_cache_add_sid2uid()
912 time_t ttl = CACHE_TTL + time(NULL); in idmap_cache_add_sid2gid() local
931 result->gid_ttl = ttl; in idmap_cache_add_sid2gid()
945 new->gid_ttl = ttl; in idmap_cache_add_sid2gid()
981 result->sid_ttl = ttl; in idmap_cache_add_sid2gid()
993 new->sid_ttl = ttl; in idmap_cache_add_sid2gid()
[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
1263 ttl = *(nssuint_t *)((void *)((char *)pbuf + phdr->ext_off)); in get_dns_ttl()
1266 (me, "dns ttl is %d seconds\n", ttl); in get_dns_ttl()
1268 return (ttl); in get_dns_ttl()
1592 int ttl; in lookup_int() local
1630 ttl = get_dns_ttl(largs->buffer, dbname); in lookup_int()
1632 if (ttl < 0 || ttl > cfg.pos_ttl) in lookup_int()
1633 ttl = cfg.pos_ttl; in lookup_int()
1634 this_stats->timestamp = time(NULL) + ttl; in lookup_int()
2226 uint_t ttl, extra_sleep, total_sleep, intervals; in reaper() local
[all …]
/illumos-gate/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 …]
/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.c1061 … uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context) in qr_reply() argument
1081 (void)ttl; // Unused in qr_reply()
1195 …Address, uint32_t protocol, uint16_t privatePort, uint16_t publicPort, uint32_t ttl, void *context) in port_mapping_create_reply() argument
1211 …%-6d%s\n", ifIndex, addr, protocol, ntohs(privatePort), ntohs(publicPort), ttl, errorCode == kDNSS… in port_mapping_create_reply()
1217 …rType errorCode, const char *hostname, const struct sockaddr *address, uint32_t ttl, void *context) in addrinfo_reply() argument
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
1746 …RecordRef, flags, interfaceIndex, fullname, rrtype, rrclass, rdlen, rdata, ttl, callBack, context)… in API_NULL_input_test()
1747 …ecordRef, flags, interfaceIndex, 0, rrtype, rrclass, rdlen, rdata, ttl, callBack, context)… in API_NULL_input_test()
1748 …ecordRef, flags, interfaceIndex, fullname, rrtype, rrclass, rdlen, 0, ttl, callBack, context)… in API_NULL_input_test()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c102 int ttl = -1; variable
190 ttl = strtonumx(optarg, 1, 255, &errstr, 0); in main()
932 if (ttl != -1) { in set_common_sockopts()
935 if (setsockopt(s, IPPROTO_IP, IP_TTL, &ttl, in set_common_sockopts()
936 sizeof (ttl)) != 0) { in set_common_sockopts()
941 if (setsockopt(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, in set_common_sockopts()
942 sizeof (ttl)) != 0) { in set_common_sockopts()
/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);

12345