Searched refs:hlen (Results 1 - 24 of 24) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dkpi_ipfilter_var.h59 void ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto, ipfilter_t ipfref);
H A Dip6.h256 #define IP6_EXTHDR_CHECK(m, off, hlen, action) \
260 ((m)->m_len < (off) + (hlen)) && \
261 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
265 if ((m)->m_len < (off) + (hlen)) { \
271 if ((m)->m_len < (off) + (hlen)) { \
278 if ((m)->m_len < (off) + (hlen)) { \
H A Dip_icmp.c308 icmp_input(struct mbuf *m, int hlen) argument
337 i = hlen + min(icmplen, ICMP_ADVLENMIN);
343 m->m_len -= hlen;
344 m->m_data += hlen;
350 m->m_len += hlen;
351 m->m_data -= hlen;
593 ip->ip_len += hlen; /* since ip_input deducts this */
668 rip_input(m, hlen);
825 int hlen; local
833 hlen
1104 int hlen; local
[all...]
H A Dip_input.c461 int hlen,
482 ip->ip_len = htons(ip->ip_len + hlen);
485 ip->ip_sum = in_cksum(m, hlen);
488 filter->ipf_filter.cookie, (mbuf_t*)&m, hlen, proto);
510 ip->ip_len = ntohs(ip->ip_len) - hlen;
516 (*ip_protox[ip->ip_p]->pr_input)(m, hlen);
520 (*ip_protox[ip->ip_p]->pr_input)(m, hlen);
540 int i, hlen, checkif; local
600 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
614 hlen
459 ip_proto_dispatch_in( struct mbuf *m, int hlen, u_int8_t proto, ipfilter_t inject_ipfref) argument
1285 int hlen = IP_VHL_HL(ip->ip_vhl) << 2; local
[all...]
H A Dip_output.c242 int hlen = sizeof (struct ip); local
349 hlen = IP_VHL_HL(ip->ip_vhl) << 2 ;
381 hlen = len;
394 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, hlen >> 2);
403 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
722 ip_mloopback(ifp, m, dst, hlen);
982 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
984 hlen = ip->ip_hl << 2;
1070 if ((error = (*fr_checkp)(ip, hlen, ifp, 1, &m1)) || !m1) {
1249 ip->ip_sum = in_cksum(m, hlen);
1746 int hlen = 0; local
[all...]
H A Dip_fw2.c560 ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh, argument
653 if (hlen == 0) { /* non-ip */
1458 * hlen The length of the IPv4 header.
1459 * hlen >0 means we have an IPv4 packet.
1461 u_int hlen = 0; /* hlen >0 means we have an IP pkt */ local
1520 hlen = ip->ip_hl << 2;
1525 if (hlen == 0) { /* do not grab addresses for non-ip pkts */
1558 PULLUP_TO(hlen + sizeof(struct tcphdr));
1570 PULLUP_TO(hlen
[all...]
H A Dip_mroute.c1157 int hlen = ip->ip_hl << 2; local
1180 if (mb0 && (M_HASCL(mb0) || mb0->m_len < hlen))
1181 mb0 = m_pullup(mb0, hlen);
1208 mm = m_copy(mb0, 0, hlen);
1393 int hlen = ip->ip_hl << 2; local
1402 mm = m_copy(m, 0, hlen);
1403 if (mm && (M_HASCL(mm) || mm->m_len < hlen))
1404 mm = m_pullup(mm, hlen);
1489 int hlen = ip->ip_hl << 2; local
1497 if (mb_copy && (M_HASCL(mb_copy) || mb_copy->m_len < hlen))
1587 int hlen = ip->ip_hl << 2; local
[all...]
H A Dkpi_ipfilter.c213 int hlen; local
236 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
238 ip->ip_sum = in_cksum(m, hlen);
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Duipc_mbuf2.c132 int hlen, tlen, olen; local
269 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
271 * note that hlen + tlen == len, and tlen > 0.
273 hlen = n->m_len - off;
274 tlen = len - hlen;
283 if (hlen + olen < len) {
309 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen
311 n->m_next->m_data -= hlen;
312 n->m_next->m_len += hlen;
313 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dah_output.c167 size_t hlen = 0; /*IP header+option in bytes*/ local
216 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
218 hlen = ip->ip_hl << 2;
221 if (m->m_len != hlen)
535 int hlen; local
541 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
543 hlen = ip->ip_hl << 2;
546 if (m->m_len < hlen) {
552 if (hlen == sizeof(struct ip))
555 optlen = hlen
[all...]
H A Dudp6_output.c153 int af = AF_INET6, hlen = sizeof(struct ip6_hdr); local
265 hlen = sizeof(struct ip);
271 M_PREPEND(m, hlen + sizeof(struct udphdr), M_DONTWAIT);
280 udp6 = (struct udphdr *)(mtod(m, caddr_t) + hlen);
H A Dipcomp_output.c100 * <-> 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 Dipsec.c2151 size_t hlen; local
2174 hlen = _IP_VHL_HL(ip->ip_vhl) << 2;
2176 hlen = ip->ip_hl << 2;
2179 if (m->m_len != hlen)
2185 ip->ip_sum = in_cksum(m, hlen);
2187 ip->ip_sum = in_cksum(m, hlen);
2196 if (M_LEADINGSPACE(m->m_next) < hlen) {
2203 n->m_len = hlen;
2206 m->m_pkthdr.len += hlen;
2209 m->m_next->m_len += hlen;
2841 size_t hlen; local
3548 int hlen; local
3590 int hlen; local
3634 int hlen; local
[all...]
H A Dipcomp_input.c93 size_t hlen; local
118 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
120 hlen = ip->ip_hl << 2;
H A Dip6_output.c174 int hlen, tlen, len, off; local
1032 hlen = unfragpartlen;
1036 len = (mtu - hlen - sizeof(struct ip6_frag)) & ~7;
1069 for (off = hlen; off < tlen; off += len) {
1084 error = ip6_insertfraghdr(m0, m, hlen, &ip6f);
1089 ip6f->ip6f_offlg = htons((u_short)((off - hlen) & ~7));
1094 mhip6->ip6_plen = htons((u_short)(len + hlen +
1103 m->m_pkthdr.len = len + hlen + sizeof(*ip6f);
1182 ip6_copyexthdr(mp, hdr, hlen)
1185 int hlen;
[all...]
H A Dah_core.c1223 size_t hlen; local
1227 hlen = IP_VHL_HL(iphdr.ip_vhl) << 2;
1229 hlen = iphdr.ip_hl << 2;
1238 if (hlen != sizeof(struct ip)) {
1242 if (hlen > MCLBYTES) {
1247 if (n && hlen > MLEN) {
1258 m_copydata(m, off, hlen, mtod(n, caddr_t));
1266 while (i < hlen) {
1267 if (i + IPOPT_OPTVAL >= hlen) {
1275 i + IPOPT_OLEN < hlen)
[all...]
H A Dah_input.c111 size_t hlen; local
140 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
142 hlen = ip->ip_hl << 2;
280 ip->ip_len = htons(ip->ip_len + hlen);
291 ip->ip_len = ntohs(ip->ip_len) - hlen;
331 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1 + hlen) {
333 + sizoff + siz1 + hlen);
H A Desp_output.c202 * <-> hlen
315 size_t hlen = 0; /* ip header len */ local
348 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
350 hlen = ip->ip_hl << 2;
357 hlen = sizeof(*ip6);
H A Desp_input.c126 size_t hlen; local
152 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
154 hlen = ip->ip_hl << 2;
347 || m->m_pkthdr.len - taillen < hlen) { /*?*/
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbpf.c252 int hlen; local
259 hlen = 0;
266 hlen = sizeof(struct ether_header);
273 hlen = 0;
277 hlen = 24;
285 hlen = 0;
296 hlen = 12; /* XXX 4(ATM_PH) + 3(LLC) + 5(SNAP) */
302 hlen = 4; /* This should match PPP_HDRLEN */
307 hlen = sizeof(struct firewire_header);
316 *datlen = len - hlen;
1503 bpf_tap_imp( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen, int outbound) argument
1586 bpf_tap_out( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen) argument
1597 bpf_tap_in( ifnet_t ifp, u_int32_t dlt, mbuf_t m, void* hdr, size_t hlen) argument
[all...]
H A Dether_at_pr_module.c148 int hlen; /* link layer header length */ local
153 hlen = ETHER_HDR_LEN;
H A Dether_if_module.c516 int hlen; /* link layer header length */ local
518 hlen = ETHER_HDR_LEN;
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dadsp_RxData.c121 int hlen; local
203 if (LTE((sp->firstRtmtSeq + eom + (hlen = gbuf_msgsize(mp))),
209 sp->firstRtmtSeq += eom + hlen;
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/
H A Dkdp_udp.c351 unsigned int hlen
357 while (hlen-- > 0) {

Completed in 92 milliseconds