/openbsd-current/usr.sbin/tcpdump/ |
H A D | print-carp.c | 46 carp_print(const u_char *bp, u_int len, int ttl) argument 59 if (ttl != 255) 60 printf("[ttl=%d!] ", ttl);
|
H A D | print-vrrp.c | 68 vrrp_print(const u_char *bp, u_int len, int ttl) argument 81 if (ttl != 255) 82 printf("[ttl=%d!] ", ttl);
|
H A D | print-mpls.c | 45 u_int32_t tag, label, exp, bottom, ttl; local 59 ttl = (tag >> 0) & 0xff; 61 printf("MPLS(label %u, exp %u, ttl %u) ", label, exp, ttl);
|
/openbsd-current/usr.sbin/smtpd/ |
H A D | scheduler_backend.c | 58 sched->ttl = disp->ttl ? disp->ttl : env->sc_ttl;
|
/openbsd-current/regress/sys/netinet6/mcast6/ |
H A D | mc6send.c | 43 " -t ttl set multicast ttl\n"); 55 int ch, s, loop, port, ttl; local 65 ttl = -1; 91 ttl = strtonum(optarg, 0, 255, &errstr); 93 errx(1, "ttl is %s: %s", errstr, optarg); 126 if (ttl != -1) { 127 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, 128 sizeof(ttl)) == -1) 129 err(1, "setsockopt ttl [all...] |
/openbsd-current/sys/netmpls/ |
H A D | mpls_output.c | 53 u_int8_t ttl; local 74 ttl = mpls_getttl(m, dst->sa_family); 119 shim->shim_label |= htonl(ttl); 152 u_int8_t ttl = mpls_defttl; local 161 return (ttl); 168 return (ttl); 174 return (ttl); 180 return (ttl); 182 ttl = *(mtod(n, uint8_t *) + off); 184 return (ttl); [all...] |
H A D | mpls_input.c | 57 uint8_t ttl; local 79 printf("mpls_input: iface %s label=%d, ttl=%d BoS %d\n", 86 ttl = ntohl(shim->shim_label & MPLS_TTL_MASK); 87 if (ttl <= 1) { 94 ttl = ntohl(shim->shim_label & MPLS_TTL_MASK); 96 ttl--; 125 m = mpls_ip_adjttl(m, ttl); 135 m = mpls_ip6_adjttl(m, ttl); 211 if ((m = mpls_ip_adjttl(m, ttl)) == NULL) 216 if ((m = mpls_ip6_adjttl(m, ttl)) 301 mpls_ip_adjttl(struct mbuf *m, u_int8_t ttl) argument 327 mpls_ip6_adjttl(struct mbuf *m, u_int8_t ttl) argument [all...] |
/openbsd-current/regress/sys/netinet/mcast/ |
H A D | mcsend.c | 42 " -t ttl set multicast ttl\n"); 54 int ch, s, loop, port, ttl; local 63 ttl = -1; 89 ttl = strtonum(optarg, 0, 255, &errstr); 91 errx(1, "ttl is %s: %s", errstr, optarg); 127 if (ttl != -1) { 128 unsigned char value = ttl; 132 err(1, "setsockopt ttl %d", ttl); [all...] |
/openbsd-current/usr.sbin/nsd/ |
H A D | ixfr.h | 165 * ttl: the TTL of the SOA record 170 void ixfr_store_add_newsoa(struct ixfr_store* ixfr_store, uint32_t ttl, 176 * ttl: the TTL of the SOA record 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_ [all...] |
/openbsd-current/usr.bin/dig/lib/dns/include/dns/ |
H A D | rdatalist.h | 55 dns_ttl_t ttl; member in struct:dns_rdatalist
|
/openbsd-current/usr.sbin/ldpd/ |
H A D | socket.c | 241 sock_set_ipv4_minttl(int fd, int ttl) argument 243 if (setsockopt(fd, IPPROTO_IP, IP_MINTTL, &ttl, sizeof(ttl)) == -1) { 252 sock_set_ipv4_ucast_ttl(int fd, int ttl) argument 254 if (setsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)) == -1) { 263 sock_set_ipv4_mcast_ttl(int fd, uint8_t ttl) argument 266 (char *)&ttl, sizeof(ttl)) == -1) { 268 __func__, ttl); [all...] |
/openbsd-current/usr.sbin/amd/amd/ |
H A D | srvr_afs.c | 95 * Called when final ttl of server has expired 153 int ttl = (fs->fs_flags & (FSF_DOWN|FSF_ERROR)) ? 19 : AM_TTL; local 155 dlog("Last hard reference to file server %s - will timeout in %ds", fs->fs_host, ttl); 167 fs->fs_cid = timeout(ttl, timeout_srvr, fs);
|
/openbsd-current/usr.sbin/mrouted/ |
H A D | prune.h | 30 u_char gt_ttls[MAXVIFS]; /* ttl vector for forwarding */ 77 u_int ttl : 8; /* traceroute response ttl */ member in struct:tr_query::__anon10701 81 u_int ttl : 8; /* traceroute response ttl */ member in struct:tr_query::__anon10702 87 #define tr_rttl q.ttl 103 u_char tr_fttl; /* ttl required to forward on outvif */
|
/openbsd-current/sbin/unwind/libunbound/validator/ |
H A D | val_kentry.h | 79 time_t ttl; member in struct:key_entry_data 171 * @param ttl: what ttl should the key have. relative. 174 * @param now: current time (added to ttl). 178 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl, 192 * @param now: current time (added to ttl of rrset) 207 * @param ttl: what ttl should the key have. relative. 210 * @param now: current time (added to ttl). 214 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl, [all...] |
/openbsd-current/usr.sbin/unbound/validator/ |
H A D | val_kentry.h | 79 time_t ttl; member in struct:key_entry_data 171 * @param ttl: what ttl should the key have. relative. 174 * @param now: current time (added to ttl). 178 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl, 192 * @param now: current time (added to ttl of rrset) 207 * @param ttl: what ttl should the key have. relative. 210 * @param now: current time (added to ttl). 214 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl, [all...] |
/openbsd-current/usr.sbin/unbound/services/cache/ |
H A D | rrset.c | 143 if(equal && cached->ttl >= timenow && 149 if( cached->ttl < timenow ) 155 * update to fetch the latest data. ttl is not expired, because 159 newd->ttl = cached->ttl; 161 if(newd->rr_ttl[i] > newd->ttl) 162 newd->rr_ttl[i] = newd->ttl; 297 if(timenow > data->ttl) { 317 ->ttl) { 394 updata->ttl [all...] |
H A D | dns.c | 83 time_t ttl, min_ttl = rep->ttl; local 116 /* if ref was updated make sure the message ttl is updated to 118 ttl = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)->ttl; 119 if(ttl < min_ttl) min_ttl = ttl; 121 if(min_ttl < rep->ttl) { 122 rep->ttl = min_ttl; 123 rep->prefetch_ttl = PREFETCH_TTL_CALC(rep->ttl); 152 time_t ttl = rep->ttl; local [all...] |
/openbsd-current/sbin/unwind/libunbound/services/cache/ |
H A D | rrset.c | 143 if(equal && cached->ttl >= timenow && 149 if( cached->ttl < timenow ) 155 * update to fetch the latest data. ttl is not expired, because 159 newd->ttl = cached->ttl; 161 if(newd->rr_ttl[i] > newd->ttl) 162 newd->rr_ttl[i] = newd->ttl; 297 if(timenow > data->ttl) { 317 ->ttl) { 394 updata->ttl [all...] |
H A D | dns.c | 83 time_t ttl, min_ttl = rep->ttl; local 116 /* if ref was updated make sure the message ttl is updated to 118 ttl = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)->ttl; 119 if(ttl < min_ttl) min_ttl = ttl; 121 if(min_ttl < rep->ttl) { 122 rep->ttl = min_ttl; 123 rep->prefetch_ttl = PREFETCH_TTL_CALC(rep->ttl); 152 time_t ttl = rep->ttl; local [all...] |
/openbsd-current/regress/sys/net/pf_opts/ |
H A D | igmp_bad.py | 21 packet=IP(src=ADDR, dst="224.0.0.1", ttl=1, options=b"\003\004\000\000")/ \
|
H A D | igmp_ra.py | 21 packet=IP(src=ADDR, dst="224.0.0.1", ttl=1, options=b"\224\004\000\000")/ \
|
/openbsd-current/usr.sbin/relayd/ |
H A D | check_icmp.c | 169 int i = 0, ttl; local 223 ttl = host->conf.ttl; 226 if (ttl > 0) { 228 &ttl, sizeof(ttl)) == -1) 233 len = sizeof(ttl); 235 IP_IPDEFTTL, &ttl, &len) == 0) { 237 IP_TTL, &ttl, len) == -1) 247 if (ttl > [all...] |
/openbsd-current/usr.bin/dig/lib/dns/ |
H A D | Makefile.inc | 9 SRCS+= rdataset.c tsig.c ttl.c
|
H A D | rdatalist.c | 52 rdatalist->ttl = 0; 72 rdataset->ttl = rdatalist->ttl;
|
/openbsd-current/usr.sbin/unbound/testcode/ |
H A D | pktview.c | 131 uint32_t ttl; local 143 ttl = sldns_buffer_read_u32(pkt); 144 printf(" ttl %d (0x%x)", (int)ttl, (unsigned)ttl);
|