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

1234

/freebsd-10.0-release/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-10.0-release/contrib/ipfilter/ipsend/
H A Diptests.c143 ip->ip_off = 0;
291 printf("1.7.0 Zero length fragments (ip_off = 0x2000)\n");
294 ip->ip_off = htons(IP_MF);
299 printf("1.7.1 Zero length fragments (ip_off = 0x3000)\n");
302 ip->ip_off = htons(IP_MF);
307 printf("1.7.2 Zero length fragments (ip_off = 0xa000)\n");
310 ip->ip_off = htons(0xa000);
315 printf("1.7.3 Zero length fragments (ip_off = 0x0100)\n");
318 ip->ip_off = htons(0x0100);
336 ip->ip_off
[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);
/freebsd-10.0-release/sys/boot/arm/at91/libat91/
H A Demac.h78 unsigned short ip_off; member in struct:__anon5954
/freebsd-10.0-release/sys/netinet/
H A Dip_output.c132 uint16_t ip_len, ip_off; local
180 ip_off = ntohs(ip->ip_off);
604 ((ip_off & IP_DF) == 0 && (ifp->if_hwassist & CSUM_FRAGMENT))) {
641 if ((ip_off & IP_DF) || (m->m_pkthdr.csum_flags & CSUM_TSO)) {
710 uint16_t ip_len, ip_off; local
713 ip_off = ntohs(ip->ip_off);
715 if (ip_off & IP_DF) { /* Fragmentation not allowed */
813 /* XXX do we need to add ip_off belo
[all...]
H A Dip_input.c738 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) {
915 if (ip->ip_off & htons(IP_MF)) {
927 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
999 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off))
1012 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) -
1013 ntohs(ip->ip_off);
1019 ip->ip_off = htons(ntohs(ip->ip_off)
[all...]
H A Dip_fastfwd.c170 uint16_t sum, ip_len, ip_off; local
488 ip_off = ntohs(ip->ip_off);
529 (ifp->if_hwassist & CSUM_FRAGMENT && (ip_off & IP_DF) == 0)) {
544 if (ip_off & IP_DF) {
H A Dip.h61 u_short ip_off; /* fragment offset field */ member in struct:ip
H A Draw_ip.c293 ip->ip_off = ntohs(ip->ip_off);
450 ip->ip_off = htons(IP_DF);
452 ip->ip_off = htons(0);
510 ip->ip_off = htons(ip->ip_off);
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c132 ip->ip_off = htons(ip->ip_off);
140 ip->ip_off = ntohs(ip->ip_off);
469 ip->ip_off = htons(path_mtu_discovery ? IP_DF : 0);
471 ip->ip_off = 0;
714 u_short ip_off; local
858 ip_off = ntohs(ip->ip_off);
859 if (ip_off
[all...]
/freebsd-10.0-release/sys/netpfil/pf/
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;
431 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3));
432 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
449 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) +
567 u_int16_t off = ntohs(h->ip_off) << 3;
696 h->ip_off = htons(ntohs(h->ip_off)
877 int ip_off; local
924 u_int16_t ip_off = h->ip_off; local
1060 u_int16_t ip_off = h->ip_off; local
1954 u_int16_t ip_off = h->ip_off; local
[all...]
/freebsd-10.0-release/sys/netipsec/
H A Dxform_ipip.c491 offsetof(struct ip, ip_off),
492 sizeof(u_int16_t), (caddr_t) &ipo->ip_off);
493 ipo->ip_off = ntohs(ipo->ip_off);
494 ipo->ip_off &= ~(IP_DF | IP_MF | IP_OFFMASK);
495 ipo->ip_off = htons(ipo->ip_off);
508 ipo->ip_off = 0;
H A Dipsec_output.c479 setdf = ntohs(ip->ip_off & IP_DF);
548 ip->ip_off = ntohs(ip->ip_off);
549 ip->ip_off |= IP_DF;
550 ip->ip_off = htons(ip->ip_off);
/freebsd-10.0-release/contrib/tcpdump/
H A Dip.h46 * We declare ip_len and ip_off to be short, rather than u_short
57 u_int16_t ip_off; /* fragment offset field */ member in struct:ip
/freebsd-10.0-release/contrib/traceroute/
H A Drip_output.c44 ip->ip_off = 0;
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/
H A Den_frag.c95 iph->ip_off = htons(more | (session->offset >> 3));
139 offset = ntohs(iph->ip_off);
173 if (!(ntohs(iph->ip_off) & IP_MF))
/freebsd-10.0-release/sbin/natd/
H A Dicmp.c54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
/freebsd-10.0-release/usr.sbin/ppp/
H A Dtcpmss.c161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
/freebsd-10.0-release/cddl/lib/libdtrace/
H A Dip.d258 ipv4_flags = p == NULL ? 0 : (p->ip_off & 0xe000);
259 ipv4_offset = p == NULL ? 0 : p->ip_off;
/freebsd-10.0-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h171 __u16 ip_off; member in struct:__anon1497
/freebsd-10.0-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h173 __u16 ip_off; member in struct:__anon1504
/freebsd-10.0-release/contrib/ipfilter/
H A Dmli_ipl.c276 ip->ip_off = htons(ip->ip_off);
282 ip->ip_off = ntohs(ip->ip_off);
/freebsd-10.0-release/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);

Completed in 232 milliseconds

1234