/freebsd-11-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-11-stable/sys/netinet/ |
H A D | ip_reass.c | 220 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) { 226 if (ip->ip_off & htons(IP_MF)) 230 ip->ip_off = htons(ntohs(ip->ip_off) << 3); 299 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len); 309 i = ntohs(ip->ip_off) + ntohs(ip->ip_len); 317 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len); 347 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) 360 i = ntohs(GETIP(p)->ip_off) [all...] |
H A D | ip_output.c | 222 uint16_t ip_len, ip_off; local 259 ip_off = ntohs(ip->ip_off); 662 if ((ip_off & IP_DF) || (m->m_pkthdr.csum_flags & CSUM_TSO)) { 744 uint16_t ip_len, ip_off; local 747 ip_off = ntohs(ip->ip_off); 749 if (ip_off & IP_DF) { /* Fragmentation not allowed */ 857 /* XXX do we need to add ip_off below ? */ 858 mhip->ip_off [all...] |
H A D | ip_fastfwd.c | 155 uint16_t ip_len, ip_off; local 374 ip_off = ntohs(ip->ip_off); 399 if (ip_off & IP_DF) {
|
H A D | ip.h | 61 u_short ip_off; /* fragment offset field */ member in struct:ip
|
/freebsd-11-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-11-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-11-stable/sys/netpfil/pf/ |
H A D | pf_norm.c | 561 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; 562 frent->fe_mff = ntohs(ip->ip_off) & IP_MF; 595 ip->ip_off &= ~(IP_MF|IP_OFFMASK); 820 int mff = (ntohs(h->ip_off) & IP_MF); 822 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3; 825 int ip_off; local 876 if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) { 877 u_int16_t ip_off = h->ip_off; local 879 h->ip_off 931 u_int16_t ip_off = h->ip_off; local 1806 u_int16_t ip_off = h->ip_off; local [all...] |
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 135 ip->ip_off = htons(ip->ip_off); 145 ip->ip_off = ntohs(ip->ip_off); 465 ip->ip_off = htons(V_path_mtu_discovery ? IP_DF : 0); 701 u_short ip_off; local 838 ip_off = ntohs(ip->ip_off); 839 if (ip_off & IP_DF) { 878 mhip->ip_off [all...] |
/freebsd-11-stable/contrib/traceroute/ |
H A D | rip_output.c | 44 ip->ip_off = 0;
|
/freebsd-11-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-11-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 496 ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3); 498 ip->ip_off |= htons(IP_MF); 500 ip->ip_off = htons(IP_DF); 509 uint16_t ip_off) 520 if (ip_off == 0 && plen <= mtu - hlen) { 540 if (ip_off != 0) { 546 offset = (ntohs(ip_off) & IP_OFFMASK) << 3; 560 if (len < plen || (ip_off & htons(IP_MF)) != 0) 745 if (ip->ip_off & ~ntohs(IP_MF|IP_DF)) { 795 oip->ip_off 507 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 1178 uint16_t ip_id, ip_off; local [all...] |
/freebsd-11-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-11-stable/sbin/natd/ |
H A D | icmp.c | 54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
|
/freebsd-11-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 | 177 if ((ip->ip_off & htons(0x3fff)) || m->m_len < 40) { 178 log_Printf(LogDEBUG, "??? 1 ip_off = %x, m_len = %lu\n", 179 ip->ip_off, (unsigned long)m->m_len);
|
/freebsd-11-stable/cddl/lib/libdtrace/ |
H A D | ip.d | 276 ipv4_flags = p == NULL ? 0 : (ntohs(p->ip_off) & 0xe000) >> 8; 277 ipv4_offset = p == NULL ? 0 : ntohs(p->ip_off) & 0x1fff;
|
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | dhcp.h | 21 #define frag_off ip_off
|
/freebsd-11-stable/sys/dev/nxge/xgehal/ |
H A D | xgehal-device-fp.c | 900 u8 ip_off, ip_length; local 924 ip_off = XGE_HAL_HEADER_ETHERNET_II_802_3_SIZE; 927 ip_off = (XGE_HAL_HEADER_ETHERNET_II_802_3_SIZE + 931 ip_off = (XGE_HAL_HEADER_ETHERNET_II_802_3_SIZE + 940 ip_off += XGE_HAL_HEADER_VLAN_SIZE; 944 *ip = (iplro_t *)((char*)buffer + ip_off);
|
/freebsd-11-stable/sys/dev/e1000/ |
H A D | if_em.c | 1927 int ip_off, poff; local 1935 ip_off = poff = 0; 1969 ip_off = sizeof(struct ether_header); 1970 if (m_head->m_len < ip_off) { 1971 m_head = m_pullup(m_head, ip_off); 1979 ip_off = sizeof(struct ether_vlan_header); 1980 if (m_head->m_len < ip_off) { 1981 m_head = m_pullup(m_head, ip_off); 1988 if (m_head->m_len < ip_off + sizeof(struct ip)) { 1989 m_head = m_pullup(m_head, ip_off 3908 em_transmit_checksum_setup(struct tx_ring *txr, struct mbuf *mp, int ip_off, struct ip *ip, u32 *txd_upper, u32 *txd_lower) argument 4063 em_tso_setup(struct tx_ring *txr, struct mbuf *mp, int ip_off, struct ip *ip, struct tcphdr *tp, u32 *txd_upper, u32 *txd_lower) argument [all...] |
/freebsd-11-stable/sys/dev/sge/ |
H A D | if_sge.c | 1406 uint32_t ip_off, poff; local 1418 ip_off = sizeof(struct ether_header); 1419 m = m_pullup(*m_head, ip_off); 1427 ip_off = sizeof(struct ether_vlan_header); 1428 m = m_pullup(m, ip_off); 1434 m = m_pullup(m, ip_off + sizeof(struct ip)); 1439 ip = (struct ip *)(mtod(m, char *) + ip_off); 1440 poff = ip_off + (ip->ip_hl << 2); 1456 ip = (struct ip *)(mtod(m, char *) + ip_off);
|
/freebsd-11-stable/sys/dev/mxge/ |
H A D | if_mxge.c | 1786 pi->ip_off = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; 1789 pi->ip_off = ETHER_HDR_LEN; 1798 pi->ip = (struct ip *)(m->m_data + pi->ip_off); 1800 if (__predict_false(m->m_len < pi->ip_off + sizeof(*pi->ip))) { 1801 m_copydata(m, 0, pi->ip_off + sizeof(*pi->ip), 1803 pi->ip = (struct ip *)(ss->scratch + pi->ip_off); 1809 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + 1811 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + 1813 pi->ip = (struct ip *)(ss->scratch + pi->ip_off); 1819 pi->ip6 = (struct ip6_hdr *)(m->m_data + pi->ip_off); [all...] |