/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | printiphdr.c | 18 ntohs(ip->ip_off), ntohs(ip->ip_sum), ntohl(ip->ip_src.s_addr),
|
H A D | printpacket.c | 73 off = ntohs(ip->ip_off);
|
/freebsd-13-stable/tests/sys/netinet/ |
H A D | ip_reass_test.c | 97 ip->ip_off = 0; 214 ip->ip_off = htons(0x10); 220 ip->ip_off = htons(0x20); 226 ip->ip_off = htons(0x8); 232 ip->ip_off = htons(0x10); 244 packet2->hdr.ip_off = htons(IP_MF | 0x20); 297 ip->ip_off = htons(IP_MF | 0x10); 303 ip->ip_off = htons(0x10); 349 ip->ip_off = htons(IP_MF | 0x1fff); 355 ip->ip_off [all...] |
/freebsd-13-stable/sys/netinet/ |
H A D | ip_reass.c | 226 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) { 232 if (ip->ip_off & htons(IP_MF)) 236 ip->ip_off = htons(ntohs(ip->ip_off) << 3); 241 if (ntohs(ip->ip_len) + ntohs(ip->ip_off) > IP_MAXPACKET) { 320 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len); 330 i = ntohs(ip->ip_off) + ntohs(ip->ip_len); 338 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len); 368 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) [all...] |
H A D | ip_output.c | 335 uint16_t ip_len, ip_off; local 367 ip_off = ntohs(ip->ip_off); 818 if ((ip_off & IP_DF) || 885 uint16_t ip_len, ip_off; local 888 ip_off = ntohs(ip->ip_off); 890 if (ip_off & IP_DF) { /* Fragmentation not allowed */ 1010 /* XXX do we need to add ip_off below ? */ 1011 mhip->ip_off [all...] |
H A D | ip.h | 63 u_short ip_off; /* fragment offset field */ member in struct:ip
|
H A D | ip_fastfwd.c | 204 uint16_t ip_len, ip_off; local 422 ip_off = ntohs(ip->ip_off); 457 if (ip_off & IP_DF) {
|
/freebsd-13-stable/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 116 ip->ip_off = 0; 264 printf("1.7.0 Zero length fragments (ip_off = 0x2000)\n"); 267 ip->ip_off = htons(IP_MF); 272 printf("1.7.1 Zero length fragments (ip_off = 0x3000)\n"); 275 ip->ip_off = htons(IP_MF); 280 printf("1.7.2 Zero length fragments (ip_off = 0xa000)\n"); 283 ip->ip_off = htons(0xa000); 288 printf("1.7.3 Zero length fragments (ip_off = 0x0100)\n"); 291 ip->ip_off = htons(0x0100); 309 ip->ip_off [all...] |
H A D | ip.c | 203 ip->ip_off |= htons(IP_MF); 209 ip->ip_off ^= htons(IP_MF); 214 ip->ip_off &= htons(0xe000); 215 ip->ip_off |= htons(sent >> 3); 226 if (!(ntohs(ip->ip_off) & IP_MF)) 228 else if (!(ip->ip_off & htons(0x1fff))) 277 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
|
H A D | resend.c | 45 if (ip->ip_off & 0x3fff) 46 printf("frag @%#x ", (ip->ip_off & 0x1fff) << 3);
|
/freebsd-13-stable/stand/libsa/ |
H A D | ip.c | 162 if ((ntohs(p->ipq_hdr->ip_off) & IP_OFFMASK) < 163 (ntohs(ip->ip_off) & IP_OFFMASK)) { 274 if ((ntohs(ip->ip_off) & IP_MF) == 0 && 275 (ntohs(ip->ip_off) & IP_OFFMASK) == 0) { 322 if ((ntohs(ip->ip_off) & IP_MF) == 0) { 323 ipr->ip_total_size = (8 * (ntohs(ip->ip_off) & IP_OFFMASK)); 351 if ((ntohs(ipq->ipq_hdr->ip_off) & IP_OFFMASK) != n / 8) { 360 if ((ntohs(last->ipq_hdr->ip_off) & IP_MF) != 0) {
|
/freebsd-13-stable/contrib/tcpdump/ |
H A D | ip.h | 48 * We declare ip_len and ip_off to be short, rather than u_short 59 nd_uint16_t ip_off; /* fragment offset field */ member in struct:ip
|
/freebsd-13-stable/contrib/traceroute/ |
H A D | rip_output.c | 44 ip->ip_off = 0;
|
/freebsd-13-stable/sys/netpfil/pf/ |
H A D | pf_norm.c | 762 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; 763 frent->fe_mff = ntohs(ip->ip_off) & IP_MF; 800 ip->ip_sum = pf_cksum_fixup(ip->ip_sum, ip->ip_off, 801 ip->ip_off & ~(IP_MF|IP_OFFMASK), 0); 802 ip->ip_off &= ~(IP_MF|IP_OFFMASK); 1029 int mff = (ntohs(h->ip_off) & IP_MF); 1031 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; 1034 int ip_off; local 1085 if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) { 1086 u_int16_t ip_off local 1140 u_int16_t ip_off = h->ip_off; local 1995 u_int16_t ip_off = h->ip_off; local [all...] |
/freebsd-13-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 459 ip->ip_off = htons(V_path_mtu_discovery ? IP_DF : 0); 695 u_short ip_off; local 834 ip_off = ntohs(ip->ip_off); 835 if (ip_off & IP_DF) { 874 mhip->ip_off = ((off - hlen) >> 3) + ip_off; 878 mhip->ip_off |= IP_MF; 888 mhip->ip_off = htons((u_short)mhip->ip_off); [all...] |
/freebsd-13-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 526 ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3); 528 ip->ip_off |= htons(IP_MF); 530 ip->ip_off = htons(IP_DF); 539 uint16_t ip_off) 550 if (ip_off == 0 && plen <= mtu - hlen) { 570 if (ip_off != 0) { 576 offset = (ntohs(ip_off) & IP_OFFMASK) << 3; 590 if (len < plen || (ip_off & htons(IP_MF)) != 0) 804 if (ip->ip_off & ~ntohs(IP_MF|IP_DF)) { 854 oip->ip_off 537 nat64_fragment6(struct nat64_counters *stats, struct ip6_hdr *ip6, struct mbufq *mq, struct mbuf *m, uint32_t mtu, uint16_t ip_id, uint16_t ip_off) argument 1237 uint16_t ip_id, ip_off; local [all...] |
/freebsd-13-stable/contrib/netbsd-tests/net/icmp/ |
H A D | t_ping.c | 407 ip->ip_off = tot >> 3; 408 assert((size_t)ip->ip_off << 3 == tot); 412 ip->ip_off |= IP_MF;
|
/freebsd-13-stable/sbin/natd/ |
H A D | icmp.c | 54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
|
/freebsd-13-stable/sys/net/ |
H A D | debugnet_inet.c | 172 ip->ip_off = ntohs(ip->ip_off); 193 if ((ip->ip_off & (IP_MF | IP_OFFMASK)) != 0) { 487 ip->ip_off = htons(IP_DF);
|
/freebsd-13-stable/usr.sbin/ppp/ |
H A D | tcpmss.c | 163 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
|
H A D | slcompress.c | 179 if ((ip->ip_off & htons(0x3fff)) || m->m_len < 40) { 180 log_Printf(LogDEBUG, "??? 1 ip_off = %x, m_len = %lu\n", 181 ip->ip_off, (unsigned long)m->m_len);
|
/freebsd-13-stable/contrib/wpa/src/common/ |
H A D | dhcp.h | 21 #define frag_off ip_off
|
/freebsd-13-stable/sys/dev/sge/ |
H A D | if_sge.c | 1410 uint32_t ip_off, poff; local 1422 ip_off = sizeof(struct ether_header); 1423 m = m_pullup(*m_head, ip_off); 1431 ip_off = sizeof(struct ether_vlan_header); 1432 m = m_pullup(m, ip_off); 1438 m = m_pullup(m, ip_off + sizeof(struct ip)); 1443 ip = (struct ip *)(mtod(m, char *) + ip_off); 1444 poff = ip_off + (ip->ip_hl << 2); 1460 ip = (struct ip *)(mtod(m, char *) + ip_off);
|
/freebsd-13-stable/sys/dev/mxge/ |
H A D | if_mxge.c | 1744 pi->ip_off = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; 1747 pi->ip_off = ETHER_HDR_LEN; 1756 pi->ip = (struct ip *)(m->m_data + pi->ip_off); 1758 if (__predict_false(m->m_len < pi->ip_off + sizeof(*pi->ip))) { 1759 m_copydata(m, 0, pi->ip_off + sizeof(*pi->ip), 1761 pi->ip = (struct ip *)(ss->scratch + pi->ip_off); 1767 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + 1769 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + 1771 pi->ip = (struct ip *)(ss->scratch + pi->ip_off); 1777 pi->ip6 = (struct ip6_hdr *)(m->m_data + pi->ip_off); [all...] |
/freebsd-13-stable/sbin/dhclient/ |
H A D | packet.c | 124 ip.ip_off = 0;
|