Home
last modified time | relevance | path

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

123

/freebsd/contrib/tcpdump/
H A Dprint-ip.c326 uint8_t ip_tos, ip_ttl, ip_proto; in ip_print() local
401 ip_ttl = GET_U_1(ip->ip_ttl); in ip_print()
402 if (ip_ttl >= 1) in ip_print()
403 ND_PRINT(", ttl %u", ip_ttl); in ip_print()
482 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.c75 uint8_t ip_ttl; member
107 ip->ip_ttl = IPDEFTTL; /* char */ in sendip()
287 ipr->ip_ttl = MAXTTL; in readipv4()
/freebsd/sbin/ipf/ipsend/
H A Diptests.c107 ip->ip_ttl = 60; in ip_test1()
416 ip->ip_ttl = 255; in ip_test1()
422 ip->ip_ttl = 128; in ip_test1()
428 ip->ip_ttl = 0; in ip_test1()
552 ip->ip_ttl = 60; in ip_test3()
748 ip->ip_ttl = 60; in ip_test4()
1249 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/netinet/
H A Dip.h66 u_char ip_ttl; /* time to live */ member
H A Dip_fastfwd.c356 if (ip->ip_ttl <= IPTTLDEC) { in ip_tryforward()
369 ip->ip_ttl -= IPTTLDEC; in ip_tryforward()
H A Dip_output.c435 ip->ip_ttl = 1; in ip_output()
449 ip->ip_ttl = 1; in ip_output()
567 ip->ip_ttl = imo->imo_multicast_ttl; in ip_output()
572 ip->ip_ttl = IP_DEFAULT_MULTICAST_TTL; in ip_output()
640 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { in ip_output()
H A Dip_input.c962 ip->ip_ttl <= IPTTLDEC) { in ip_forward()
1025 ip->ip_ttl -= IPTTLDEC; in ip_forward()
1245 *mp = sbcreatecontrol(&ip->ip_ttl, sizeof(u_char), IP_RECVTTL, in ip_savecontrol()
H A Dip_mroute.c1394 if (ip->ip_ttl < MAXTTL) in X_ip_mforward()
1395 ip->ip_ttl++; /* compensate for -1 in *_send routines */ in X_ip_mforward()
1405 if (ip->ip_ttl <= 1 || IN_LOCAL_GROUP(ntohl(ip->ip_dst.s_addr))) { in X_ip_mforward()
1732 if ((rt->mfc_ttls[vifi] > 0) && (ip->ip_ttl > rt->mfc_ttls[vifi])) { in ip_mdq()
1849 imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1; in send_packet()
2413 --ip->ip_ttl; in pim_register_prepare()
H A Dtcp_syncache.c1405 int win, ip_ttl, ip_tos; in syncache_add() local
1437 ip_ttl = in6_selecthlim(inp, NULL); in syncache_add()
1451 ip_ttl = inp->inp_ip_ttl; in syncache_add()
1678 sc->sc_ip_ttl = ip_ttl; in syncache_add()
1924 ip->ip_ttl = sc->sc_ip_ttl; in syncache_respond()
H A Draw_ip.c184 if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip->ip_ttl) in rip_append()
457 ip->ip_ttl = inp->inp_ip_ttl; in rip_send()
/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/pf/
H A Dpf_norm.c1533 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_init()
1633 if (h->ip_ttl > src->scrub->pfss_ttl) in pf_normalize_tcp_stateful()
1634 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_stateful()
1635 h->ip_ttl = src->scrub->pfss_ttl; in pf_normalize_tcp_stateful()
2244 h->ip_ttl < pd->act.min_ttl) { in pf_scrub()
2245 u_int16_t ip_ttl = h->ip_ttl; in pf_scrub() local
2247 pd->ttl = h->ip_ttl = pd->act.min_ttl; in pf_scrub()
2248 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_scrub()
/freebsd/tests/sys/netinet/
H A Draw.c142 .ip.ip_ttl = 16, in ATF_TC_BODY()
253 .ip.ip_ttl = 16, in ATF_TC_BODY()
H A Dip_reass_test.c99 ip->ip_ttl = 1; in alloc_lopacket()
/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/cddl/lib/libdtrace/
H A Dip.d279 ipv4_ttl = p == NULL ? 0 : p->ip_ttl;
/freebsd/tools/bus_space/examples/
H A Dam79c900_diag.py296 pkt.ip_ttl = 64

123