Home
last modified time | relevance | path

Searched refs:IP_OFFMASK (Results 1 – 25 of 38) sorted by relevance

12

/freebsd-13.1/sbin/ipf/libipf/
H A Dprintpacket.c13 #ifndef IP_OFFMASK
14 # define IP_OFFMASK 0x3fff macro
75 if (off & IP_OFFMASK) in printpacket()
78 if (!(off & IP_OFFMASK)) in printpacket()
83 if (!(off & IP_OFFMASK)) { in printpacket()
/freebsd-13.1/stand/libsa/
H A Dip.c162 if ((ntohs(p->ipq_hdr->ip_off) & IP_OFFMASK) < in ip_reasm_add()
163 (ntohs(ip->ip_off) & IP_OFFMASK)) { in ip_reasm_add()
275 (ntohs(ip->ip_off) & IP_OFFMASK) == 0) { in readipv4()
323 ipr->ip_total_size = (8 * (ntohs(ip->ip_off) & IP_OFFMASK)); in readipv4()
351 if ((ntohs(ipq->ipq_hdr->ip_off) & IP_OFFMASK) != n / 8) { in readipv4()
/freebsd-13.1/contrib/tcpdump/
H A Dip.h62 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ macro
H A Dprint-ip.c397 ipds->off & (IP_MF|IP_OFFMASK)); in ip_print_demux()
403 ipds->off & (IP_MF|IP_OFFMASK)); in ip_print_demux()
409 ipds->off & (IP_MF|IP_OFFMASK)); in ip_print_demux()
/freebsd-13.1/sys/netinet/
H A Dip.h67 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ macro
H A Din_rss.c255 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) in rss_mbuf_software_hash_v4()
H A Dip_input.c817 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { in ip_input()
/freebsd-13.1/usr.sbin/ppp/
H A Dtcpmss.c163 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check()
H A Dip.c259 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */ in FilterCheck()
607 frag = ntohs(pip->ip_off) & IP_OFFMASK; in PacketCheck()
/freebsd-13.1/sbin/ipf/ipmon/
H A Dipmon.c1149 off = ipoff & IP_OFFMASK; in print_ipflog()
1260 if (!(ipoff & IP_OFFMASK) && in print_ipflog()
1275 } else if (!(ipoff & IP_OFFMASK) && in print_ipflog()
1297 if (ipoff & IP_OFFMASK) { in print_ipflog()
1301 (ipoff & IP_OFFMASK) << 3, in print_ipflog()
1314 if (off & IP_OFFMASK) in print_ipflog()
1317 plen - hl, (off & IP_OFFMASK) << 3, in print_ipflog()
/freebsd-13.1/sbin/dhclient/
H A Dbpf.c123 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, IP_MF|IP_OFFMASK, 6, 0),
222 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, IP_MF|IP_OFFMASK, 10, 0),
/freebsd-13.1/sys/netpfil/ipfw/
H A Dip_fw_log.c401 if (ipoff & (IP_MF | IP_OFFMASK)) in ipfw_log()
H A Dip_fw_pfil.c476 if (ntohs(ip->ip_off) & (IP_MF | IP_OFFMASK)) { in ipfw_divert()
H A Dip_fw2.c1738 offset = ntohs(ip->ip_off) & IP_OFFMASK; in ipfw_chk()
1987 ((ntohs(ip->ip_off) & ~IP_OFFMASK) in ipfw_chk()
3202 if ((ip_off & (IP_MF | IP_OFFMASK)) == 0) in ipfw_chk()
H A Dip_fw_nat.c416 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && in ipfw_nat()
/freebsd-13.1/sys/net/
H A Ddebugnet_inet.c193 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) != 0) { in debugnet_handle_ip()
H A Dif_me.c590 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { in me_transmit()
/freebsd-13.1/sys/netpfil/pf/
H A Dpf_norm.c762 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
801 ip->ip_off & ~(IP_MF|IP_OFFMASK), 0); in pf_reassemble()
802 ip->ip_off &= ~(IP_MF|IP_OFFMASK); in pf_reassemble()
1031 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_normalize_ip()
H A Dpf_osfp.c111 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) in pf_osfp_fingerprint_hdr()
/freebsd-13.1/sys/netpfil/ipfilter/netinet/
H A Dip_compat.h406 #ifndef IP_OFFMASK
407 # define IP_OFFMASK 0x1fff macro
/freebsd-13.1/sys/netipsec/
H A Dipsec.c503 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) in ipsec4_get_ulp()
511 if (ih.ip_off & htons(IP_MF | IP_OFFMASK)) in ipsec4_get_ulp()
/freebsd-13.1/sys/netgraph/
H A Dng_checksum.c346 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK)) { in checksum_ipv4()
H A Dng_nat.c853 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && in ng_nat_rcvdata()
/freebsd-13.1/sys/netgraph/netflow/
H A Dng_netflow.c780 if ((ip != NULL) && ((ip->ip_off & htons(IP_OFFMASK)) == 0)) { in ng_netflow_rcvdata()
/freebsd-13.1/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c576 offset = (ntohs(ip_off) & IP_OFFMASK) << 3; in nat64_fragment6()
1255 ip_off = ip->ip_off & htons(IP_OFFMASK | IP_MF); in nat64_do_handle_ip4()

12