Home
last modified time | relevance | path

Searched refs:ip_ttl (Results 1 – 25 of 73) sorted by relevance

123

/freebsd-14-stable/contrib/tcpdump/
HDprint-ip.c326 uint8_t ip_tos, ip_ttl, ip_proto; in ip_print() local
396 ip_ttl = GET_U_1(ip->ip_ttl); in ip_print()
397 if (ip_ttl >= 1) in ip_print()
398 ND_PRINT(", ttl %u", ip_ttl); in ip_print()
474 off & IP_MF, GET_U_1(ip->ip_ttl), nh, bp); in ip_print()
HDip.h63 nd_uint8_t ip_ttl; /* time to live */ member
/freebsd-14-stable/sys/compat/linuxkpi/common/include/linux/
HDip.h49 uint8_t ip_ttl; /* (u) */ member
/freebsd-14-stable/stand/libsa/
HDip.c74 uint8_t ip_ttl; member
113 ip->ip_ttl = IPDEFTTL; /* char */ in sendip()
307 ipr->ip_ttl = MAXTTL; in readipv4()
/freebsd-14-stable/sbin/ipf/ipsend/
HDiptests.c112 ip->ip_ttl = 60; in ip_test1()
421 ip->ip_ttl = 255; in ip_test1()
427 ip->ip_ttl = 128; in ip_test1()
433 ip->ip_ttl = 0; in ip_test1()
557 ip->ip_ttl = 60; in ip_test3()
753 ip->ip_ttl = 60; in ip_test4()
1256 ip->ip_ttl = 60; in ip_test6()
HDip.c125 if (!ip->ip_ttl) in send_ip()
126 ip->ip_ttl = 60; in send_ip()
HDresend.c47 printf("ttl %d p %d src %s", ip->ip_ttl, ip->ip_p, in dumppacket()
/freebsd-14-stable/contrib/traceroute/
HDrip_output.c47 ip->ip_ttl = MAXTTL;
/freebsd-14-stable/tests/sys/netinet/libalias/
HDutil.c103 p->ip_ttl = IPDEFTTL; in ip_packet()
/freebsd-14-stable/sys/netinet/
HDip.h68 u_char ip_ttl; /* time to live */ member
HDip_fastfwd.c354 if (ip->ip_ttl <= IPTTLDEC) { in ip_tryforward()
364 ip->ip_ttl -= IPTTLDEC; in ip_tryforward()
HDip_output.c432 ip->ip_ttl = 1; in ip_output()
446 ip->ip_ttl = 1; in ip_output()
556 ip->ip_ttl = imo->imo_multicast_ttl; in ip_output()
563 ip->ip_ttl = IP_DEFAULT_MULTICAST_TTL; in ip_output()
630 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { in ip_output()
HDip_input.c944 ip->ip_ttl <= IPTTLDEC) { in ip_forward()
995 ip->ip_ttl -= IPTTLDEC; in ip_forward()
1215 *mp = sbcreatecontrol(&ip->ip_ttl, sizeof(u_char), IP_RECVTTL, in ip_savecontrol()
HDip_mroute.c1339 if (ip->ip_ttl < MAXTTL) in X_ip_mforward()
1340 ip->ip_ttl++; /* compensate for -1 in *_send routines */ in X_ip_mforward()
1350 if (ip->ip_ttl <= 1 || IN_LOCAL_GROUP(ntohl(ip->ip_dst.s_addr))) { in X_ip_mforward()
1665 if ((rt->mfc_ttls[vifi] > 0) && (ip->ip_ttl > rt->mfc_ttls[vifi])) { in ip_mdq()
1776 imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1; in send_packet()
2328 --ip->ip_ttl; in pim_register_prepare()
HDtcp_syncache.c1379 int win, ip_ttl, ip_tos; in syncache_add() local
1410 ip_ttl = in6_selecthlim(inp, NULL); in syncache_add()
1424 ip_ttl = inp->inp_ip_ttl; in syncache_add()
1647 sc->sc_ip_ttl = ip_ttl; in syncache_add()
1881 ip->ip_ttl = sc->sc_ip_ttl; in syncache_respond()
HDin_gif.c289 ip->ip_ttl = V_ip_gif_ttl; in in_gif_output()
/freebsd-14-stable/tools/tools/net80211/wesside/dics/
HDdics.c177 *ttl = iph->ip_ttl;
242 iph->ip_ttl = TTLSENT; in send_stuff()
/freebsd-14-stable/sys/netpfil/pf/
HDpf_norm.c1517 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_init()
1634 if (h->ip_ttl > src->scrub->pfss_ttl) in pf_normalize_tcp_stateful()
1635 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_stateful()
1636 h->ip_ttl = src->scrub->pfss_ttl; in pf_normalize_tcp_stateful()
2286 if (pd->act.min_ttl && h->ip_ttl < pd->act.min_ttl) { in pf_scrub_ip()
2287 u_int16_t ip_ttl = h->ip_ttl; in pf_scrub_ip() local
2289 h->ip_ttl = pd->act.min_ttl; in pf_scrub_ip()
2290 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_scrub_ip()
/freebsd-14-stable/sys/netpfil/ipfw/nat64/
HDnat64_translate.c518 ip->ip_ttl = ip6->ip6_hlim; in nat64_init_ip4hdr()
520 ip->ip_ttl -= IPV6_HLIMDEC; in nat64_init_ip4hdr()
846 oip->ip_ttl = V_ip_defttl; in nat64_icmp_reflect()
1110 eip6->ip6_hlim = ip.ip_ttl; in nat64_icmp_translate()
1239 if (*V_nat64ipstealth == 0 && ip->ip_ttl <= IPTTLDEC) { in nat64_do_handle_ip4()
1286 ip6.ip6_hlim = ip->ip_ttl; in nat64_do_handle_ip4()
/freebsd-14-stable/contrib/wpa/src/common/
HDdhcp.h23 #define ttl ip_ttl
/freebsd-14-stable/sbin/dhclient/
HDpacket.c123 ip.ip_ttl = 128; in assemble_udp_ip_header()
/freebsd-14-stable/contrib/netbsd-tests/net/icmp/
HDt_ping.c389 ip->ip_ttl = IPDEFTTL; in ATF_TC_BODY()
/freebsd-14-stable/tools/bus_space/examples/
HDam79c900_diag.py296 pkt.ip_ttl = 64
/freebsd-14-stable/tests/sys/netinet/
HDip_reass_test.c96 ip->ip_ttl = 1; in alloc_lopacket()
/freebsd-14-stable/sbin/ping/
HDping.c708 ip.ip_ttl = ttl; in ping()
1220 (void)printf(" ttl=%d", ip.ip_ttl); in pr_pack()
1585 (void)printf(" %02x %02x %04x", ip->ip_ttl, ip->ip_p, in pr_iph()

123