Home
last modified time | relevance | path

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

123456789

/openbsd/sys/netmpls/
H A Dmpls_output.c53 u_int8_t ttl; in mpls_output() local
74 ttl = mpls_getttl(m, dst->sa_family); in mpls_output()
119 shim->shim_label |= htonl(ttl); in mpls_output()
152 u_int8_t ttl = mpls_defttl; in mpls_getttl() local
161 return (ttl); in mpls_getttl()
168 return (ttl); in mpls_getttl()
174 return (ttl); in mpls_getttl()
180 return (ttl); in mpls_getttl()
182 ttl = *(mtod(n, uint8_t *) + off); in mpls_getttl()
184 return (ttl); in mpls_getttl()
H A Dmpls_input.c57 uint8_t ttl; in mpls_input() local
87 if (ttl <= 1) { in mpls_input()
96 ttl--; in mpls_input()
125 m = mpls_ip_adjttl(m, ttl); in mpls_input()
135 m = mpls_ip6_adjttl(m, ttl); in mpls_input()
211 if ((m = mpls_ip_adjttl(m, ttl)) == NULL) in mpls_input()
216 if ((m = mpls_ip6_adjttl(m, ttl)) == NULL) in mpls_input()
301 mpls_ip_adjttl(struct mbuf *m, u_int8_t ttl) in mpls_ip_adjttl() argument
315 new = htons(ttl << 8); in mpls_ip_adjttl()
318 ip->ip_ttl = ttl; in mpls_ip_adjttl()
[all …]
/openbsd/regress/sbin/pfctl/
H A Dpf44.ok1 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
2 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
3 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
4 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
5 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
6 match in on lo0 all scrub (no-df min-ttl 15 reassemble tcp max-mss 224)
H A Dpf68.ok14 match in log on lo0 proto tcp all scrub (min-ttl 25)
20 match in on lo0 proto tcp all scrub (no-df min-ttl 15 max-mss 224)
22 match in on lo0 proto tcp all scrub (no-df min-ttl 15 max-mss 224)
24 match in on lo0 proto tcp all scrub (no-df min-ttl 15 max-mss 224)
39 match in log on lo0 proto tcp from any to any port = 80 scrub (min-ttl 25)
44 match in on lo0 proto tcp from any port = 80 to any scrub (no-df min-ttl 15 max-mss 224)
45 match in on lo0 proto tcp from any port = 81 to any scrub (no-df min-ttl 15 max-mss 224)
47 match in on lo0 proto tcp from any port = 80 to any scrub (no-df min-ttl 15 max-mss 224)
48 match in on lo0 proto tcp from any port = 80 to any scrub (no-df min-ttl 15 max-mss 224)
49 match in on lo0 proto tcp from any to any port = 80 scrub (no-df min-ttl 15 max-mss 224)
[all …]
H A Dpf44.in3 match in on lo0 from any to any scrub(min-ttl 15, no-df, max-mss 224)
4 match in on lo0 from any to any scrub(no-df max-mss 224 min-ttl 15)
5 match in on lo0 from any to any scrub(max-mss 224, min-ttl 15 no-df)
6 match in on lo0 from any to any scrub(min-ttl 15 no-df, max-mss 224)
7 match in on lo0 from any to any scrub(no-df max-mss 224 min-ttl 15)
8 match in on lo0 from any to any scrub(max-mss 224 min-ttl 15 no-df reassemble tcp)
H A Dpf68.in10 match in log on lo0 proto tcp from any to any scrub(min-ttl 25)
14 match in on lo0 proto tcp from any to any scrub(max-mss 224 min-ttl 15 no-df)
16 match in on lo0 proto tcp from any to any scrub(min-ttl 15 no-df max-mss 224)
18 match in on lo0 proto tcp from any to any scrub(no-df max-mss 224 min-ttl 15)
29 match in log on lo0 proto tcp from any to any port 80 scrub(min-ttl 25)
32 match in on lo0 proto tcp from any port {80, 81} to any scrub(max-mss 224 min-ttl 15 no-df)
34 match in on lo0 proto tcp from any port 80 to any scrub (max-mss 224 min-ttl 15 no-df)
35 match in on lo0 proto tcp from any port 80 to any scrub(min-ttl 15 no-df max-mss 224)
36 match in on lo0 proto tcp from any to any port {80, 81, 82} scrub (min-ttl 15 no-df max-mss 224)
38 …in on lo0 proto tcp from any port {80, 81} to any port {80, 81} scrub(no-df max-mss 224 min-ttl 15)
[all …]
H A Dpfail25.in2 match scrub(min-ttl 4 min-ttl 5)
3 match in all scrub(min-ttl 256)
4 match out scrub(min-ttl 65536)
H A Dpf44.loaded1 @0 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
5 @1 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
9 @2 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
13 @3 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
17 @4 match in on lo0 all scrub (no-df min-ttl 15 max-mss 224)
21 @5 match in on lo0 all scrub (no-df min-ttl 15 reassemble tcp max-mss 224)
H A Dpfail25.ok2 stdin:2: min-ttl cannot be respecified
3 stdin:3: illegal min-ttl value 256
4 stdin:4: illegal min-ttl value 65536
/openbsd/usr.sbin/relayd/
H A Dcheck_icmp.c169 int i = 0, ttl; in send_icmp() local
223 ttl = host->conf.ttl; in send_icmp()
226 if (ttl > 0) { in send_icmp()
228 &ttl, sizeof(ttl)) == -1) in send_icmp()
233 len = sizeof(ttl); in send_icmp()
247 if (ttl > 0) { in send_icmp()
249 IPV6_UNICAST_HOPS, &ttl, in send_icmp()
250 sizeof(ttl)) == -1) in send_icmp()
255 ttl = -1; in send_icmp()
257 IPV6_UNICAST_HOPS, &ttl, in send_icmp()
[all …]
/openbsd/usr.sbin/ldpd/
H A Dsocket.c241 sock_set_ipv4_minttl(int fd, int ttl) in sock_set_ipv4_minttl() argument
243 if (setsockopt(fd, IPPROTO_IP, IP_MINTTL, &ttl, sizeof(ttl)) == -1) { in sock_set_ipv4_minttl()
252 sock_set_ipv4_ucast_ttl(int fd, int ttl) in sock_set_ipv4_ucast_ttl() argument
254 if (setsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)) == -1) { in sock_set_ipv4_ucast_ttl()
263 sock_set_ipv4_mcast_ttl(int fd, uint8_t ttl) in sock_set_ipv4_mcast_ttl() argument
266 (char *)&ttl, sizeof(ttl)) == -1) { in sock_set_ipv4_mcast_ttl()
268 __func__, ttl); in sock_set_ipv4_mcast_ttl()
/openbsd/regress/sys/netinet6/mcast6/
H A Dmc6send.c55 int ch, s, loop, port, ttl; in main() local
65 ttl = -1; in main()
91 ttl = strtonum(optarg, 0, 255, &errstr); in main()
126 if (ttl != -1) { in main()
127 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, in main()
128 sizeof(ttl)) == -1) in main()
129 err(1, "setsockopt ttl %d", ttl); in main()
/openbsd/usr.sbin/nsd/
H A Dixfr.h170 void ixfr_store_add_newsoa(struct ixfr_store* ixfr_store, uint32_t ttl,
181 void ixfr_store_add_oldsoa(struct ixfr_store* ixfr_store, uint32_t ttl,
185 uint16_t type, uint16_t klass, uint32_t ttl, struct buffer* packet,
188 uint16_t type, uint16_t klass, uint32_t ttl, struct buffer* packet,
192 uint32_t ttl, rdata_atom_type* rdatas, ssize_t rdata_num);
195 uint32_t ttl, uint8_t* rdata, size_t rdata_len);
198 uint32_t ttl, rdata_atom_type* rdatas, ssize_t rdata_num);
201 uint32_t ttl, uint8_t* rdata, size_t rdata_len);
H A Dpacket.c50 packet_encode_rr(query_type *q, domain_type *owner, rr_type *rr, uint32_t ttl) in packet_encode_rr() argument
70 buffer_write_u32(q->packet, ttl); in packet_encode_rr()
151 rrset->rrs[i].ttl)) { in packet_encode_rrset()
161 rrset->rrs[i].ttl)) { in packet_encode_rrset()
181 rrset_rrtype(rrset)==TYPE_SOA?rrset->rrs[0].ttl:rrsig->rrs[i].ttl)) in packet_encode_rrset()
282 result->ttl = 0; in packet_read_rr()
290 result->ttl = buffer_read_u32(packet); in packet_read_rr()
/openbsd/usr.sbin/unbound/services/cache/
H A Ddns.c83 time_t ttl, min_ttl = rep->ttl; in store_rrsets() local
118 ttl = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)->ttl; in store_rrsets()
119 if(ttl < min_ttl) min_ttl = ttl; in store_rrsets()
122 rep->ttl = min_ttl; in store_rrsets()
152 time_t ttl = rep->ttl; in dns_cache_store_msg() local
655 :r->ttl - now; in tomsg()
733 if(now > d->ttl) in rrset_msg()
741 msg->rep->ttl = d->ttl - now; in rrset_msg()
767 if(now > d->ttl) in synth_dname_msg()
780 msg->rep->ttl = d->ttl - now; in synth_dname_msg()
[all …]
H A Drrset.c143 if(equal && cached->ttl >= timenow && in need_to_update_rrset()
149 if( cached->ttl < timenow ) in need_to_update_rrset()
159 newd->ttl = cached->ttl; in need_to_update_rrset()
161 if(newd->rr_ttl[i] > newd->ttl) in need_to_update_rrset()
162 newd->rr_ttl[i] = newd->ttl; in need_to_update_rrset()
297 if(timenow > data->ttl) { in rrset_cache_lookup()
317 ->ttl) { in rrset_array_lock()
394 updata->ttl+now < cachedata->ttl || in rrset_update_sec_status()
395 cachedata->ttl < now || in rrset_update_sec_status()
397 cachedata->ttl = updata->ttl + now; in rrset_update_sec_status()
[all …]
/openbsd/sbin/unwind/libunbound/services/cache/
H A Ddns.c83 time_t ttl, min_ttl = rep->ttl; in store_rrsets() local
118 ttl = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)->ttl; in store_rrsets()
119 if(ttl < min_ttl) min_ttl = ttl; in store_rrsets()
122 rep->ttl = min_ttl; in store_rrsets()
152 time_t ttl = rep->ttl; in dns_cache_store_msg() local
655 :r->ttl - now; in tomsg()
733 if(now > d->ttl) in rrset_msg()
741 msg->rep->ttl = d->ttl - now; in rrset_msg()
767 if(now > d->ttl) in synth_dname_msg()
780 msg->rep->ttl = d->ttl - now; in synth_dname_msg()
[all …]
H A Drrset.c143 if(equal && cached->ttl >= timenow && in need_to_update_rrset()
149 if( cached->ttl < timenow ) in need_to_update_rrset()
159 newd->ttl = cached->ttl; in need_to_update_rrset()
161 if(newd->rr_ttl[i] > newd->ttl) in need_to_update_rrset()
162 newd->rr_ttl[i] = newd->ttl; in need_to_update_rrset()
297 if(timenow > data->ttl) { in rrset_cache_lookup()
317 ->ttl) { in rrset_array_lock()
394 updata->ttl+now < cachedata->ttl || in rrset_update_sec_status()
395 cachedata->ttl < now || in rrset_update_sec_status()
397 cachedata->ttl = updata->ttl + now; in rrset_update_sec_status()
[all …]
/openbsd/regress/sys/netinet/mcast/
H A Dmcsend.c54 int ch, s, loop, port, ttl; in main() local
63 ttl = -1; in main()
89 ttl = strtonum(optarg, 0, 255, &errstr); in main()
127 if (ttl != -1) { in main()
128 unsigned char value = ttl; in main()
132 err(1, "setsockopt ttl %d", ttl); in main()
/openbsd/usr.sbin/tcpdump/
H A Dprint-carp.c46 carp_print(const u_char *bp, u_int len, int ttl) in carp_print() argument
59 if (ttl != 255) in carp_print()
60 printf("[ttl=%d!] ", ttl); in carp_print()
H A Dprint-vrrp.c68 vrrp_print(const u_char *bp, u_int len, int ttl) in vrrp_print() argument
81 if (ttl != 255) in vrrp_print()
82 printf("[ttl=%d!] ", ttl); in vrrp_print()
H A Dprint-mpls.c45 u_int32_t tag, label, exp, bottom, ttl; in mpls_print() local
59 ttl = (tag >> 0) & 0xff; in mpls_print()
61 printf("MPLS(label %u, exp %u, ttl %u) ", label, exp, ttl); in mpls_print()
/openbsd/usr.sbin/unbound/edns-subnet/
H A Daddrtree.c91 time_t ttl) in node_create() argument
99 node->ttl = ttl; in node_create()
362 addrlen_t sourcemask, addrlen_t scope, void *elem, time_t ttl, in addrtree_insert() argument
385 node->ttl = ttl; in addrtree_insert()
397 if (!edge->node->elem || edge->node->ttl >= now) in addrtree_insert()
404 newnode = node_create(tree, elem, scope, ttl); in addrtree_insert()
452 newnode->ttl = ttl; in addrtree_insert()
461 newnode = node_create(tree, elem, scope, ttl); in addrtree_insert()
490 if (node->elem && node->ttl >= now && in addrtree_find()
/openbsd/usr.sbin/smtpd/
H A Dscheduler_backend.c58 sched->ttl = disp->ttl ? disp->ttl : env->sc_ttl; in scheduler_info()
/openbsd/usr.sbin/mrouted/
H A Dkern.c36 u_char ttl; in k_set_ttl() local
38 ttl = t; in k_set_ttl()
40 (char *)&ttl, sizeof(ttl)) == -1) in k_set_ttl()
41 logit(LOG_ERR, errno, "setsockopt IP_MULTICAST_TTL %u", ttl); in k_set_ttl()

123456789