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

1234

/freebsd-10.3-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.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.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.3-release/sys/netipsec/
H A Dxform_ipip.c423 offsetof(struct ip, ip_off),
424 sizeof(u_int16_t), (caddr_t) &ipo->ip_off);
425 ipo->ip_off = ntohs(ipo->ip_off);
426 ipo->ip_off &= ~(IP_DF | IP_MF | IP_OFFMASK);
427 ipo->ip_off = htons(ipo->ip_off);
440 ipo->ip_off = 0;
H A Dipsec_output.c483 setdf = ntohs(ip->ip_off & IP_DF);
546 ip->ip_off = ntohs(ip->ip_off);
547 ip->ip_off |= IP_DF;
548 ip->ip_off = htons(ip->ip_off);
/freebsd-10.3-release/sys/boot/arm/at91/libat91/
H A Demac.h78 unsigned short ip_off; member in struct:__anon6438
/freebsd-10.3-release/sys/netinet/
H A Dip_output.c133 uint16_t ip_len, ip_off; local
171 ip_off = ntohs(ip->ip_off);
607 ((ip_off & IP_DF) == 0 && (ifp->if_hwassist & CSUM_FRAGMENT))) {
644 if ((ip_off & IP_DF) || (m->m_pkthdr.csum_flags & CSUM_TSO)) {
713 uint16_t ip_len, ip_off; local
716 ip_off = ntohs(ip->ip_off);
718 if (ip_off & IP_DF) { /* Fragmentation not allowed */
826 /* XXX do we need to add ip_off belo
[all...]
H A Dip_input.c709 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) {
889 if (ip->ip_off & htons(IP_MF)) {
901 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
973 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off))
986 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) -
987 ntohs(ip->ip_off);
993 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);
528 (ifp->if_hwassist & CSUM_FRAGMENT && (ip_off & IP_DF) == 0)) {
543 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.3-release/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c141 ip->ip_off = htons(ip->ip_off);
149 ip->ip_off = ntohs(ip->ip_off);
480 ip->ip_off = htons(path_mtu_discovery ? IP_DF : 0);
482 ip->ip_off = 0;
725 u_short ip_off; local
869 ip_off = ntohs(ip->ip_off);
870 if (ip_off
[all...]
/freebsd-10.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-10.3-release/contrib/traceroute/
H A Drip_output.c44 ip->ip_off = 0;
/freebsd-10.3-release/sys/netpfil/pf/
H A Dpf_norm.c614 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
615 frent->fe_mff = ntohs(ip->ip_off) & IP_MF;
648 ip->ip_off &= ~(IP_MF|IP_OFFMASK);
795 u_int16_t off = ntohs(h->ip_off) << 3;
925 h->ip_off = htons(ntohs(h->ip_off) +
1177 int mff = (ntohs(h->ip_off) & IP_MF);
1179 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
1182 int ip_off; local
1229 if (r->rule_flag & PFRULE_NODF && h->ip_off
1230 u_int16_t ip_off = h->ip_off; local
1360 u_int16_t ip_off = h->ip_off; local
2260 u_int16_t ip_off = h->ip_off; local
[all...]
/freebsd-10.3-release/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-10.3-release/sbin/natd/
H A Dicmp.c54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
/freebsd-10.3-release/usr.sbin/ppp/
H A Dtcpmss.c161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
/freebsd-10.3-release/cddl/lib/libdtrace/
H A Dip.d257 ipv4_flags = p == NULL ? 0 : (p->ip_off & 0xe000);
258 ipv4_offset = p == NULL ? 0 : p->ip_off;
/freebsd-10.3-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h171 __u16 ip_off; member in struct:__anon1588
/freebsd-10.3-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h173 __u16 ip_off; member in struct:__anon1595
/freebsd-10.3-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.3-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 246 milliseconds

1234