Searched refs:ip_off (Results 1 - 25 of 95) sorted by relevance

1234

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintiphdr.c18 ntohs(ip->ip_off), ntohs(ip->ip_sum), ntohl(ip->ip_src.s_addr),
H A Dprintpacket.c73 off = ntohs(ip->ip_off);
/freebsd-11-stable/sys/netinet/
H A Dip_reass.c220 ((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 Dip_output.c222 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 Dip_fastfwd.c155 uint16_t ip_len, ip_off; local
374 ip_off = ntohs(ip->ip_off);
399 if (ip_off & IP_DF) {
H A Dip.h61 u_short ip_off; /* fragment offset field */ member in struct:ip
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Diptests.c116 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 Dip.c203 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 Dresend.c45 if (ip->ip_off & 0x3fff)
46 printf("frag @%#x ", (ip->ip_off & 0x1fff) << 3);
/freebsd-11-stable/stand/libsa/
H A Dip.c162 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 Dpf_norm.c561 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 Dip_fil_freebsd.c135 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 Drip_output.c44 ip->ip_off = 0;
/freebsd-11-stable/contrib/tcpdump/
H A Dip.h48 * 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 Dnat64_translate.c496 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 Dt_ping.c407 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 Dicmp.c54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
/freebsd-11-stable/usr.sbin/ppp/
H A Dtcpmss.c163 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
H A Dslcompress.c177 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 Dip.d276 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 Ddhcp.h21 #define frag_off ip_off
/freebsd-11-stable/sys/dev/nxge/xgehal/
H A Dxgehal-device-fp.c900 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 Dif_em.c1927 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 Dif_sge.c1406 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 Dif_mxge.c1786 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...]

Completed in 420 milliseconds

1234