Home
last modified time | relevance | path

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

12

/freebsd/sbin/ipf/libipf/
H A Dprintpacket.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/stand/libsa/
H A Dip.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/contrib/tcpdump/
H A Dip.h62 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ macro
H A Dprint-ip.c407 (off & IP_OFFMASK) * 8, in ip_print()
454 if ((off & IP_OFFMASK) == 0) { in ip_print()
/freebsd/sys/netinet/
H A Dip.h64 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ macro
H A Din_rss.c246 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) in rss_mbuf_software_hash_v4()
H A Dip_input.c839 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { in ip_input()
/freebsd/sbin/ipf/ipmon/
H A Dipmon.c1138 off = ipoff & IP_OFFMASK; in print_ipflog()
1249 if (!(ipoff & IP_OFFMASK) && in print_ipflog()
1264 } else if (!(ipoff & IP_OFFMASK) && in print_ipflog()
1286 if (ipoff & IP_OFFMASK) { in print_ipflog()
1290 (ipoff & IP_OFFMASK) << 3, in print_ipflog()
1303 if (off & IP_OFFMASK) in print_ipflog()
1306 plen - hl, (off & IP_OFFMASK) << 3, in print_ipflog()
/freebsd/sbin/dhclient/
H A Dbpf.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/usr.sbin/ppp/
H A Dtcpmss.c174 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check()
H A Dip.c257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */ in FilterCheck()
605 frag = ntohs(pip->ip_off) & IP_OFFMASK; in PacketCheck()
/freebsd/sys/net/
H A Ddebugnet_inet.c195 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) != 0) { in debugnet_handle_ip()
H A Dif_me.c592 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { in me_transmit()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_compat.h404 #ifndef IP_OFFMASK
405 # define IP_OFFMASK 0x1fff macro
/freebsd/sys/netpfil/pf/
H A Dpf_norm.c755 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
809 ip->ip_off & ~(IP_MF|IP_OFFMASK), 0); in pf_reassemble()
810 ip->ip_off &= ~(IP_MF|IP_OFFMASK); in pf_reassemble()
1076 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_normalize_ip()
H A Dpf_osfp.c109 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) in pf_osfp_fingerprint_hdr()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_pfil.c515 if (ntohs(ip->ip_off) & (IP_MF | IP_OFFMASK)) { in ipfw_divert()
H A Dip_fw_log.c417 if (ipoff & (IP_MF | IP_OFFMASK)) in ipfw_log_syslog()
H A Dip_fw2.c1795 offset = ntohs(ip->ip_off) & IP_OFFMASK; in ipfw_chk()
2044 ((ntohs(ip->ip_off) & ~IP_OFFMASK) in ipfw_chk()
3398 if ((ip_off & (IP_MF | IP_OFFMASK)) == 0) in ipfw_chk()
H A Dip_fw_nat.c414 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && in ipfw_nat()
/freebsd/sys/netgraph/
H A Dng_checksum.c344 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK)) { in checksum_ipv4()
H A Dng_nat.c857 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && in ng_nat_rcvdata()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_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/sys/netgraph/netflow/
H A Dng_netflow.c787 if ((ip != NULL) && ((ip->ip_off & htons(IP_OFFMASK)) == 0)) { in ng_netflow_rcvdata()
H A Dnetflow.c696 if ((ip->ip_off & htons(IP_OFFMASK)) == 0) in ng_netflow_flow_add()

12