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

1234

/freebsd-9.3-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_var.h57 u_char ipf_mff; /* copied from (ip_off&IP_MF) */
60 short ip_off; member in struct:ipasfrag
H A Dip.c210 ip->ip_off |= htons(IP_MF);
216 ip->ip_off ^= htons(IP_MF);
221 ip->ip_off &= htons(0xe000);
222 ip->ip_off |= htons(sent >> 3);
233 if (!(ntohs(ip->ip_off) & IP_MF))
235 else if (!(ip->ip_off & htons(0x1fff)))
284 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
H A Dresend.c54 if (ip->ip_off & 0x3fff)
55 printf("frag @%#x ", (ip->ip_off & 0x1fff) << 3);
/freebsd-9.3-release/sys/netipsec/
H A Dxform_ipip.c440 offsetof(struct ip, ip_off),
441 sizeof(u_int16_t), (caddr_t) &ipo->ip_off);
442 ipo->ip_off = ntohs(ipo->ip_off);
443 ipo->ip_off &= ~(IP_DF | IP_MF | IP_OFFMASK);
444 ipo->ip_off = htons(ipo->ip_off);
457 ipo->ip_off = 0;
H A Dipsec_output.c206 ip->ip_off = ntohs(ip->ip_off);
481 setdf = ntohs(ip->ip_off & IP_DF);
542 ip->ip_off = ntohs(ip->ip_off);
543 ip->ip_off |= IP_DF;
544 ip->ip_off = htons(ip->ip_off);
/freebsd-9.3-release/sys/boot/arm/at91/libat91/
H A Demac.h78 unsigned short ip_off; member in struct:__anon5589
/freebsd-9.3-release/sys/netinet/
H A Dip_ipsec.c350 ip->ip_off = htons(ip->ip_off);
362 ip->ip_off = ntohs(ip->ip_off);
H A Dip_output.c105 * ip_len and ip_off are in host format.
601 ((ip->ip_off & IP_DF) == 0 && (ifp->if_hwassist & CSUM_FRAGMENT))) {
603 ip->ip_off = htons(ip->ip_off);
637 if ((ip->ip_off & IP_DF) || (m->m_pkthdr.csum_flags & CSUM_TSO)) {
707 if (ip->ip_off & IP_DF) { /* Fragmentation not allowed */
805 /* XXX do we need to add ip->ip_off below ? */
806 mhip->ip_off = ((off - hlen) >> 3) + ip->ip_off;
811 mhip->ip_off |
[all...]
H A Dip_fastfwd.c345 ip->ip_off = ntohs(ip->ip_off);
532 (ifp->if_hwassist & CSUM_FRAGMENT && (ip->ip_off & IP_DF) == 0)) {
537 ip->ip_off = htons(ip->ip_off);
547 if (ip->ip_off & IP_DF) {
558 * ip_fragment expects ip_len and ip_off in host byte
H A Din.h746 * Historically, BSD keeps ip_len and ip_off in host format
761 h_ip->ip_off = htons(h_ip->ip_off); \
767 h_ip->ip_off = ntohs(h_ip->ip_off); \
H A Dip_input.c392 * We expect ip_len and ip_off to be in host byte order.
469 ip->ip_off = ntohs(ip->ip_off);
730 if (ip->ip_off & (IP_MF | IP_OFFMASK)) {
913 if (ip->ip_off & IP_MF) {
925 ip->ip_off <<= 3;
998 if (GETIP(q)->ip_off > ip->ip_off)
1011 i = GETIP(p)->ip_off + GETIP(p)->ip_len - ip->ip_off;
[all...]
H A Dip.h61 u_short ip_off; /* fragment offset field */ member in struct:ip
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c669 ip->ip_off = V_path_mtu_discovery ? IP_DF : 0;
671 ip->ip_off = 0;
862 ip2->ip_off = htons(ip2->ip_off);
915 u_short ip_off; local
1047 ip->ip_off = htons(ip->ip_off);
1059 ip_off = ntohs(ip->ip_off);
1060 if (ip_off
[all...]
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dpf_norm.c493 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3)
503 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
588 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3));
589 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
606 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) +
756 u_int16_t off = ntohs(h->ip_off) << 3;
929 h->ip_off = htons(ntohs(h->ip_off)
1150 int ip_off; local
1198 u_int16_t ip_off = h->ip_off; local
1354 u_int16_t ip_off = h->ip_off; local
[all...]
/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dprintpacket.c29 off = ntohs(ip->ip_off);
/freebsd-9.3-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-9.3-release/contrib/traceroute/
H A Drip_output.c44 ip->ip_off = 0;
/freebsd-9.3-release/sys/net/
H A Dif_enc.c278 ip->ip_off = ntohs(ip->ip_off);
289 ip->ip_off = htons(ip->ip_off);
/freebsd-9.3-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-9.3-release/sbin/natd/
H A Dicmp.c54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
/freebsd-9.3-release/usr.sbin/ppp/
H A Dtcpmss.c161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
/freebsd-9.3-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h171 __u16 ip_off; member in struct:__anon1600
/freebsd-9.3-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h173 __u16 ip_off; member in struct:__anon1607
/freebsd-9.3-release/contrib/ipfilter/tools/
H A Dipftest.c221 ip->ip_off = ntohs(ip->ip_off);
275 ip->ip_off = htons(ip->ip_off);

Completed in 225 milliseconds

1234