Searched refs:ttl (Results 1 - 25 of 26) sorted by relevance

12

/systemd/src/resolve/
H A Dresolved-mdns.c140 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 Dresolved-dns-stream.h40 uint32_t ttl; member in struct:DnsStream
H A Dresolved-llmnr.c128 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 Dresolved-dns-answer.c127 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 Dresolved-dns-dnssec.c602 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 Dresolved-dns-dnssec.h93 int dnssec_nsec_test(DnsAnswer *answer, DnsResourceKey *key, DnssecNsecResult *result, bool *authenticated, uint32_t *ttl);
H A Dresolved-dns-stream.c134 s->ttl = *(int *) CMSG_DATA(cmsg);
152 s->ttl = *(int *) CMSG_DATA(cmsg);
270 s->read_packet->ttl = s->ttl;
H A Dresolved-dns-cache.c289 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 Dresolved-dns-packet.h89 uint32_t ttl; member in struct:DnsPacket
125 rcode = (uint16_t) (p->opt->ttl >> 24);
H A Dresolved-dns-answer.h59 int dns_answer_add_soa(DnsAnswer *a, const char *name, uint32_t ttl);
H A Dresolved-dns-rr.h112 uint32_t ttl; member in struct:DnsResourceRecord
H A Dresolved-link.c717 a->llmnr_address_rr->ttl = LLMNR_DEFAULT_TTL;
725 a->llmnr_ptr_rr->ttl = LLMNR_DEFAULT_TTL;
774 a->llmnr_address_rr->ttl = LLMNR_DEFAULT_TTL;
782 a->llmnr_ptr_rr->ttl = LLMNR_DEFAULT_TTL;
H A Dresolved-dns-packet.c794 r = dns_packet_append_uint32(p, rr->ttl, NULL);
1611 r = dns_packet_read_uint32(p, &rr->ttl, NULL);
1617 if (rr->ttl & UINT32_C(0x80000000))
1618 rr->ttl = 0;
2061 if (((rr->ttl >> 16) & UINT32_C(0xFF)) != 0)
/systemd/src/libsystemd-network/
H A Dlldp-internal.c39 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 Ddhcp-packet.c110 packet->udp.check = dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, len - 8);
112 packet->ip.ttl = IPDEFTTL;
181 packet->ip.ttl = 0;
183 if (dhcp_packet_checksum((uint8_t*)&packet->ip.ttl,
H A Dtest-lldp.c77 /* 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 Dsd-lldp.c147 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) {
H A Dtest-dhcp-client.c161 assert_se(discover->ip.ttl == IPDEFTTL);
170 discover->ip.ttl = 0;
173 udp_check = ~dhcp_packet_checksum((uint8_t*)&discover->ip.ttl, len - 8);
176 discover->ip.ttl = IPDEFTTL;
H A Dlldp-tlv.c507 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);
/systemd/src/network/
H A Dnetworkd-netdev-vxlan.h38 unsigned ttl; member in struct:VxLan
H A Dnetworkd-netdev-tunnel.h48 unsigned ttl; member in struct:Tunnel
H A Dnetworkd-netdev-tunnel.c71 r = sd_netlink_message_append_u8(m, IFLA_IPTUN_TTL, t->ttl);
104 r = sd_netlink_message_append_u8(m, IFLA_IPTUN_TTL, t->ttl);
143 r = sd_netlink_message_append_u8(m, IFLA_GRE_TTL, t->ttl);
186 r = sd_netlink_message_append_u8(m, IFLA_GRE_TTL, t->ttl);
276 r = sd_netlink_message_append_u8(m, IFLA_IPTUN_TTL, t->ttl);
556 t->ttl = DEFAULT_TNL_HOP_LIMIT;
565 t->ttl = DEFAULT_TNL_HOP_LIMIT;
H A Dnetworkd-netdev-vxlan.c57 if(v->ttl) {
58 r = sd_netlink_message_append_u8(m, IFLA_VXLAN_TTL, v->ttl);
H A Dnetworkctl.c899 double ttl = -1; local
982 ttl = (double) (x - time) / USEC_PER_SEC;
992 if (ttl >= 0) {
996 ttl, cap);
/systemd/src/systemd/
H A Dsd-lldp.h62 int sd_lldp_packet_read_ttl(sd_lldp_packet *tlv, uint16_t *ttl);

Completed in 5430 milliseconds

12