/third_party/lwip/src/include/lwip/ |
H A D | ip.h | 97 u8_t ttl \ 113 u8_t ttl \ 255 #define ip_output(p, src, dest, ttl, tos, proto) \ 257 ip6_output(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto) : \ 258 ip4_output(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto)) 263 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ 265 ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 266 ip4_output_if(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) 271 #define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ 273 ip6_output_if_src(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, to [all...] |
H A D | ip4.h | 81 u8_t ttl, u8_t tos, u8_t proto); 83 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif); 85 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif); 88 u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint); 92 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, 95 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
|
/third_party/ltp/testcases/network/multicast/mc_opts/ |
H A D | mc_verify_opts.c | 31 unsigned char ttl; in main() local 86 len = sizeof(ttl); in main() 88 (s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, (socklen_t *)&len) != 0) { in main() 92 printf("getsockopt: got ttl = %i\n", ttl); in main() 93 if (ttl != 1) in main() 94 printf("Error: IP_MULTICAST_TTL not default value, ttl = %i\n", in main() 95 ttl); in main() 96 ttl = 10; /* Set ttl t in main() [all...] |
H A D | mc_verify_opts_error.c | 24 unsigned char ttl; in main() local 57 len = sizeof(ttl); in main() 59 (s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, (socklen_t *)&len) != 0) in main() 62 ttl = 10; /* Set ttl to 10 */ in main() 63 /* printf("setting ttl=10\n");*/ in main() 64 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) != 0) in main()
|
/third_party/node/deps/cares/src/lib/ |
H A D | ares_qcache.c | 247 unsigned int ttl = ares_dns_rr_get_ttl(rr); in ares__qcache_calc_minttl() local 252 if (ttl < minttl) { in ares__qcache_calc_minttl() 253 minttl = ttl; in ares__qcache_calc_minttl() 271 unsigned int ttl; in ares__qcache_soa_minimum() local 279 ttl = ares_dns_rr_get_ttl(rr); in ares__qcache_soa_minimum() 281 if (ttl > minimum) { in ares__qcache_soa_minimum() 284 return ttl; in ares__qcache_soa_minimum() 316 unsigned int ttl; in ares__qcache_insert() local 336 ttl = ares__qcache_soa_minimum(dnsrec); in ares__qcache_insert() 338 ttl in ares__qcache_insert() [all...] |
H A D | ares__addrinfo2hostent.c | 237 if (next_cname->ttl < cname_ttl) { in ares__addrinfo2addrttl() 238 cname_ttl = next_cname->ttl; in ares__addrinfo2addrttl() 254 addr6ttls[*naddrttls].ttl = cname_ttl; in ares__addrinfo2addrttl() 256 addr6ttls[*naddrttls].ttl = next->ai_ttl; in ares__addrinfo2addrttl() 265 addrttls[*naddrttls].ttl = cname_ttl; in ares__addrinfo2addrttl() 267 addrttls[*naddrttls].ttl = next->ai_ttl; in ares__addrinfo2addrttl()
|
H A D | ares_dns_write.c | 518 unsigned int ttl = 0; in ares_dns_write_rr_opt() local 524 /* We need to go back and overwrite the class and ttl that were emitted as in ares_dns_write_rr_opt() 540 ttl |= (unsigned int)rcode << 24; in ares_dns_write_rr_opt() 541 ttl |= (unsigned int)ares_dns_rr_get_u8(rr, ARES_RR_OPT_VERSION) << 16; in ares_dns_write_rr_opt() 542 ttl |= (unsigned int)ares_dns_rr_get_u16(rr, ARES_RR_OPT_FLAGS); in ares_dns_write_rr_opt() 544 status = ares__buf_append_be32(buf, ttl); in ares_dns_write_rr_opt() 850 unsigned int ttl; in ares_dns_write_rr() local 884 ttl = ares_dns_rr_get_ttl(rr); in ares_dns_write_rr() 885 if (rr->parent->ttl_decrement > ttl) { in ares_dns_write_rr() 886 ttl in ares_dns_write_rr() [all...] |
H A D | ares__addrinfo_localhost.c | 58 unsigned int ttl, const void *adata, in ares_append_ai_node() 85 node->ai_ttl = (int)ttl; in ares_append_ai_node() 103 node->ai_ttl = (int)ttl; in ares_append_ai_node() 57 ares_append_ai_node(int aftype, unsigned short port, unsigned int ttl, const void *adata, struct ares_addrinfo_node **nodes) ares_append_ai_node() argument
|
/third_party/node/lib/internal/dns/ |
H A D | callback_resolver.js | 40 if (ttls && this.ttl) 42 result, (address, index) => ({ address, ttl: ttls[index] })); 70 req.ttl = !!(options && options.ttl); 79 ttl: req.ttl,
|
H A D | promises.js | 279 if (ttls && this.ttl) 281 result, (address, index) => ({ address, ttl: ttls[index] })); 289 function createResolverPromise(resolver, bindingName, hostname, ttl) { 298 req.ttl = ttl; 310 ttl, 321 const ttl = !!(options && options.ttl); 322 return createResolverPromise(this, bindingName, name, ttl);
|
/third_party/node/test/parallel/ |
H A D | test-dns-resolveany.js | 10 { type: 'A', address: '1.2.3.4', ttl: 123 }, 11 { type: 'AAAA', address: '::42', ttl: 123 }, 12 { type: 'MX', priority: 42, exchange: 'foobar.com', ttl: 124 }, 13 { type: 'NS', value: 'foobar.org', ttl: 457 }, 15 { type: 'PTR', value: 'baz.org', ttl: 987 }, 67 delete ret.ttl;
|
H A D | test-dns.js | 364 { type: 'A', address: '1.2.3.4', ttl: 3333333333 }, 365 { type: 'AAAA', address: '::42', ttl: 3333333333 }, 366 { type: 'MX', priority: 42, exchange: 'foobar.com', ttl: 3333333333 }, 367 { type: 'NS', value: 'foobar.org', ttl: 3333333333 }, 368 { type: 'PTR', value: 'baz.org', ttl: 3333333333 }, 382 options: { ttl: true }, 383 answers: [ { type: 'A', address: '1.2.3.4', ttl: 3333333333 } ] }, 386 options: { ttl: true }, 387 answers: [ { type: 'AAAA', address: '::42', ttl: 3333333333 } ] }, 439 delete ret.ttl; [all...] |
H A D | test-http-header-validators.js | 60 function isFunc(v, ttl) { 61 assert.ok(v.constructor === Function, `${ttl} is expected to be a function`);
|
H A D | test-dns-multi-channel.js | 11 reply: { type: 'A', address: '1.2.3.4', ttl: 123, domain: 'example.org' } 15 reply: { type: 'A', address: '5.6.7.8', ttl: 123, domain: 'example.org' }
|
/third_party/node/deps/npm/node_modules/lru-cache/dist/commonjs/ |
H A D | index.js | 149 * {@link LRUCache.OptionsBase.ttl} 151 ttl; 306 const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, } = options; 382 this.ttl = ttl || 0; 383 if (this.ttl) { 384 if (!isPosInt(this.ttl)) { 385 throw new TypeError('ttl must be a positive integer if specified'); 390 if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) { 391 throw new TypeError('At least one of max, maxSize, or ttl i [all...] |
/third_party/node/deps/npm/node_modules/lru-cache/dist/esm/ |
H A D | index.js | 146 * {@link LRUCache.OptionsBase.ttl} 148 ttl; 303 const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, } = options; 379 this.ttl = ttl || 0; 380 if (this.ttl) { 381 if (!isPosInt(this.ttl)) { 382 throw new TypeError('ttl must be a positive integer if specified'); 387 if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) { 388 throw new TypeError('At least one of max, maxSize, or ttl i [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | sdp.c | 51 int ttl; /**< TTL, in case of multicast stream */ member 61 const char *dest_type, int ttl) in sdp_write_address() 66 if (ttl > 0 && !strcmp(dest_type, "IP4")) { in sdp_write_address() 69 av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl); in sdp_write_address() 84 sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl); in sdp_write_header() 124 static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url) in sdp_get_address() argument 132 *ttl = 0; in sdp_get_address() 145 if (av_find_info_tag(buff, sizeof(buff), "ttl", p)) { in sdp_get_address() 146 *ttl = strtol(buff, NULL, 10); in sdp_get_address() 148 *ttl in sdp_get_address() 60 sdp_write_address(char *buff, int size, const char *dest_addr, const char *dest_type, int ttl) sdp_write_address() argument 811 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument 841 int i, j, port, ttl, is_multicast, index = 0; av_sdp_create() local 915 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument [all...] |
/third_party/toybox/toys/pending/ |
H A D | traceroute.c | 110 static void send_probe4(int seq, int ttl) in send_probe4() argument 132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); in send_probe4() 133 if (res < 0) perror_exit("setsockopt ttl %d", ttl); in send_probe4() 142 static void send_probe6(int seq, int ttl) in send_probe6() argument 151 if (setsockopt(TT.snd_sock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl, in send_probe6() 152 sizeof(ttl)) < 0) error_exit("setsockopt ttl %d", ttl); in send_probe6() 199 int seq, fexit, ttl, tv = TT.wait_time * 1000; do_trace() local [all...] |
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | openssl-session.c | 218 long ttl; in lws_tls_session_new_cb() local 238 ttl = SSL_SESSION_get_timeout(sess); in lws_tls_session_new_cb() 253 ttl * LWS_US_PER_SEC); in lws_tls_session_new_cb() 282 lwsl_tlssess("%s: %p: %s: %s %s, ttl %lds (%s:%u)\n", __func__, in lws_tls_session_new_cb() 283 sess, wsi->lc.gutag, disposition, tag, ttl, vh->name, in lws_tls_session_new_cb() 342 lws_tls_session_cache(struct lws_vhost *vh, uint32_t ttl) in lws_tls_session_cache() argument 356 if (!ttl) in lws_tls_session_cache() 360 SSL_CTX_set_timeout(vh->tls.ssl_client_ctx, ttl); in lws_tls_session_cache() 362 SSL_CTX_set_timeout(vh->tls.ssl_client_ctx, (long)ttl); in lws_tls_session_cache()
|
/third_party/ltp/testcases/network/multicast/mc_commo/ |
H A D | mc_send.c | 26 char ttl = 0; in main() local 30 "usage: %s g.g.g.g interface_name (or i.i.i.i) port [ttl]\n", in main() 90 ttl = atoi(argv[4]); in main() 91 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0) { in main() 92 perror("can not set ttl"); in main()
|
/third_party/lwip/src/core/ipv4/ |
H A D | ip4.c | 816 * @param ttl the TTL value to be set in the IP header 829 u8_t ttl, u8_t tos, 833 return ip4_output_if_opt(p, src, dest, ttl, tos, proto, netif, NULL, 0); 844 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, 856 return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif, 859 return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif); 869 u8_t ttl, u8_t tos, 873 return ip4_output_if_opt_src(p, src, dest, ttl, tos, proto, netif, NULL, 0); 882 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, 948 IPH_TTL_SET(iphdr, ttl); 828 ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) global() argument 843 ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) global() argument 868 ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) global() argument 881 ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) global() argument 1069 ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto) global() argument 1111 ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint) global() argument [all...] |
/third_party/libwebsockets/lib/system/async-dns/ |
H A D | async-dns-parse.c | 130 uint32_t ttl, adns_query_type_t type, 161 uint32_t ttl; in lws_adns_iterate() local 247 ttl = lws_ser_ru32be(&p[4]); in lws_adns_iterate() 310 cb(stack[0].name, opaque, ttl, rrtype, p); in lws_adns_iterate() 433 lws_async_dns_estimate(const char *name, void *opaque, uint32_t ttl, in lws_async_dns_estimate() argument 463 lws_async_dns_store(const char *name, void *opaque, uint32_t ttl, in lws_async_dns_store() argument 472 if (ttl < adst->smallest_ttl || !adst->ctr) in lws_async_dns_store() 473 adst->smallest_ttl = ttl; in lws_async_dns_store() 632 * set to the minimum ttl seen in all the results. in lws_adns_parse_udp()
|
/third_party/pulseaudio/src/modules/rtp/ |
H A D | module-rtp-send.c | 67 "ttl=<ttl value> " 93 "ttl", 215 uint32_t ttl = DEFAULT_TTL; in pa__init() local 312 if (pa_modargs_get_value_u32(ma, "ttl", &ttl) < 0 || ttl < 1 || ttl > 0xFF) { in pa__init() 313 pa_log("ttl= expects a numerical argument between 1 and 255."); in pa__init() 418 if (ttl ! in pa__init() [all...] |
/third_party/lame/frontend/ |
H A D | mp3rtp.c | 76 * mp3rtp ip[:port[:ttl]] [lame encoding options] infile outfile 146 unsigned int ttl = 2; in lame_main() local 152 " mp3rtp ip[:port[:ttl]] [lame encoding options] infile outfile\n" in lame_main() 161 switch (sscanf(argv[1], "%11[.0-9]:%u:%u%c", ip, &port, &ttl, &dummy)) { in lame_main() 167 error_printf("Illegal destination selector '%s', must be ip[:port[:ttl]]\n", argv[1]); in lame_main() 171 if (rtp_socket(ip, port, ttl)) { in lame_main()
|
/third_party/lwip/src/core/ |
H A D | raw.c | 449 u8_t ttl; in raw_sendto_if_src() local 543 ttl = (ip_addr_ismulticast(dst_ip) ? raw_get_multicast_ttl(pcb) : pcb->ttl); in raw_sendto_if_src() 545 ttl = pcb->ttl; in raw_sendto_if_src() 549 err = ip_output_if(q, src_ip, dst_ip, ttl, pcb->tos, pcb->protocol, netif); in raw_sendto_if_src() 641 pcb->ttl = RAW_TTL; in raw_new()
|