/xnu-2422.115.4/bsd/netinet/ |
H A D | lro_ext.h | 50 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)) { \ 320 if ((m)->m_len < (off) + (hlen)) { \ 328 if ((m)->m_len < (off) + (hlen)) { \
|
H A D | ip_icmp.c | 311 icmp_input(struct mbuf *m, int hlen) argument 346 i = hlen + min(icmplen, ICMP_ADVLENMIN); 352 m->m_len -= hlen; 353 m->m_data += hlen; 359 m->m_len += hlen; 360 m->m_data -= hlen; 560 ip->ip_len += hlen; /* since ip_input deducts this */ 635 rip_input(m, hlen); 818 int hlen; local 829 hlen 1100 int hlen; local [all...] |
H A D | ip_input.c | 557 ip_proto_dispatch_in_wrapper(struct mbuf *m, int hlen, u_int8_t proto) argument 559 ip_proto_dispatch_in(m, hlen, proto, 0); 563 ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto, argument 596 ip->ip_len = htons(ip->ip_len + hlen); 599 ip->ip_sum = ip_cksum_hdr_in(m, hlen); 603 hlen, proto); 629 ip->ip_len = ntohs(ip->ip_len) - hlen; 637 pr_input(m, hlen); 640 pr_input(m, hlen); 653 unsigned int hlen, checki local 1452 int i, hlen, next; local 3193 ip_cksum(struct mbuf *m, int hlen) argument [all...] |
H A D | in_cksum.c | 417 ip_cksum_hdr_dir(struct mbuf *m, uint32_t hlen, int out) argument 423 ipstat.ips_snd_swcsum_bytes += hlen; 426 ipstat.ips_rcv_swcsum_bytes += hlen; 429 if (hlen == sizeof (*ip) && 433 return (inet_cksum(m, 0, 0, hlen));
|
H A D | ip_output.c | 249 int hlen = sizeof (struct ip); local 441 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 493 hlen = len; 532 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, hlen >> 2); 537 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 978 ip_mloopback(srcifp, ifp, m, dst, hlen); 1115 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 1333 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 1335 hlen = ip->ip_hl << 2; 1721 ip->ip_sum = ip_cksum_hdr_out(m, hlen); 1882 int len, hlen, mhlen, firstlen, off, error = 0; local 2030 uint32_t offset, _hlen, mlen, hlen, len, sw_csum; local 2996 ip_mloopback(struct ifnet *srcifp, struct ifnet *origifp, struct mbuf *m, struct sockaddr_in *dst, int hlen) argument 3365 ip_output_checksum(struct ifnet *ifp, struct mbuf *m, int hlen, int ip_len, uint32_t *sw_csum) argument [all...] |
H A D | ip_mroute.c | 1148 int hlen = ip->ip_hl << 2; local 1171 if (mb0 && (M_HASCL(mb0) || mb0->m_len < hlen)) 1172 mb0 = m_pullup(mb0, hlen); 1199 mm = m_copy(mb0, 0, hlen); 1384 int hlen = ip->ip_hl << 2; local 1393 mm = m_copy(m, 0, hlen); 1394 if (mm && (M_HASCL(mm) || mm->m_len < hlen)) 1395 mm = m_pullup(mm, hlen); 1480 int hlen = ip->ip_hl << 2; local 1488 if (mb_copy && (M_HASCL(mb_copy) || mb_copy->m_len < hlen)) 1578 int hlen = ip->ip_hl << 2; local [all...] |
H A D | kpi_ipfilter.c | 218 int hlen; local 241 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 243 ip->ip_sum = in_cksum(m, hlen);
|
H A D | ip_fw2.c | 1137 ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh, argument 1230 if (hlen == 0) { /* non-ip */ 2039 * hlen The length of the IPv4 header. 2040 * hlen >0 means we have an IPv4 packet. 2042 u_int hlen = 0; /* hlen >0 means we have an IP pkt */ local 2101 hlen = ip->ip_hl << 2; 2106 if (hlen == 0) { /* do not grab addresses for non-ip pkts */ 2139 PULLUP_TO(hlen + sizeof(struct tcphdr)); 2151 PULLUP_TO(hlen [all...] |
H A D | tcp_lro.c | 669 tcp_lro(struct mbuf *m, unsigned int hlen) argument 695 if (hlen > sizeof (struct ip)) 714 tcp_hdr = (struct tcphdr *)((caddr_t)ip_hdr + hlen); 728 return (tcp_lro_process_pkt(m, ip_hdr, tcp_hdr, hlen + off));
|
/xnu-2422.115.4/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 | 158 int af = AF_INET6, hlen = sizeof (struct ip6_hdr); local 301 hlen = sizeof (struct ip); 307 M_PREPEND(m, hlen + sizeof (struct udphdr), M_DONTWAIT); 316 udp6 = (struct udphdr *)(void *)(mtod(m, caddr_t) + hlen);
|
H A D | ipsec.c | 2395 size_t hlen; local 2418 hlen = _IP_VHL_HL(ip->ip_vhl) << 2; 2420 hlen = ip->ip_hl << 2; 2423 if (m->m_len != hlen) 2429 ip->ip_sum = in_cksum(m, hlen); 2431 ip->ip_sum = in_cksum(m, hlen); 2440 if (M_LEADINGSPACE(m->m_next) < hlen) { 2447 n->m_len = hlen; 2450 m->m_pkthdr.len += hlen; 2453 m->m_next->m_len += hlen; 3233 size_t hlen; local 3999 int hlen; local 4041 int hlen; local 4085 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 | 272 int hlen, tlen, len, off, nxt0; local 1467 hlen = unfragpartlen; 1471 len = (mtu - hlen - sizeof (struct ip6_frag)) & ~7; 1507 for (off = hlen; off < tlen; off += len) { 1524 error = ip6_insertfraghdr(m0, m, hlen, &ip6f); 1529 ip6f->ip6f_offlg = htons((u_short)((off - hlen) & ~7)); 1534 mhip6->ip6_plen = htons((u_short)(len + hlen + 1542 m->m_pkthdr.len = len + hlen + sizeof (*ip6f); 1636 ip6_copyexthdr(struct mbuf **mp, caddr_t hdr, int hlen) argument 1640 if (hlen > MCLBYTE 1695 uint32_t offset, mlen, hlen, olen, sw_csum; local 1919 ip6_insertfraghdr(struct mbuf *m0, struct mbuf *m, int hlen, struct ip6_frag **frghdrp) argument [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 | 139 size_t hlen; local 174 hlen = IP_VHL_HL(ip->ip_vhl) << 2; 176 hlen = ip->ip_hl << 2; 317 ip->ip_len = htons(ip->ip_len + hlen); 328 ip->ip_len = ntohs(ip->ip_len) - hlen; 368 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) { 370 + 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);
|
/xnu-2422.115.4/bsd/kern/ |
H A D | uipc_mbuf2.c | 134 int hlen, tlen, olen; local 271 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>, 273 * note that hlen + tlen == len, and tlen > 0. 275 hlen = n->m_len - off; 276 tlen = len - hlen; 285 if (hlen + olen < len) { 311 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen 313 n->m_next->m_data -= hlen; 314 n->m_next->m_len += hlen; 315 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); [all...] |
/xnu-2422.115.4/bsd/net/ |
H A D | bpf.c | 249 int hlen; local 256 hlen = 0; 263 hlen = sizeof(struct ether_header); 270 hlen = 0; 274 hlen = 24; 282 hlen = 0; 293 hlen = 12; /* XXX 4(ATM_PH) + 3(LLC) + 5(SNAP) */ 299 hlen = 4; /* This should match PPP_HDRLEN */ 304 hlen = sizeof(struct firewire_header); 309 hlen 2082 bpf_tap_imp( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen, int outbound) argument 2167 bpf_tap_out( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen) argument 2178 bpf_tap_in( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen) argument [all...] |
H A D | pf_norm.c | 512 int hlen = ip->ip_hl << 2; local 520 m->m_data += hlen; 521 m->m_len -= hlen; 675 hlen = ip->ip_hl << 2; 676 ip->ip_len = htons(off + hlen); 677 m->m_len += hlen; 678 m->m_data -= hlen; 1210 struct pf_fragment **frag, int hlen, int mff, int drop, int *nomem) 1220 plen = ntohs(h->ip6_plen) - (hlen - sizeof *h); 1223 * Apple Modification: dimambro@apple.com. The hlen, bein 1209 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 1542 int hlen = h->ip_hl << 2; local 2287 int hlen; local 2387 int hlen; local [all...] |
H A D | ether_if_module.c | 521 int hlen; /* link layer header length */ local 523 hlen = ETHER_HDR_LEN;
|
H A D | pktap.c | 774 size_t hlen; local 786 hlen = IP_VHL_HL(ip.ip_vhl) << 2; 794 error = mbuf_copydata(m, pre + hlen, 806 error = mbuf_copydata(m, pre + hlen,
|