Home
last modified time | relevance | path

Searched refs:ip_off (Results 1 – 25 of 60) sorted by relevance

123

/f-stack/freebsd/netinet/
H A Dip_reass.c232 if (ip->ip_off & htons(IP_MF)) in ip_reass()
236 ip->ip_off = htons(ntohs(ip->ip_off) << 3); in ip_reass()
330 i = ntohs(ip->ip_off) + ntohs(ip->ip_len); in ip_reass()
368 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) in ip_reass()
382 ntohs(ip->ip_off); in ip_reass()
388 ip->ip_off = htons(ntohs(ip->ip_off) + i); in ip_reass()
403 ntohs(GETIP(q)->ip_off); q = nq) { in ip_reass()
404 i = (ntohs(ip->ip_off) + ntohs(ip->ip_len)) - in ip_reass()
405 ntohs(GETIP(q)->ip_off); in ip_reass()
408 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i); in ip_reass()
[all …]
H A Dip_output.c335 uint16_t ip_len, ip_off; in ip_output() local
367 ip_off = ntohs(ip->ip_off); in ip_output()
818 if ((ip_off & IP_DF) || in ip_output()
885 uint16_t ip_len, ip_off; in ip_fragment() local
888 ip_off = ntohs(ip->ip_off); in ip_fragment()
890 if (ip_off & IP_DF) { /* Fragmentation not allowed */ in ip_fragment()
1011 mhip->ip_off = ((off - hlen) >> 3) + ip_off; in ip_fragment()
1015 mhip->ip_off |= IP_MF; in ip_fragment()
1028 mhip->ip_off = htons(mhip->ip_off); in ip_fragment()
1046 ip->ip_off = htons(ip_off | IP_MF); in ip_fragment()
H A Dip_fastfwd.c204 uint16_t ip_len, ip_off; in ip_tryforward() local
422 ip_off = ntohs(ip->ip_off); in ip_tryforward()
457 if (ip_off & IP_DF) { in ip_tryforward()
H A Dip.h63 u_short ip_off; /* fragment offset field */ member
H A Dip_id.c252 if (V_ip_rfc6864 && (ip->ip_off & htons(IP_DF)) == htons(IP_DF)) in ip_fillid()
H A Din_rss.c255 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) in rss_mbuf_software_hash_v4()
H A Dip_icmp.c239 if (oip->ip_off & htons(~(IP_MF|IP_DF))) in icmp_error()
388 nip->ip_off = 0; in icmp_error()
H A Draw_ip.c483 ip->ip_off = htons(IP_DF); in rip_output()
485 ip->ip_off = htons(0); in rip_output()
/f-stack/freebsd/netpfil/pf/
H A Dpf_norm.c1030 int ip_off; in pf_normalize_ip() local
1082 u_int16_t ip_off = h->ip_off; in pf_normalize_ip() local
1084 h->ip_off &= htons(~IP_DF); in pf_normalize_ip()
1085 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_off, h->ip_off, 0); in pf_normalize_ip()
1102 ip_off = (ntohs(h->ip_off) & IP_OFFMASK) << 3; in pf_normalize_ip()
1136 u_int16_t ip_off = h->ip_off; in pf_normalize_ip() local
1138 h->ip_off &= htons(IP_DF); in pf_normalize_ip()
1139 h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_off, h->ip_off, 0); in pf_normalize_ip()
1991 u_int16_t ip_off = h->ip_off; in pf_scrub_ip() local
1993 h->ip_off &= htons(~IP_DF); in pf_scrub_ip()
[all …]
H A Dpf_osfp.c111 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) in pf_osfp_fingerprint_hdr()
120 if (ip->ip_off & htons(IP_DF)) in pf_osfp_fingerprint_hdr()
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c528 ip->ip_off |= htons(IP_MF); in nat64_init_ip4hdr()
530 ip->ip_off = htons(IP_DF); in nat64_init_ip4hdr()
539 uint16_t ip_off) in nat64_fragment6() argument
550 if (ip_off == 0 && plen <= mtu - hlen) { in nat64_fragment6()
570 if (ip_off != 0) { in nat64_fragment6()
576 offset = (ntohs(ip_off) & IP_OFFMASK) << 3; in nat64_fragment6()
804 if (ip->ip_off & ~ntohs(IP_MF|IP_DF)) { in nat64_icmp_reflect()
854 oip->ip_off = htons(IP_DF); in nat64_icmp_reflect()
1237 uint16_t ip_id, ip_off; in nat64_do_handle_ip4() local
1259 ip_off = ip->ip_off & htons(IP_OFFMASK | IP_MF); in nat64_do_handle_ip4()
[all …]
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c468 ip->ip_off = htons(V_path_mtu_discovery ? IP_DF : 0);
704 u_short ip_off; local
843 ip_off = ntohs(ip->ip_off);
844 if (ip_off & IP_DF) {
883 mhip->ip_off = ((off - hlen) >> 3) + ip_off;
887 mhip->ip_off |= IP_MF;
897 mhip->ip_off = htons((u_short)mhip->ip_off);
908 ip->ip_off = htons((u_short)IP_MF);
1323 fin->fin_ip->ip_off = ntohs(fin->fin_ip->ip_off);
H A Dip_auth.c519 bo = ip->ip_off;
520 ip->ip_off = htons(bo);
/f-stack/freebsd/net/
H A Ddebugnet_inet.c172 ip->ip_off = ntohs(ip->ip_off); in debugnet_handle_ip()
193 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) != 0) { in debugnet_handle_ip()
487 ip->ip_off = htons(IP_DF); in debugnet_ip_output()
H A Dif_spppfr.c323 if (! (ip->ip_off & ~IP_DF) && ip->ip_len > 400 && in sppp_fr_header()
/f-stack/tools/compat/include/netinet/
H A Dip.h63 u_short ip_off; /* fragment offset field */ member
/f-stack/freebsd/net/altq/
H A Daltq_subr.c1122 u_short ip_off; local
1130 ip_off = ntohs(ip->ip_off);
1132 if (ip_off & IP_OFFMASK) {
1206 if (ip_off & IP_MF)
1876 if ((ntohs(ip->ip_off) & IP_MF) == 0)
/f-stack/dpdk/drivers/net/dpaa/fmlib/
H A Dfm_ext.h110 volatile uint8_t ip_off[2]; /**< IP offset */ member
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipip.h74 outip4->ip_off = 0; in ipip_outbound()
/f-stack/dpdk/drivers/net/dpaa/
H A Ddpaa_rxtx.h247 uint8_t ip_off[2]; /**< IP offset */ member
H A Ddpaa_rxtx.c223 m->tx_offload = annot->parse.ip_off[0]; in dpaa_eth_packet_info()
224 m->tx_offload |= (annot->parse.l4_off - annot->parse.ip_off[0]) in dpaa_eth_packet_info()
307 prs->ip_off[0] = mbuf->l2_len; in dpaa_checksum_offload()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw2.c574 ip->ip_off = htons(0); in ipfw_send_abort()
748 h->ip_off = htons(0); in ipfw_send_pkt()
1717 offset = ntohs(ip->ip_off) & IP_OFFMASK; in ipfw_chk()
1966 ((ntohs(ip->ip_off) & ~IP_OFFMASK) in ipfw_chk()
3164 int ip_off; in ipfw_chk() local
3170 ip_off = ntohs(ip->ip_off); in ipfw_chk()
3173 if ((ip_off & (IP_MF | IP_OFFMASK)) == 0) in ipfw_chk()
H A Dip_fw_log.c401 ipoff = ntohs(ip->ip_off); in ipfw_log()
/f-stack/freebsd/netipsec/
H A Dipsec_output.c916 setdf = (ip->ip_off & htons(IP_DF)) != 0; in ipsec_encap()
952 ip->ip_off = setdf ? htons(IP_DF): 0; in ipsec_encap()
/f-stack/freebsd/netinet/libalias/
H A Dalias.c1348 if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) { in LibAliasInLocked()
1391 if (ntohs(pip->ip_off) & IP_MF) { in LibAliasInLocked()
1502 if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) { in LibAliasOutLocked()

123