/darwin-on-arm/xnu/bsd/netinet/ |
H A D | lro_ext.h | 49 struct mbuf* tcp_lro(struct mbuf *m, unsigned int hlen);
|
H A D | kpi_ipfilter_var.h | 58 extern void ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto,
|
H A D | ip6.h | 304 #define IP6_EXTHDR_CHECK(m, off, hlen, action) \ 308 ((m)->m_len < (off) + (hlen)) && \ 309 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \ 313 if ((m)->m_len < (off) + (hlen)) { \ 319 if ((m)->m_len < (off) + (hlen)) { \ 326 if ((m)->m_len < (off) + (hlen)) { \
|
H A D | ip_icmp.c | 323 icmp_input(struct mbuf *m, int hlen) argument 357 i = hlen + min(icmplen, ICMP_ADVLENMIN); 363 m->m_len -= hlen; 364 m->m_data += hlen; 370 m->m_len += hlen; 371 m->m_data -= hlen; 559 ip->ip_len += hlen; /* since ip_input deducts this */ 634 rip_input(m, hlen); 811 int hlen; local 822 hlen 1090 int hlen; local [all...] |
H A D | ip_input.c | 583 ip_proto_dispatch_in_wrapper(struct mbuf *m, int hlen, u_int8_t proto) argument 585 ip_proto_dispatch_in(m, hlen, proto, 0); 589 ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto, argument 619 ip->ip_len = htons(ip->ip_len + hlen); 622 ip->ip_sum = in_cksum(m, hlen); 626 hlen, proto); 652 ip->ip_len = ntohs(ip->ip_len) - hlen; 660 pr_input(m, hlen); 663 pr_input(m, hlen); 677 unsigned int hlen, checki local 1469 int hlen = IP_VHL_HL(ip->ip_vhl) << 2; local 2845 ip_cksum(struct mbuf *m, int hlen) argument [all...] |
H A D | ip_output.c | 271 int hlen = sizeof (struct ip); local 429 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 474 hlen = len; 511 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, hlen >> 2); 520 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 904 ip_mloopback(ifp, m, dst, hlen); 1040 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 1234 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 1236 hlen = ip->ip_hl << 2; 1521 ip->ip_sum = in_cksum(m, hlen); 1832 int len, hlen, mhlen, firstlen, off, error = 0; local 2081 int hlen = 0; local [all...] |
H A D | ip_mroute.c | 1152 int hlen = ip->ip_hl << 2; local 1175 if (mb0 && (M_HASCL(mb0) || mb0->m_len < hlen)) 1176 mb0 = m_pullup(mb0, hlen); 1203 mm = m_copy(mb0, 0, hlen); 1388 int hlen = ip->ip_hl << 2; local 1397 mm = m_copy(m, 0, hlen); 1398 if (mm && (M_HASCL(mm) || mm->m_len < hlen)) 1399 mm = m_pullup(mm, hlen); 1484 int hlen = ip->ip_hl << 2; local 1492 if (mb_copy && (M_HASCL(mb_copy) || mb_copy->m_len < hlen)) 1586 int hlen = ip->ip_hl << 2; local [all...] |
H A D | kpi_ipfilter.c | 220 int hlen; local 243 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 245 ip->ip_sum = in_cksum(m, hlen);
|
H A D | ip_fw2.c | 1058 ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh, argument 1151 if (hlen == 0) { /* non-ip */ 1960 * hlen The length of the IPv4 header. 1961 * hlen >0 means we have an IPv4 packet. 1963 u_int hlen = 0; /* hlen >0 means we have an IP pkt */ local 2022 hlen = ip->ip_hl << 2; 2027 if (hlen == 0) { /* do not grab addresses for non-ip pkts */ 2060 PULLUP_TO(hlen + sizeof(struct tcphdr)); 2072 PULLUP_TO(hlen [all...] |
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ah_output.c | 195 size_t hlen = 0; /*IP header+option in bytes*/ local 244 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 246 hlen = ip->ip_hl << 2; 249 if (m->m_len != hlen) 563 int hlen; local 569 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 571 hlen = ip->ip_hl << 2; 574 if (m->m_len < hlen) { 580 if (hlen == sizeof(struct ip)) 583 optlen = hlen [all...] |
H A D | ipcomp_output.c | 100 * <-> hlen 249 size_t hlen = 0; /*ip header len*/ local 257 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 259 hlen = ip->ip_hl << 2; 266 hlen = sizeof(*ip6);
|
H A D | udp6_output.c | 183 int af = AF_INET6, hlen = sizeof(struct ip6_hdr); local 316 hlen = sizeof(struct ip); 322 M_PREPEND(m, hlen + sizeof(struct udphdr), M_DONTWAIT); 331 udp6 = (struct udphdr *)(void *)(mtod(m, caddr_t) + hlen);
|
H A D | ipsec.c | 2216 size_t hlen; local 2239 hlen = _IP_VHL_HL(ip->ip_vhl) << 2; 2241 hlen = ip->ip_hl << 2; 2244 if (m->m_len != hlen) 2250 ip->ip_sum = in_cksum(m, hlen); 2252 ip->ip_sum = in_cksum(m, hlen); 2261 if (M_LEADINGSPACE(m->m_next) < hlen) { 2268 n->m_len = hlen; 2271 m->m_pkthdr.len += hlen; 2274 m->m_next->m_len += hlen; 3062 size_t hlen; local 3854 int hlen; local 3896 int hlen; local 3940 int hlen; local [all...] |
H A D | ipcomp_input.c | 95 size_t hlen; local 123 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 125 hlen = ip->ip_hl << 2;
|
H A D | ip6_output.c | 284 int hlen, tlen, len, off; local 1383 hlen = unfragpartlen; 1387 len = (mtu - hlen - sizeof(struct ip6_frag)) & ~7; 1425 for (off = hlen; off < tlen; off += len) { 1440 error = ip6_insertfraghdr(m0, m, hlen, &ip6f); 1445 ip6f->ip6f_offlg = htons((u_short)((off - hlen) & ~7)); 1450 mhip6->ip6_plen = htons((u_short)(len + hlen + 1459 m->m_pkthdr.len = len + hlen + sizeof(*ip6f); 1553 ip6_copyexthdr(mp, hdr, hlen) 1556 int hlen; [all...] |
H A D | ah_core.c | 1289 size_t hlen; local 1293 hlen = IP_VHL_HL(iphdr.ip_vhl) << 2; 1295 hlen = iphdr.ip_hl << 2; 1304 if (hlen != sizeof(struct ip)) { 1308 if (hlen > MCLBYTES) { 1313 if (n && hlen > MLEN) { 1324 m_copydata(m, off, hlen, mtod(n, caddr_t)); 1332 while (i < hlen) { 1333 if (i + IPOPT_OPTVAL >= hlen) { 1341 i + IPOPT_OLEN < hlen) [all...] |
H A D | ah_input.c | 141 size_t hlen; local 176 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 178 hlen = ip->ip_hl << 2; 318 ip->ip_len = htons(ip->ip_len + hlen); 329 ip->ip_len = ntohs(ip->ip_len) - hlen; 369 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) { 371 + sizoff + siz1 + hlen);
|
H A D | esp_output.c | 230 * <-> hlen 343 size_t hlen = 0; /* ip header len */ local 376 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 378 hlen = ip->ip_hl << 2; 385 hlen = sizeof(*ip6);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | uipc_mbuf2.c | 133 int hlen, tlen, olen; local 270 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>, 272 * note that hlen + tlen == len, and tlen > 0. 274 hlen = n->m_len - off; 275 tlen = len - hlen; 284 if (hlen + olen < len) { 310 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen 312 n->m_next->m_data -= hlen; 313 n->m_next->m_len += hlen; 314 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | bpf.c | 253 int hlen; local 260 hlen = 0; 267 hlen = sizeof(struct ether_header); 274 hlen = 0; 278 hlen = 24; 286 hlen = 0; 297 hlen = 12; /* XXX 4(ATM_PH) + 3(LLC) + 5(SNAP) */ 303 hlen = 4; /* This should match PPP_HDRLEN */ 308 hlen = sizeof(struct firewire_header); 313 hlen 1973 bpf_tap_imp( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen, int outbound) argument 2058 bpf_tap_out( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen) argument 2069 bpf_tap_in( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen) argument [all...] |
H A D | ether_at_pr_module.c | 144 int hlen; /* link layer header length */ local 149 hlen = ETHER_HDR_LEN;
|
H A D | pf_norm.c | 508 int hlen = ip->ip_hl << 2; local 516 m->m_data += hlen; 517 m->m_len -= hlen; 671 hlen = ip->ip_hl << 2; 672 ip->ip_len = htons(off + hlen); 673 m->m_len += hlen; 674 m->m_data -= hlen; 1203 struct pf_fragment **frag, int hlen, int mff, int drop, int *nomem) 1213 plen = ntohs(h->ip6_plen) - (hlen - sizeof *h); 1216 * Apple Modification: dimambro@apple.com. The hlen, bein 1202 pf_frag6cache(struct mbuf **m0, struct ip6_hdr *h, struct ip6_frag *fh, struct pf_fragment **frag, int hlen, int mff, int drop, int *nomem) argument 1535 int hlen = h->ip_hl << 2; local 2277 int hlen; local 2377 int hlen; local [all...] |
H A D | if_bridge.c | 3149 int hlen = M_CSUM_DATA_IPv4_IPHL(m->m_pkthdr.csum_data); local 3168 amt += hlen; 3243 ip->ip_sum = in_cksum(m_ip, hlen); 3287 ip->ip_sum = in_cksum(m, hlen); 3320 hlen = M_CSUM_DATA_IPv4_IPHL(m->m_pkthdr.csum_data); 3325 amt += hlen; 3389 ip->ip_sum = in_cksum(m_ip, hlen); 4710 int snap, error, i, hlen; local 4911 hlen = ip->ip_hl << 2; 4912 if (hlen < sizeo 5004 int len, hlen; local [all...] |
H A D | ether_if_module.c | 522 int hlen; /* link layer header length */ local 524 hlen = ETHER_HDR_LEN;
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | adsp_RxData.c | 121 int hlen; local 203 if (LTE((sp->firstRtmtSeq + eom + (hlen = gbuf_msgsize(mp))), 209 sp->firstRtmtSeq += eom + hlen;
|