/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ipcomp_input.c | 154 ip->ip_len -= sizeof(struct ipcomp); 156 ip->ip_len = htons(ntohs(ip->ip_len) - sizeof(struct ipcomp)); 183 len = ip->ip_len; 185 len = ntohs(ip->ip_len); 189 * as ip_len is manipulated differently on *BSDs. 199 ip->ip_len = len & 0xffff; 201 ip->ip_len = htons(len & 0xffff);
|
H A D | esp_output.c | 480 if (esphlen < (IP_MAXPACKET - ntohs(ip->ip_len))) 481 ip->ip_len = htons(ntohs(ip->ip_len) + esphlen); 670 if (extendsiz < (IP_MAXPACKET - ntohs(ip->ip_len))) 671 ip->ip_len = htons(ntohs(ip->ip_len) + extendsiz); 784 if (siz < (IP_MAXPACKET - ntohs(ip->ip_len))) 785 ip->ip_len = htons(ntohs(ip->ip_len) + siz); 807 udp->uh_ulen = htons(ntohs(ip->ip_len) [all...] |
H A D | esp_input.c | 154 ip->ip_len = ip->ip_len - stripsiz; 324 ip->ip_len = ip->ip_len - siz; 326 ip->ip_len = htons(ntohs(ip->ip_len) - siz); 422 ip->ip_len = ip->ip_len - taillen; 424 ip->ip_len = htons(ntohs(ip->ip_len) [all...] |
H A D | ah_input.c | 318 ip->ip_len = htons(ip->ip_len + hlen); 329 ip->ip_len = ntohs(ip->ip_len) - hlen; 570 ip->ip_len = ip->ip_len - stripsiz; 572 ip->ip_len = htons(ntohs(ip->ip_len) - stripsiz);
|
H A D | ah_output.c | 322 if (ahlen < (IP_MAXPACKET - ntohs(ip->ip_len))) 323 ip->ip_len = htons(ntohs(ip->ip_len) + ahlen);
|
H A D | ipcomp_output.c | 305 ip->ip_len = htons(compoff + complen + plen);
|
H A D | ipsec.c | 2306 ip->ip_len = htons(plen + sizeof(struct ip)); 2309 "leave ip_len as is (invalid packet)\n")); 2399 ip->ip_len = htons(plen); 2402 "leave ip_len as is (invalid packet)\n")); 2572 ip->ip_len = htons(plen + sizeof(struct ip)); 2574 ip->ip_len = htons(plen); 2576 "leave ip_len as is (invalid packet)\n")); 3708 ip->ip_len = ntohs(ip->ip_len); /* flip len field before calling ip_output */ 4440 ip->ip_len [all...] |
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_output.c | 534 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len); 869 HTONS(ip->ip_len); 897 NTOHS(ip->ip_len); 989 if ((u_short)ip->ip_len > ifp->if_mtu) { 1073 HTONS(ip->ip_len); 1099 NTOHS(ip->ip_len); 1180 HTONS(ip->ip_len); 1279 NTOHS(ip->ip_len); 1305 HTONS(ip->ip_len); 1328 NTOHS(ip->ip_len); 1973 u_short csum, offset, ip_len; local [all...] |
H A D | ip_input.c | 619 ip->ip_len = htons(ip->ip_len + hlen); 652 ip->ip_len = ntohs(ip->ip_len) - hlen; 775 ip->ip_len = ntohs(ip->ip_len) - hlen; 793 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len); 867 NTOHS(ip->ip_len); 870 if (ip->ip_len < hlen) { 884 if (m->m_pkthdr.len < ip->ip_len) { [all...] |
H A D | ip.h | 95 u_short ip_len; /* total length */ member in struct:ip
|
H A D | ip_icmp.c | 249 icmplen = min(oiplen + 8, oip->ip_len); 287 HTONS(nip->ip_len); 302 nip->ip_len = m->m_len; 336 icmplen = ip->ip_len; 454 NTOHS(icp->icmp_ip.ip_len); 559 ip->ip_len += hlen; /* since ip_input deducts this */ 787 ip->ip_len -= optlen; 827 icp->icmp_cksum = in_cksum(m, ip->ip_len - hlen); 1111 if (hlen < 20 || hlen > 40 || ip->ip_len != m->m_pkthdr.len)
|
H A D | tcp_lro.c | 146 payload_len = ip_hdr->ip_len - off; 247 ip->ip_len += lro_mb->m_pkthdr.len; 448 payload_len = ip_hdr->ip_len - off; 745 tlen = ip_hdr->ip_len ; //ignore IP header bytes len 766 printf("lro_proto_input: ip_len = %d \n", 767 ip_hdr->ip_len); 778 int tlen = ip->ip_len; 807 ip->ip_len + IPPROTO_TCP));
|
H A D | ip_fw2.c | 1160 int ip_off, offset, ip_len; local 1166 ip_len = ntohs(ip->ip_len); 1169 ip_len = ip->ip_len; 1222 ntohs(ip->ip_id), ip_len - (ip->ip_hl << 2), 1794 * set ip_len to the payload size so we can compute 1798 ip->ip_len = htons(sizeof(struct tcphdr)); 1804 ip->ip_len = m->m_pkthdr.len; 1814 send_reject(struct ip_fw_args *args, int code, int offset, __unused int ip_len) argument 1990 u_int16_t ip_len=0; local [all...] |
H A D | tcp_debug.c | 212 ((struct ip *)ipgen)->ip_len;
|
H A D | ip_mroute.c | 1342 int plen = ip->ip_len; 1500 tbf_control(vifp, mb_copy, mtod(mb_copy, struct ip *), ip->ip_len); 1508 int i, len = ip->ip_len; 1546 ip_copy->ip_len += len; 1557 HTONS(ip->ip_len); 1569 tbf_control(vifp, mb_copy, ip, ip_copy->ip_len); 1739 len = mtod(m, struct ip *)->ip_len;
|
H A D | udp_usrreq.c | 329 if (ip->ip_len != len) { 330 if (len > ip->ip_len || len < sizeof(struct udphdr)) { 338 m_adj(m, len - ip->ip_len); 339 /* ip->ip_len = len; */ 667 ip->ip_len += iphlen; 766 ip6->ip6_plen = ip->ip_len; 1524 ((struct ip *)ui)->ip_len = sizeof (struct udpiphdr) + len;
|
H A D | ip_divert.c | 370 ((u_short)ntohs(ip->ip_len) > m->m_pkthdr.len)) { 377 NTOHS(ip->ip_len);
|
H A D | in_gif.c | 176 iphdr.ip_len = m->m_pkthdr.len + sizeof(struct ip);
|
H A D | ip_compat.h | 104 #define IPMINLEN(i, h) ((i)->ip_len >= ((i)->ip_hl * 4 + sizeof(struct h))) 568 __u16 ip_len;
|
H A D | raw_ip.c | 395 ip->ip_len = m->m_pkthdr.len; 409 || (ip->ip_len > m->m_pkthdr.len) 410 || (ip->ip_len < (IP_VHL_HL(ip->ip_vhl) << 2))) {
|
H A D | kpi_ipfilter.c | 318 /* Put ip_len and ip_off in host byte order, ip_output expects that */ 321 NTOHS(ip->ip_len);
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | pf_norm.c | 510 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4; local 511 u_int16_t fr_max = ip_len + off; 560 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 564 precut = FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - 566 if (precut >= ip_len) 573 ip_len -= precut; 574 ip->ip_len = htons(ip_len); 577 for (; frea != NULL && ip_len 702 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2); local 1538 int ip_len; local [all...] |
H A D | if_utun_crypto_ipsec.c | 821 ip->ip_len = ntohs(ip->ip_len); /* flip len field before calling ip_output */
|
/darwin-on-arm/xnu/osfmk/kdp/ |
H A D | kdp_udp.h | 119 #define ip_len ip_vhltl.ip_x.ip_xlen macro
|
H A D | kdp_udp.c | 508 ip->ip_len = htons(sizeof (struct udpiphdr) + pkt.len); 578 ip->ip_len = htons(sizeof (struct udpiphdr) + pkt.len); 1456 ip->ip_len = htons(sizeof (struct udpiphdr) + pkt.len);
|