/systemd/src/resolve/ |
H A D | resolved-mdns.c | 140 static const int one = 1, pmtu = IP_PMTUDISC_DONT, ttl = 255; local 152 r = setsockopt(m->mdns_ipv4_fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); 158 r = setsockopt(m->mdns_ipv4_fd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); 217 static const int one = 1, ttl = 255; local 229 r = setsockopt(m->mdns_ipv6_fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); 236 r = setsockopt(m->mdns_ipv6_fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, sizeof(ttl)); [all...] |
H A D | resolved-dns-stream.h | 40 uint32_t ttl; member in struct:DnsStream
|
H A D | resolved-llmnr.c | 128 static const int one = 1, pmtu = IP_PMTUDISC_DONT, ttl = 255; local 141 r = setsockopt(m->llmnr_ipv4_udp_fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); 147 r = setsockopt(m->llmnr_ipv4_udp_fd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); 208 static const int one = 1, ttl = 255; local 220 r = setsockopt(m->llmnr_ipv6_udp_fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); 227 r = setsockopt(m->llmnr_ipv6_udp_fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, sizeof(ttl)); [all...] |
H A D | resolved-dns-answer.c | 127 if ((rr->ttl == 0) != (a->items[i].rr->ttl == 0)) 132 if (rr->ttl > a->items[i].rr->ttl) { 153 if ((rr->ttl == 0) != (a->items[i].rr->ttl == 0)) 188 int dns_answer_add_soa(DnsAnswer *a, const char *name, uint32_t ttl) { argument 195 soa->ttl = ttl; 209 soa->soa.minimum = ttl; [all...] |
H A D | resolved-dns-cache.c | 289 uint32_t ttl; local 294 ttl = MIN(rr->ttl, nsec_ttl); 302 if (ttl > rr->soa.minimum) 303 ttl = rr->soa.minimum; 306 u = ttl * USEC_PER_SEC; 393 if (rr->ttl <= 0) { 492 if (nsec_ttl <= 0 || soa->soa.minimum <= 0 || soa->ttl <= 0) {
|
H A D | resolved-dns-packet.h | 89 uint32_t ttl; member in struct:DnsPacket 125 rcode = (uint16_t) (p->opt->ttl >> 24);
|
H A D | resolved-dns-dnssec.c | 602 rr->ttl = MIN3(rr->ttl, rrsig->rrsig.original_ttl, rrsig->ttl); 821 /* Now, fix the ttl, expiry, and remember the synthesizing source and the signer */ 1352 static int dnssec_test_nsec3(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool *authenticated, uint32_t *ttl) { argument 1473 if (ttl) 1474 *ttl = enclosure_rr->ttl; 1600 if (ttl) 1601 *ttl 1753 dnssec_nsec_test(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool *authenticated, uint32_t *ttl) argument 2173 dnssec_nsec_test(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool *authenticated, uint32_t *ttl) argument [all...] |
H A D | resolved-dns-rr.h | 112 uint32_t ttl; member in struct:DnsResourceRecord
|
/systemd/src/network/ |
H A D | networkd-netdev-tunnel.h | 48 unsigned ttl; member in struct:Tunnel
|
H A D | networkd-netdev-vxlan.h | 38 unsigned ttl; member in struct:VxLan
|
H A D | networkctl.c | 899 double ttl = -1; local 982 ttl = (double) (x - time) / USEC_PER_SEC; 992 if (ttl >= 0) { 996 ttl, cap);
|
/systemd/src/libsystemd-network/ |
H A D | lldp-internal.c | 39 uint16_t length, ttl; local 56 r = sd_lldp_packet_read_ttl(tlv, &ttl); 60 p->until = ttl * USEC_PER_SEC + now(clock_boottime_or_monotonic()); 108 uint16_t ttl, length; local 119 r = sd_lldp_packet_read_ttl(tlv, &ttl); 132 /* Don't create chassis if ttl 0 is received . Silently drop it */ 133 if (ttl == 0) { 160 if (ttl == 0) { 248 uint16_t length, ttl; local 259 r = sd_lldp_packet_read_ttl(tlv, &ttl); [all...] |
H A D | test-lldp.c | 77 /* ttl */ 200 uint16_t ttl; local 203 assert_se(tlv_packet_read_u16(m, &ttl) >= 0); 205 assert_se(ttl == 170); 302 uint16_t length, ttl; local 352 assert_se(sd_lldp_packet_read_ttl(packets[0], &ttl) == 0); 353 assert_se(ttl == 120);
|
H A D | lldp-tlv.c | 507 int sd_lldp_packet_read_ttl(tlv_packet *tlv, uint16_t *ttl) { argument 508 return lldp_tlv_packet_read_u16_tlv(tlv, LLDP_TYPE_TTL, ttl);
|
H A D | sd-lldp.c | 147 bool malformed = false, port_id = false, ttl = false, end = false; local 277 if (ttl) { 284 ttl = true; 334 if(!chassis_id || !port_id || !ttl || !end) {
|