/freebsd-10.3-release/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-10.3-release/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 143 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 D | ip.c | 208 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 D | resend.c | 50 if (ip->ip_off & 0x3fff) 51 printf("frag @%#x ", (ip->ip_off & 0x1fff) << 3);
|
/freebsd-10.3-release/sys/netipsec/ |
H A D | xform_ipip.c | 423 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 D | ipsec_output.c | 483 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 D | emac.h | 78 unsigned short ip_off; member in struct:__anon6438
|
/freebsd-10.3-release/sys/netinet/ |
H A D | ip_output.c | 133 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 D | ip_input.c | 709 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 D | ip_fastfwd.c | 170 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 D | ip.h | 61 u_short ip_off; /* fragment offset field */ member in struct:ip
|
H A D | raw_ip.c | 293 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 D | ip_fil_freebsd.c | 141 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 D | ip.h | 46 * 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 D | rip_output.c | 44 ip->ip_off = 0;
|
/freebsd-10.3-release/sys/netpfil/pf/ |
H A D | pf_norm.c | 614 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 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-10.3-release/sbin/natd/ |
H A D | icmp.c | 54 if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
|
/freebsd-10.3-release/usr.sbin/ppp/ |
H A D | tcpmss.c | 161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
|
/freebsd-10.3-release/cddl/lib/libdtrace/ |
H A D | ip.d | 257 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 D | ip_compat.h | 171 __u16 ip_off; member in struct:__anon1588
|
/freebsd-10.3-release/contrib/ipfilter/ipsend/.OLD/ |
H A D | ip_compat.h | 173 __u16 ip_off; member in struct:__anon1595
|
/freebsd-10.3-release/contrib/ipfilter/ |
H A D | mli_ipl.c | 276 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 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);
|