| /src/sys/net/npf/ |
| npf_ext_normalize.c | 107 uint16_t ip_off = ip->ip_off; local in function:npf_normalize_ip4 123 if (np->n_no_df && (ip_off & htons(IP_DF)) != 0) { 124 uint16_t nip_off = ip_off & ~htons(IP_DF); 126 cksum = npf_fixup16_cksum(cksum, ip_off, nip_off); 127 ip->ip_off = nip_off;
|
| /src/tests/net/net/ |
| t_ip_reass.c | 122 ip->ip_off = 0; 255 ip->ip_off = htons(0x10); 261 ip->ip_off = htons(0x20); 267 ip->ip_off = htons(0x8); 273 ip->ip_off = htons(0x10); 285 packet2->hdr.ip_off = htons(IP_MF | 0x20); 338 ip->ip_off = htons(IP_MF | 0x10); 344 ip->ip_off = htons(0x10); 397 ip->ip_off = htons(IP_MF | 0x1fff); 403 ip->ip_off = htons(0x1fff) [all...] |
| /src/sys/arch/mvme68k/stand/sboot/ |
| etherfun.h | 77 short ip_off; /* fragment offset field */ member in struct:ip
|
| etherfun.c | 119 iph->ip_off = IP_DF;
|
| /src/sys/dist/pf/net/ |
| pf_norm.c | 356 #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; 428 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3)); 429 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; 446 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) + 566 u_int16_t off = ntohs(h->ip_off) << 3; 686 h->ip_off = htons(ntohs(h->ip_off) [all...] |
| pf_osfp.c | 136 if ((ip->ip_off & htons(IP_OFFMASK)) != 0) 149 if (ip->ip_off & htons(IP_DF))
|
| /src/tests/net/icmp/ |
| t_ping.c | 420 ip->ip_off = tot >> 3; 421 assert((size_t)ip->ip_off << 3 == tot); 425 ip->ip_off |= IP_MF;
|
| /src/sys/netipsec/ |
| xform_ipip.c | 391 offsetof(struct ip, ip_off), 392 sizeof(uint16_t), &ipo->ip_off); 393 ipo->ip_off &= ~ htons(IP_DF | IP_MF | IP_OFFMASK); 405 ipo->ip_off = 0;
|
| xform_ah.c | 321 ip->ip_off = htons(ntohs(ip->ip_off) & ip4_ah_offsetmask); 324 ip->ip_off &= htons(IP_DF); 326 ip->ip_off = 0;
|
| ipsec_output.c | 548 setdf = ip->ip_off; 604 ip->ip_off |= htons(IP_DF);
|
| /src/sys/dev/fdt/ |
| fdt_intr.c | 405 const u_int ip_off = cis_off + cis_cells; local in function:get_specifier_from_map 407 const u_int pus_off = ip_off + 1; 412 const u_int iparent = fdtbus_get_phandle_from_native(be32toh(p[ip_off]));
|
| /src/sys/netinet/ |
| ip.h | 63 u_int16_t ip_off; /* fragment offset field */ member in struct:ip
|
| ip_output.c | 280 ip->ip_off = htons(0); 623 ip->ip_off |= htons(IP_DF); 769 if (ntohs(ip->ip_off) & IP_DF) { 853 ipoff = ntohs(ip->ip_off) & IP_OFFMASK; 854 ipflg = ntohs(ip->ip_off) & (IP_RF|IP_DF|IP_MF); 900 mhip->ip_off = ((off - hlen) >> 3) + ipoff; 901 mhip->ip_off |= ipflg; 905 mhip->ip_off |= IP_MF; 906 HTONS(mhip->ip_off); 946 ip->ip_off |= htons(IP_MF) [all...] |
| ip_reass.c | 405 ip->ip_off = htons(0); 634 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; 650 mff = (ip->ip_off & htons(IP_MF)) != 0;
|
| raw_ip.c | 178 * XXX ip_off is also expected to be host order. 182 NTOHS(ip->ip_off); 335 ip->ip_off = htons(0); 369 /* XXX userland passes ip_len and ip_off in host order */ 375 HTONS(ip->ip_off);
|
| igmp.c | 615 ip->ip_off = htons(0);
|
| /src/sys/external/bsd/ipf/netinet/ |
| ip_fil_netbsd.c | 865 ip->ip_off = htons(ip_mtudisc ? IP_DF : 0); 1112 u_short ip_off, ip_len; local in function:ipf_fastroute 1273 ip_off = ntohs(ip->ip_off); 1274 if (ip_off & IP_DF) { 1315 mhip->ip_off = ((off - hlen) >> 3) + ip_off; 1319 mhip->ip_off |= IP_MF; 1328 mhip->ip_off = htons((u_short)mhip->ip_off); [all...] |
| /src/sys/netmpls/ |
| mpls_ttl.c | 191 if (oip->ip_off &~ htons(IP_MF|IP_DF)) 304 nip->ip_off = htons(0);
|
| /src/sys/altq/ |
| altq_subr.c | 894 u_short ip_off; local in function:extract_ports4 902 ip_off = ntohs(ip->ip_off); 904 if (ip_off & IP_OFFMASK) { 978 if (ip_off & IP_MF) 1618 if ((ntohs(ip->ip_off) & IP_MF) == 0)
|
| /src/regress/sys/net/frag/ |
| ip4_frag_1.c | 102 * Note: ip_len and ip_off shall be in host byte order. 109 ip->ip_off = foff; 178 * Case 1: ip_len of the first fragment and ip_off + hlen of other
|
| /src/usr.sbin/mrouted/ |
| igmp.c | 60 ip->ip_off = 0;
|
| /src/usr.sbin/ndbootd/config/ |
| ndbootd-bpf.c | 86 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, sizeof(struct ether_header) + NDBOOTD_OFFSETOF(struct ip, ip_off)),
|
| /src/sys/net/ |
| ether_sw_offload.c | 269 if (ntohs(ip->ip_off) & ~(IP_DF | IP_RF))
|
| /src/usr.sbin/npf/npftest/libnpftest/ |
| npf_mbuf_subr.c | 180 iphdr->ip_off = 0;
|
| /src/sbin/ping/ |
| ping.c | 572 opack_ip->ip_off = (pingflags & F_DF) ? IP_DF : 0; 1779 ((ip->ip_off)&0xe000)>>13, (ip->ip_off)&0x1fff);
|