Home
last modified time | relevance | path

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

12

/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dip.h85 u8_t ttl \
226 #define ip_output(p, src, dest, ttl, tos, proto) \ argument
234 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ argument
272 #define ip_output(p, src, dest, ttl, tos, proto) \ argument
273 ip4_output(p, src, dest, ttl, tos, proto)
274 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ argument
275 ip4_output_if(p, src, dest, ttl, tos, proto, netif)
290 #define ip_output(p, src, dest, ttl, tos, proto) \ argument
291 ip6_output(p, src, dest, ttl, tos, proto)
292 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ argument
[all …]
A Dip4.h73 u8_t ttl, u8_t tos, u8_t proto);
75 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
77 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
80 u8_t ttl, u8_t tos, u8_t proto, u8_t *addr_hint);
84 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
87 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dip.h87 u8_t ttl \
228 #define ip_output(p, src, dest, ttl, tos, proto) \ argument
236 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ argument
279 #define ip_output(p, src, dest, ttl, tos, proto) \ argument
280 ip4_output(p, src, dest, ttl, tos, proto)
281 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ argument
282 ip4_output_if(p, src, dest, ttl, tos, proto, netif)
299 #define ip_output(p, src, dest, ttl, tos, proto) \ argument
300 ip6_output(p, src, dest, ttl, tos, proto)
301 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ argument
[all …]
A Dip4.h73 u8_t ttl, u8_t tos, u8_t proto);
75 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
77 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
80 u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint);
84 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
87 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
/components/net/lwip/lwip-1.4.1/src/include/ipv4/lwip/
A Dip.h85 u8_t ttl \
161 #define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl = (u8_t)(ttl) argument
178 u8_t ttl, u8_t tos, u8_t proto);
180 u8_t ttl, u8_t tos, u8_t proto,
184 u8_t ttl, u8_t tos, u8_t proto, u8_t *addr_hint);
188 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
/components/net/lwip/lwip-1.4.1/src/include/ipv6/lwip/
A Dip.h78 u8_t ttl; \
111 u8_t ttl, u8_t proto);
114 u8_t ttl, u8_t proto,
/components/net/lwip/lwip-2.0.3/src/apps/ping/
A Dping.c108 int lwip_ping_recv(int s, int *ttl) in lwip_ping_recv() argument
124 *ttl = iphdr->_ttl; in lwip_ping_recv()
144 int s, ttl, recv_len; in ping() local
191 if ((recv_len = lwip_ping_recv(s, &ttl)) >= 0) in ping()
195 ttl, elapsed_time); in ping()
/components/net/lwip/lwip-1.4.1/src/apps/ping/
A Dping.c108 int lwip_ping_recv(int s, int *ttl) in lwip_ping_recv() argument
124 *ttl = iphdr->_ttl; in lwip_ping_recv()
144 int s, ttl, recv_len; in ping() local
191 if ((recv_len = lwip_ping_recv(s, &ttl)) >= 0) in ping()
195 ttl, elapsed_time); in ping()
/components/net/lwip/lwip-2.1.2/src/apps/ping/
A Dping.c108 int lwip_ping_recv(int s, int *ttl) in lwip_ping_recv() argument
124 *ttl = iphdr->_ttl; in lwip_ping_recv()
144 int s, ttl, recv_len; in ping() local
191 if ((recv_len = lwip_ping_recv(s, &ttl)) >= 0) in ping()
195 ttl, elapsed_time); in ping()
/components/net/lwip/lwip-1.4.1/src/core/ipv6/
A Dip6.c261 u8_t ttl, in ip_output_if() argument
282 iphdr->hoplim = ttl; in ip_output_if()
318 u8_t ttl, u8_t proto) in ip_output() argument
327 return ip_output_if (p, src, dest, ttl, proto, netif); in ip_output()
333 u8_t ttl, u8_t tos, u8_t proto, u8_t *addr_hint) in ip_output_hinted() argument
345 err = ip_output_if(p, src, dest, ttl, tos, proto, netif); in ip_output_hinted()
/components/net/lwip/lwip-2.0.3/src/core/ipv4/
A Dip4.c756 u8_t ttl, u8_t tos, argument
760 return ip4_output_if_opt(p, src, dest, ttl, tos, proto, netif, NULL, 0);
783 return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif,
786 return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif);
796 u8_t ttl, u8_t tos, argument
867 IPH_TTL_SET(iphdr, ttl);
870 chk_sum += PP_NTOHS(proto | (ttl << 8));
983 u8_t ttl, u8_t tos, u8_t proto) argument
996 return ip4_output_if(p, src, dest, ttl, tos, proto, netif);
1020 u8_t ttl, u8_t tos, u8_t proto, u8_t *addr_hint) argument
[all …]
/components/net/lwip/lwip-2.1.2/src/core/ipv4/
A Dip4.c788 u8_t ttl, u8_t tos, argument
792 return ip4_output_if_opt(p, src, dest, ttl, tos, proto, netif, NULL, 0);
815 return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif,
818 return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif);
828 u8_t ttl, u8_t tos, argument
832 return ip4_output_if_opt_src(p, src, dest, ttl, tos, proto, netif, NULL, 0);
907 IPH_TTL_SET(iphdr, ttl);
910 chk_sum += PP_NTOHS(proto | (ttl << 8));
1029 u8_t ttl, u8_t tos, u8_t proto) argument
1042 return ip4_output_if(p, src, dest, ttl, tos, proto, netif);
[all …]
/components/net/lwip/lwip-2.1.2/src/core/
A Draw.c426 u8_t ttl; in raw_sendto_if_src() local
520 ttl = (ip_addr_ismulticast(dst_ip) ? raw_get_multicast_ttl(pcb) : pcb->ttl); in raw_sendto_if_src()
522 ttl = pcb->ttl; in raw_sendto_if_src()
526 err = ip_output_if(q, src_ip, dst_ip, ttl, pcb->tos, pcb->protocol, netif); in raw_sendto_if_src()
608 pcb->ttl = RAW_TTL; in raw_new()
A Ddns.c210 u32_t ttl; member
227 u32_t ttl; member
1152 if ((entry->ttl == 0) || (--entry->ttl == 0)) { in dns_check_entry()
1184 dns_correct_response(u8_t idx, u32_t ttl) in dns_correct_response() argument
1195 entry->ttl = ttl; in dns_correct_response()
1196 if (entry->ttl > DNS_MAX_TTL) { in dns_correct_response()
1197 entry->ttl = DNS_MAX_TTL; in dns_correct_response()
1201 if (entry->ttl == 0) { in dns_correct_response()
1351 dns_correct_response(i, lwip_ntohl(ans.ttl)); in dns_recv()
1371 dns_correct_response(i, lwip_ntohl(ans.ttl)); in dns_recv()
A Dudp.c717 u8_t ttl; in udp_sendto_if_src_chksum() local
884 ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl); in udp_sendto_if_src_chksum()
886 ttl = pcb->ttl; in udp_sendto_if_src_chksum()
893 err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif); in udp_sendto_if_src_chksum()
1232 pcb->ttl = UDP_TTL; in udp_new()
/components/net/lwip-nat/
A Dipv4_nat.c107 (x)->ttl = 0; \
492 if ((nat_entry.icmp->common.ttl) && in ip_nat_input()
570 if(nat_entry->ttl > 0) { in ip_nat_check_timeout()
571 if(nat_entry->ttl != LWIP_NAT_TTL_INFINITE) { in ip_nat_check_timeout()
574 nat_entry->ttl -= LWIP_NAT_TMR_INTERVAL_SEC; in ip_nat_check_timeout()
576 nat_entry->ttl = 0; in ip_nat_check_timeout()
748 nat_entry->ttl = LWIP_NAT_DEFAULT_TTL_SECONDS; in ip_nat_cmn_init()
767 if (ip_nat_udp_table[i].common.ttl) { in ip_nat_udp_lookup_incoming()
801 if (ip_nat_udp_table[i].common.ttl) { in ip_nat_udp_lookup_outgoing()
851 if (ip_nat_tcp_table[i].common.ttl) { in ip_nat_tcp_lookup_incoming()
[all …]
/components/net/lwip/lwip-1.4.1/src/core/ipv4/
A Dip.c669 u8_t ttl, u8_t tos, argument
673 return ip_output_if_opt(p, src, dest, ttl, tos, proto, netif, NULL, 0);
683 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, argument
743 IPH_TTL_SET(iphdr, ttl);
746 chk_sum += LWIP_MAKE_U16(proto, ttl);
846 u8_t ttl, u8_t tos, u8_t proto) argument
861 return ip_output_if(p, src, dest, ttl, tos, proto, netif);
885 u8_t ttl, u8_t tos, u8_t proto, u8_t *addr_hint) argument
902 err = ip_output_if(p, src, dest, ttl, tos, proto, netif);
/components/net/lwip/lwip-2.0.3/src/include/lwip/prot/
A Dip4.h118 #define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl = (u8_t)(ttl) argument
/components/net/lwip/lwip-2.1.2/src/include/lwip/prot/
A Dip4.h122 #define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl = (u8_t)(ttl) argument
/components/net/lwip/lwip-1.4.1/src/core/
A Ddns.c164 u32_t ttl; member
177 u32_t ttl; member
711 if (--pEntry->ttl == 0) { in dns_check_entry()
820 pEntry->ttl = ntohl(ans.ttl); in dns_recv()
821 if (pEntry->ttl > DNS_MAX_TTL) { in dns_recv()
822 pEntry->ttl = DNS_MAX_TTL; in dns_recv()
A Draw.c267 err = ip_output_if (q, src_ip, ipaddr, pcb->ttl, pcb->tos, pcb->protocol, netif); in raw_sendto()
343 pcb->ttl = RAW_TTL; in raw_new()
/components/net/lwip/lwip-2.0.3/src/core/
A Ddns.c209 u32_t ttl; member
226 u32_t ttl; member
1083 if ((entry->ttl == 0) || (--entry->ttl == 0)) { in dns_check_entry()
1115 dns_correct_response(u8_t idx, u32_t ttl) in dns_correct_response() argument
1126 entry->ttl = ttl; in dns_correct_response()
1127 if (entry->ttl > DNS_MAX_TTL) { in dns_correct_response()
1128 entry->ttl = DNS_MAX_TTL; in dns_correct_response()
1132 if (entry->ttl == 0) { in dns_correct_response()
1256 dns_correct_response(i, lwip_ntohl(ans.ttl)); in dns_recv()
1275 dns_correct_response(i, lwip_ntohl(ans.ttl)); in dns_recv()
A Dudp.c679 u8_t ttl; in udp_sendto_if_src_chksum() local
834 ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl); in udp_sendto_if_src_chksum()
836 ttl = pcb->ttl; in udp_sendto_if_src_chksum()
843 err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif); in udp_sendto_if_src_chksum()
1114 pcb->ttl = UDP_TTL; in udp_new()
/components/drivers/pci/
A Dpci.c50 rt_uint32_t devfn, rt_uint8_t pos, int cap, int *ttl) in pci_find_next_cap_ttl() argument
57 while ((*ttl)--) in pci_find_next_cap_ttl()
86 int ttl = RT_PCI_FIND_CAP_TTL; in pci_find_next_cap() local
88 return pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl); in pci_find_next_cap()
172 int ttl; in rt_pci_find_ext_next_capability() local
177 ttl = ((PCIE_REGMAX + 1) - (PCI_REGMAX + 1)) / 8; in rt_pci_find_ext_next_capability()
203 while (ttl-- > 0) in rt_pci_find_ext_next_capability()
/components/net/lwip/lwip-2.0.3/src/apps/mdns/
A Dmdns.c257 u32_t ttl; member
911 u32_t ttl, const u8_t *buf, size_t buf_length, struct mdns_domain *answer_domain) in mdns_add_answer() argument
930 …answer_len = domain->length + sizeof(type) + sizeof(klass) + sizeof(ttl) + sizeof(field16)/*rd_len… in mdns_add_answer()
946 field32 = lwip_htonl(ttl); in mdns_add_answer()
1074 u32_t ttl; in mdns_read_answer() local
1088 copied = pbuf_copy_partial(pkt->pbuf, &ttl, sizeof(ttl), pkt->parse_offset); in mdns_read_answer()
1089 if (copied != sizeof(ttl)) { in mdns_read_answer()
1093 answer->ttl = lwip_ntohl(ttl); in mdns_read_answer()
1568 if (match && (ans.ttl > (mdns->dns_ttl / 2))) { in mdns_handle_question()
1622 if (match && (ans.ttl > (service->dns_ttl / 2))) { in mdns_handle_question()
[all …]

Completed in 72 milliseconds

12