Home
last modified time | relevance | path

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

123

/netbsd-src/sys/net/npf/
H A Dnpf_ext_normalize.c107 uint16_t ip_off = ip->ip_off; in npf_normalize_ip4() local
123 if (np->n_no_df && (ip_off & htons(IP_DF)) != 0) { in npf_normalize_ip4()
124 uint16_t nip_off = ip_off & ~htons(IP_DF); in npf_normalize_ip4()
126 cksum = npf_fixup16_cksum(cksum, ip_off, nip_off); in npf_normalize_ip4()
127 ip->ip_off = nip_off; in npf_normalize_ip4()
/netbsd-src/tests/net/net/
H A Dt_ip_reass.c122 ip->ip_off = 0; in alloc_lopacket()
255 ip->ip_off = htons(0x10); in ATF_TC_BODY()
261 ip->ip_off = htons(0x20); in ATF_TC_BODY()
267 ip->ip_off = htons(0x8); in ATF_TC_BODY()
273 ip->ip_off = htons(0x10); in ATF_TC_BODY()
285 packet2->hdr.ip_off = htons(IP_MF | 0x20); in ATF_TC_BODY()
338 ip->ip_off = htons(IP_MF | 0x10); in ATF_TC_BODY()
344 ip->ip_off = htons(0x10); in ATF_TC_BODY()
397 ip->ip_off = htons(IP_MF | 0x1fff); in ATF_TC_BODY()
403 ip->ip_off = htons(0x1fff); in ATF_TC_BODY()
/netbsd-src/external/bsd/ipf/dist/ipsend/
H A Diptests.c146 ip->ip_off = 0;
297 ip->ip_off = htons(IP_MF);
305 ip->ip_off = htons(IP_MF);
313 ip->ip_off = htons(0xa000);
321 ip->ip_off = htons(0x0100);
339 ip->ip_off = htons(IP_MF);
350 ip->ip_off = htons(IP_MF | (i >> 3));
357 ip->ip_off = htons(i >> 3);
370 ip->ip_off = htons(IP_MF);
384 ip->ip_off = htons(IP_MF | (i >> 3));
[all …]
H A Dip.c208 ip->ip_off |= htons(IP_MF);
214 ip->ip_off ^= htons(IP_MF);
219 ip->ip_off &= htons(0xe000);
220 ip->ip_off |= htons(sent >> 3);
231 if (!(ntohs(ip->ip_off) & IP_MF))
233 else if (!(ip->ip_off & htons(0x1fff)))
282 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
H A Dresend.c50 if (ip->ip_off & 0x3fff)
51 printf("frag @%#x ", (ip->ip_off & 0x1fff) << 3);
/netbsd-src/sys/dist/pf/net/
H A Dpf_norm.c356 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3)
366 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
428 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3)); in pf_reassemble()
429 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in pf_reassemble()
446 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) + in pf_reassemble()
566 u_int16_t off = ntohs(h->ip_off) << 3; in pf_fragcache()
686 h->ip_off = htons(ntohs(h->ip_off) + in pf_fragcache()
864 int mff = (ntohs(h->ip_off) & IP_MF);
866 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
908 if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) {
[all …]
/netbsd-src/sys/netipsec/
H A Dxform_ipip.c391 offsetof(struct ip, ip_off), in ipip_output()
392 sizeof(uint16_t), &ipo->ip_off); in ipip_output()
393 ipo->ip_off &= ~ htons(IP_DF | IP_MF | IP_OFFMASK); in ipip_output()
405 ipo->ip_off = 0; in ipip_output()
H A Dxform_ah.c321 ip->ip_off = htons(ntohs(ip->ip_off) & ip4_ah_offsetmask); in ah_massage_headers()
324 ip->ip_off &= htons(IP_DF); in ah_massage_headers()
326 ip->ip_off = 0; in ah_massage_headers()
H A Dipsec_output.c548 setdf = ip->ip_off; in ipsec4_process_packet()
604 ip->ip_off |= htons(IP_DF); in ipsec4_process_packet()
/netbsd-src/tests/net/icmp/
H A Dt_ping.c420 ip->ip_off = tot >> 3; in ATF_TC_BODY()
421 assert((size_t)ip->ip_off << 3 == tot); in ATF_TC_BODY()
425 ip->ip_off |= IP_MF; in ATF_TC_BODY()
/netbsd-src/sys/dev/fdt/
H A Dfdt_intr.c405 const u_int ip_off = cis_off + cis_cells; in get_specifier_from_map() local
407 const u_int pus_off = ip_off + 1; in get_specifier_from_map()
412 const u_int iparent = fdtbus_get_phandle_from_native(be32toh(p[ip_off])); in get_specifier_from_map()
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_fil_netbsd.c865 ip->ip_off = htons(ip_mtudisc ? IP_DF : 0); in ipf_send_ip()
1112 u_short ip_off, ip_len; in ipf_fastroute() local
1273 ip_off = ntohs(ip->ip_off); in ipf_fastroute()
1274 if (ip_off & IP_DF) { in ipf_fastroute()
1315 mhip->ip_off = ((off - hlen) >> 3) + ip_off; in ipf_fastroute()
1319 mhip->ip_off |= IP_MF; in ipf_fastroute()
1328 mhip->ip_off = htons((u_short)mhip->ip_off); in ipf_fastroute()
1342 ip->ip_off = htons((u_short)IP_MF); in ipf_fastroute()
/netbsd-src/sys/netinet/
H A Dip_output.c280 ip->ip_off = htons(0); in ip_output()
612 ip->ip_off |= htons(IP_DF); in ip_output()
758 if (ntohs(ip->ip_off) & IP_DF) { in ip_output()
841 ipoff = ntohs(ip->ip_off) & IP_OFFMASK; in ip_fragment()
842 ipflg = ntohs(ip->ip_off) & (IP_RF|IP_DF|IP_MF); in ip_fragment()
888 mhip->ip_off = ((off - hlen) >> 3) + ipoff; in ip_fragment()
889 mhip->ip_off |= ipflg; in ip_fragment()
893 mhip->ip_off |= IP_MF; in ip_fragment()
894 HTONS(mhip->ip_off); in ip_fragment()
934 ip->ip_off |= htons(IP_MF); in ip_fragment()
H A Dip_reass.c405 ip->ip_off = htons(0); in ip_reass()
634 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; in ip_reass_packet()
650 mff = (ip->ip_off & htons(IP_MF)) != 0; in ip_reass_packet()
H A Draw_ip.c182 NTOHS(ip->ip_off); in rip_input()
335 ip->ip_off = htons(0); in rip_output()
375 HTONS(ip->ip_off); in rip_output()
H A Dip.h63 u_int16_t ip_off; /* fragment offset field */ member
/netbsd-src/sys/netmpls/
H A Dmpls_ttl.c191 if (oip->ip_off &~ htons(IP_MF|IP_DF)) in mpls_icmp_error()
304 nip->ip_off = htons(0); in mpls_icmp_error()
/netbsd-src/sys/altq/
H A Daltq_subr.c894 u_short ip_off; in extract_ports4() local
902 ip_off = ntohs(ip->ip_off); in extract_ports4()
904 if (ip_off & IP_OFFMASK) { in extract_ports4()
978 if (ip_off & IP_MF) in extract_ports4()
1618 if ((ntohs(ip->ip_off) & IP_MF) == 0) in ip4f_lookup()
/netbsd-src/external/mpl/dhcp/dist/includes/netinet/
H A Dip.h54 int16_t ip_off; /* fragment offset field */ member
/netbsd-src/sys/arch/mvme68k/stand/sboot/
H A Detherfun.h77 short ip_off; /* fragment offset field */ member
H A Detherfun.c119 iph->ip_off = IP_DF; in do_send_tftp()
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dprintpacket.c73 off = ntohs(ip->ip_off);
/netbsd-src/external/bsd/ipf/dist/ipsd/Celler/
H A Dip_compat.h171 __u16 ip_off; member
/netbsd-src/external/bsd/ipf/dist/ipsd/
H A Dsnit.c68 if (ip->ip_off & 0x1fff != 0)
H A Dsdlpi.c74 if (ip->ip_off & 0x1fff != 0)

123