Home
last modified time | relevance | path

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

12

/dragonfly/contrib/tcpdump/
H A Dprint-ip.c328 uint8_t ip_tos, ip_ttl, ip_proto; in ip_print() local
410 ip_ttl = GET_U_1(ip->ip_ttl); in ip_print()
411 if (ip_ttl >= 1) in ip_print()
412 ND_PRINT(", ttl %u", ip_ttl); in ip_print()
485 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
/dragonfly/sys/net/pf/
H A Dpf_norm.c1035 if (r->min_ttl && h->ip_ttl < r->min_ttl) { in pf_normalize_ip()
1036 u_int16_t ip_ttl = h->ip_ttl; in pf_normalize_ip() local
1038 h->ip_ttl = r->min_ttl; in pf_normalize_ip()
1039 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_normalize_ip()
1067 u_int16_t ip_ttl = h->ip_ttl; in pf_normalize_ip() local
1069 h->ip_ttl = r->min_ttl; in pf_normalize_ip()
1070 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0); in pf_normalize_ip()
1426 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_init()
1529 if (h->ip_ttl > src->scrub->pfss_ttl) in pf_normalize_tcp_stateful()
1530 src->scrub->pfss_ttl = h->ip_ttl; in pf_normalize_tcp_stateful()
[all …]
H A Dpf_osfp.c140 fp.fp_ttl = ip->ip_ttl; in pf_osfp_fingerprint_hdr()
H A Dif_pfsync.c499 if (ip->ip_ttl != PFSYNC_DFLTTL) { in pfsync_input()
1727 ip->ip_ttl = PFSYNC_DFLTTL; in pfsync_sendout_mbuf()
/dragonfly/usr.sbin/traceroute/
H A Dtraceroute.c640 printf(" (%u)", ip->ip_ttl); in main()
644 if (ip->ip_ttl <= 1) in main()
658 if (ip->ip_ttl <= 1) in main()
906 ip->ip_ttl = ttl; in send_probe()
/dragonfly/tools/tools/net80211/wesside/dics/
H A Ddics.c179 *ttl = iph->ip_ttl;
244 iph->ip_ttl = TTLSENT; in send_stuff()
/dragonfly/sys/netinet/
H A Dip.h76 u_char ip_ttl; /* time to live */ member
H A Dip_flow.c237 if (m->m_pkthdr.len > ifp->if_mtu || ip->ip_ttl <= IPTTLDEC) in ipflow_fastforward()
256 ip->ip_ttl -= IPTTLDEC; in ipflow_fastforward()
H A Draw_ip.c189 if (last && ip->ip_ttl < last->inp_ip_minttl) { in rip_input()
251 ip->ip_ttl = inp->inp_ip_ttl; in rip_output()
H A Dip_output.c307 ip->ip_ttl = 1; in ip_output()
357 ip->ip_ttl = imo->imo_multicast_ttl; in ip_output()
365 ip->ip_ttl = IP_DEFAULT_MULTICAST_TTL; in ip_output()
450 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { in ip_output()
H A Din_gif.c166 iphdr.ip_ttl = ip_gif_ttl; in in_gif_output()
H A Dip_input.c2006 ip->ip_src.s_addr, pkt_dst.s_addr, ip->ip_ttl); in ip_forward()
2029 if (!ipstealth && ip->ip_ttl <= IPTTLDEC) { in ip_forward()
2071 ip->ip_ttl -= IPTTLDEC; in ip_forward()
2212 *mp = sbcreatecontrol(&ip->ip_ttl, sizeof(u_char), in ip_savecontrol()
H A Dudp_usrreq.c620 if (ip->ip_ttl < inp->inp_ip_minttl) in udp_input()
1111 ((struct ip *)ui)->ip_ttl = inp->inp_ip_ttl; /* XXX */ in udp_send()
H A Dip_carp.c982 if (ip->ip_ttl != CARP_DFLTTL) { in carp_proto_input()
985 ip->ip_ttl, CARP_DFLTTL, ifp->if_xname); in carp_proto_input()
1381 ip->ip_ttl = CARP_DFLTTL; in carp_send_ad()
/dragonfly/sys/netproto/mpls/
H A Dmpls_output.c69 ttl = ip->ip_ttl; in mpls_output()
/dragonfly/contrib/wpa_supplicant/src/common/
H A Ddhcp.h22 #define ttl ip_ttl
/dragonfly/sbin/dhclient/
H A Dpacket.c122 ip.ip_ttl = 16; in assemble_udp_ip_header()
/dragonfly/stand/lib/
H A Dudp.c89 ip->ip_ttl = IP_TTL; /* char */ in sendudp()
/dragonfly/sys/net/ip_mroute/
H A Dip_mroute.c1187 if (ip->ip_ttl < 255) in X_ip_mforward()
1188 ip->ip_ttl++; /* compensate for -1 in *_send routines */ in X_ip_mforward()
1211 if (ip->ip_ttl <= 1 || ntohl(ip->ip_dst.s_addr) <= INADDR_MAX_LOCAL_GROUP) in X_ip_mforward()
1569 if ((rt->mfc_ttls[vifi] > 0) && (ip->ip_ttl > rt->mfc_ttls[vifi])) { in ip_mdq()
1690 --ip->ip_ttl; in encap_send()
1938 imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1; in tbf_send_packet()
2868 --ip->ip_ttl;
/dragonfly/sbin/ping/
H A Dping.c577 ip->ip_ttl = ttl; in main()
1021 printf(" ttl=%d", ip->ip_ttl); in pr_pack()
1507 printf(" %02x %02x %04x", ip->ip_ttl, ip->ip_p, ntohs(ip->ip_sum)); in pr_iph()
/dragonfly/sys/net/stf/
H A Dif_stf.c407 ip->ip_ttl = ip_stf_ttl; in stf_output_serialized()
/dragonfly/tools/tools/net80211/w00t/redir/
H A Dredir.c300 ih->ip_ttl = 69; in send_header()
/dragonfly/tools/tools/netrate/pktgen/
H A Dpktgen.c533 ip->ip_ttl = 64; /* XXX */ in pktgen_start_ifsq_handler()
/dragonfly/sys/net/gre/
H A Dif_gre.c410 ((struct ip*)gh)->ip_ttl = GRE_TTL; in gre_output_serialized()

12