Home
last modified time | relevance | path

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

123

/freebsd/contrib/tcpdump/
H A Dprint-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()
H A Dip.h63 nd_uint8_t ip_ttl; /* time to live */ member
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dip.h49 uint8_t ip_ttl; /* (u) */ member
/freebsd/stand/libsa/
H A Dip.c74 uint8_t ip_ttl; member
113 ip->ip_ttl = IPDEFTTL; /* char */ in sendip()
307 ipr->ip_ttl = MAXTTL; in readipv4()
/freebsd/sbin/ipf/ipsend/
H A Diptests.c108 ip->ip_ttl = 60; in ip_test1()
417 ip->ip_ttl = 255; in ip_test1()
423 ip->ip_ttl = 128; in ip_test1()
429 ip->ip_ttl = 0; in ip_test1()
553 ip->ip_ttl = 60; in ip_test3()
749 ip->ip_ttl = 60; in ip_test4()
1250 ip->ip_ttl = 60; in ip_test6()
H A Dip.c121 if (!ip->ip_ttl) in send_ip()
122 ip->ip_ttl = 60; in send_ip()
H A Dresend.c43 printf("ttl %d p %d src %s", ip->ip_ttl, ip->ip_p, in dumppacket()
/freebsd/tests/sys/netinet/libalias/
H A Dutil.c104 p->ip_ttl = IPDEFTTL; in ip_packet()
/freebsd/sys/netpfil/pf/
H A Dpf_norm.c1449 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_init()
1566 if (h->ip_ttl > src->scrub->pfss_ttl) in pf_normalize_tcp_stateful()
1567 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_stateful()
1568 h->ip_ttl = src->scrub->pfss_ttl; in pf_normalize_tcp_stateful()
2217 h->ip_ttl < pd->act.min_ttl) { in pf_scrub()
2218 u_int16_t ip_ttl = h->ip_ttl; in pf_scrub() local
2220 h->ip_ttl = pd->act.min_ttl; in pf_scrub()
2221 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_scrub()
/freebsd/sys/netinet/
H A Dip.h65 u_char ip_ttl; /* time to live */ member
H A Dip_fastfwd.c352 if (ip->ip_ttl <= IPTTLDEC) { in ip_tryforward()
362 ip->ip_ttl -= IPTTLDEC; in ip_tryforward()
H A Dip_output.c436 ip->ip_ttl = 1; in ip_output()
450 ip->ip_ttl = 1; in ip_output()
565 ip->ip_ttl = imo->imo_multicast_ttl; in ip_output()
572 ip->ip_ttl = IP_DEFAULT_MULTICAST_TTL; in ip_output()
639 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { in ip_output()
H A Dip_mroute.c1356 if (ip->ip_ttl < MAXTTL) in X_ip_mforward()
1357 ip->ip_ttl++; /* compensate for -1 in *_send routines */ in X_ip_mforward()
1367 if (ip->ip_ttl <= 1 || IN_LOCAL_GROUP(ntohl(ip->ip_dst.s_addr))) { in X_ip_mforward()
1683 if ((rt->mfc_ttls[vifi] > 0) && (ip->ip_ttl > rt->mfc_ttls[vifi])) { in ip_mdq()
1795 imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1; in send_packet()
2347 --ip->ip_ttl; in pim_register_prepare()
H A Dip_input.c936 ip->ip_ttl <= IPTTLDEC) { in ip_forward()
999 ip->ip_ttl -= IPTTLDEC; in ip_forward()
1219 *mp = sbcreatecontrol(&ip->ip_ttl, sizeof(u_char), IP_RECVTTL, in ip_savecontrol()
H A Dtcp_syncache.c1369 int win, ip_ttl, ip_tos; in syncache_add() local
1400 ip_ttl = in6_selecthlim(inp, NULL); in syncache_add()
1414 ip_ttl = inp->inp_ip_ttl; in syncache_add()
1637 sc->sc_ip_ttl = ip_ttl; in syncache_add()
1871 ip->ip_ttl = sc->sc_ip_ttl; in syncache_respond()
H A Din_gif.c289 ip->ip_ttl = V_ip_gif_ttl; in in_gif_output()
/freebsd/tools/tools/net80211/wesside/dics/
H A Ddics.c177 *ttl = iph->ip_ttl;
242 iph->ip_ttl = TTLSENT; in send_stuff()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_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/contrib/wpa/src/common/
H A Ddhcp.h23 #define ttl ip_ttl
/freebsd/sbin/dhclient/
H A Dpacket.c123 ip.ip_ttl = 128; in assemble_udp_ip_header()
/freebsd/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c389 ip->ip_ttl = IPDEFTTL; in ATF_TC_BODY()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c1091 if (ip->ip_ttl <= 1) in main()
1106 if (ip->ip_ttl <= 1) in main()
1257 outip->ip_ttl = ttl; in send_probe()
/freebsd/sbin/ping/
H A Dping.c696 ip.ip_ttl = ttl; in ping()
1208 (void)printf(" ttl=%d", ip.ip_ttl); in pr_pack()
1573 (void)printf(" %02x %02x %04x", ip->ip_ttl, ip->ip_p, in pr_iph()
/freebsd/tools/bus_space/examples/
H A Dam79c900_diag.py296 pkt.ip_ttl = 64
/freebsd/tests/sys/netinet/
H A Dip_reass_test.c95 ip->ip_ttl = 1; in alloc_lopacket()

123