Home
last modified time | relevance | path

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

12

/freebsd-14-stable/sbin/ipf/libipf/
HDprintpacket.c12 #ifndef IP_OFFMASK
13 # define IP_OFFMASK 0x3fff macro
74 if (off & IP_OFFMASK) in printpacket()
77 if (!(off & IP_OFFMASK)) in printpacket()
82 if (!(off & IP_OFFMASK)) { in printpacket()
/freebsd-14-stable/stand/libsa/
HDip.c159 if ((ntohs(p->ipq_hdr->ip_off) & IP_OFFMASK) < in ip_reasm_add()
160 (ntohs(ip->ip_off) & IP_OFFMASK)) { in ip_reasm_add()
272 (ntohs(ip->ip_off) & IP_OFFMASK) == 0) { in readipv4()
320 ipr->ip_total_size = (8 * (ntohs(ip->ip_off) & IP_OFFMASK)); in readipv4()
348 if ((ntohs(ipq->ipq_hdr->ip_off) & IP_OFFMASK) != n / 8) { in readipv4()
/freebsd-14-stable/contrib/tcpdump/
HDip.h62 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ macro
HDprint-ip.c407 (off & IP_OFFMASK) * 8, in ip_print()
454 if ((off & IP_OFFMASK) == 0) { in ip_print()
/freebsd-14-stable/sys/netinet/
HDip.h67 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ macro
HDin_rss.c246 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) in rss_mbuf_software_hash_v4()
HDip_input.c847 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { in ip_input()
/freebsd-14-stable/sbin/ipf/ipmon/
HDipmon.c1141 off = ipoff & IP_OFFMASK; in print_ipflog()
1252 if (!(ipoff & IP_OFFMASK) && in print_ipflog()
1267 } else if (!(ipoff & IP_OFFMASK) && in print_ipflog()
1289 if (ipoff & IP_OFFMASK) { in print_ipflog()
1293 (ipoff & IP_OFFMASK) << 3, in print_ipflog()
1306 if (off & IP_OFFMASK) in print_ipflog()
1309 plen - hl, (off & IP_OFFMASK) << 3, in print_ipflog()
/freebsd-14-stable/sbin/dhclient/
HDbpf.c121 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, IP_MF|IP_OFFMASK, 6, 0),
220 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, IP_MF|IP_OFFMASK, 10, 0),
/freebsd-14-stable/usr.sbin/ppp/
HDtcpmss.c174 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check()
HDip.c257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */ in FilterCheck()
605 frag = ntohs(pip->ip_off) & IP_OFFMASK; in PacketCheck()
/freebsd-14-stable/sys/net/
HDdebugnet_inet.c195 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) != 0) { in debugnet_handle_ip()
HDif_me.c593 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { in me_transmit()
/freebsd-14-stable/sys/netpfil/ipfw/
HDip_fw_log.c411 if (ipoff & (IP_MF | IP_OFFMASK)) in ipfw_log()
HDip_fw_pfil.c515 if (ntohs(ip->ip_off) & (IP_MF | IP_OFFMASK)) { in ipfw_divert()
HDip_fw2.c1755 offset = ntohs(ip->ip_off) & IP_OFFMASK; in ipfw_chk()
2004 ((ntohs(ip->ip_off) & ~IP_OFFMASK) in ipfw_chk()
3272 if ((ip_off & (IP_MF | IP_OFFMASK)) == 0) in ipfw_chk()
HDip_fw_nat.c415 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && in ipfw_nat()
/freebsd-14-stable/sys/netpfil/ipfilter/netinet/
HDip_compat.h406 #ifndef IP_OFFMASK
407 # define IP_OFFMASK 0x1fff macro
/freebsd-14-stable/sys/netpfil/pf/
HDpf_norm.c763 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
802 ip->ip_off & ~(IP_MF|IP_OFFMASK), 0); in pf_reassemble()
803 ip->ip_off &= ~(IP_MF|IP_OFFMASK); in pf_reassemble()
1044 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_normalize_ip()
HDpf_osfp.c109 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) in pf_osfp_fingerprint_hdr()
/freebsd-14-stable/sys/netipsec/
HDipsec.c506 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) in ipsec4_get_ulp()
514 if (ih.ip_off & htons(IP_MF | IP_OFFMASK)) in ipsec4_get_ulp()
/freebsd-14-stable/sys/netgraph/
HDng_checksum.c344 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK)) { in checksum_ipv4()
HDng_nat.c851 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && in ng_nat_rcvdata()
/freebsd-14-stable/sys/netpfil/ipfw/nat64/
HDnat64_translate.c575 offset = (ntohs(ip_off) & IP_OFFMASK) << 3; in nat64_fragment6()
1254 ip_off = ip->ip_off & htons(IP_OFFMASK | IP_MF); in nat64_do_handle_ip4()
/freebsd-14-stable/sys/netgraph/netflow/
HDng_netflow.c787 if ((ip != NULL) && ((ip->ip_off & htons(IP_OFFMASK)) == 0)) { in ng_netflow_rcvdata()

12