/xnu-2422.115.4/bsd/nfs/ |
H A D | xdr_subs.h | 216 uint32_t tlen; local 221 tlen = MIN(xbp->xb_left, len); 222 if (tlen) { 223 xbp->xb_ptr += tlen; 224 xbp->xb_left -= tlen; 225 len -= tlen; 332 uint32_t len, tlen; local 346 tlen = MIN(xbp->xb_left, len); 347 if (tlen) { 349 if (tlen > coun 375 uint32_t len, tlen; local [all...] |
H A D | nfs_subs.c | 381 uint32_t paddedlen, tlen; local 392 tlen = MIN(nmc->nmc_left, paddedlen); 393 if (tlen) { 395 if (tlen > len) 396 tlen = len; 397 bcopy(buf, nmc->nmc_ptr, tlen); 399 bzero(nmc->nmc_ptr, tlen); 401 nmc->nmc_ptr += tlen; 402 nmc->nmc_left -= tlen; 403 paddedlen -= tlen; 422 uint32_t tlen; local 449 uint32_t paddedlen, tlen; local [all...] |
H A D | nfs_serv.c | 693 int error, mpcnt, tlen, len, attrerr; local 786 tlen = nfsm_rndup(len); 787 nfsm_adj(mpath, NFS_MAXPATHLEN-tlen, tlen-len); 820 uint32_t reqlen, maxlen, count, len, tlen, left; local 925 tlen = nfsm_rndup(len); 926 if (count != tlen || tlen != len) 927 nfsm_adj(mread, count - tlen, tlen 1379 int error, mlen, i, ioflags, tlen; local [all...] |
/xnu-2422.115.4/bsd/netinet/ |
H A D | lro_ext.h | 53 int tcp_start_coalescing(struct ip *, struct tcphdr *, int tlen);
|
H A D | tcp_input.c | 322 static inline void update_iaj_state(struct tcpcb *tp, uint32_t tlen, int reset_size); 332 struct tcpopt *to, u_int32_t tlen); 886 tcp_adaptive_rwtimo_check(struct tcpcb *tp, int tlen) argument 888 if (tp->t_adaptive_rtimo > 0 && tlen > 0 && 1328 int tlen, off; local 1406 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0; 1409 if (tcp_input_checksum(AF_INET6, m, th, off0, tlen)) 1456 tlen = ip->ip_len; 1458 if (tcp_input_checksum(AF_INET, m, th, off0, tlen)) 1481 if (off < sizeof (struct tcphdr) || off > tlen) { 5377 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) argument [all...] |
H A D | tcp_lro.c | 672 unsigned int tlen; local 715 tlen = ip_hdr->ip_len ; //ignore IP header bytes len 716 m->m_pkthdr.lro_pktlen = tlen; /* Used to return max pkt encountered to tcp */ 720 if (off < sizeof (struct tcphdr) || off > tlen) { 767 tcp_start_coalescing(struct ip *ip_hdr, struct tcphdr *tcp_hdr, int tlen) argument 788 (lf->lr_seq != (tcp_hdr->th_seq + tlen))) { 789 lf->lr_seq = tcp_hdr->th_seq + tlen; 800 tcp_lro_insert_flow(NULL, ip_hdr, tcp_hdr, tlen, 0, hash,
|
H A D | tcp_subr.c | 583 register int tlen; local 631 tlen = 0; 662 tlen = 0; 693 tlen)); 694 tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr); 698 tlen += sizeof (struct tcpiphdr); 699 ip->ip_len = tlen; 702 m->m_len = tlen; 703 m->m_pkthdr.len = tlen; 735 htonl((tlen [all...] |
/xnu-2422.115.4/bsd/netkey/ |
H A D | key_debug.c | 83 int tlen, extlen; local 96 tlen = PFKEY_UNUNIT64(base->sadb_msg_len) - sizeof(struct sadb_msg); 99 while (tlen > 0) { 107 if (ext->sadb_ext_len > tlen) { 165 tlen -= extlen; 455 int tlen; local 458 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl); 461 while (tlen > 0) { 485 if (xisr->sadb_x_ipsecrequest_len > tlen) { 490 tlen [all...] |
H A D | key.c | 1793 int tlen; local 1806 tlen = PFKEY_EXTLEN(xpl0) - sizeof(*xpl0); 1809 while (tlen > 0) { 1948 tlen -= xisr->sadb_x_ipsecrequest_len; 1951 if (tlen < 0) { 1952 ipseclog((LOG_DEBUG, "key_msg2sp: becoming tlen < 0.\n")); 2024 int tlen; local 2032 tlen = key_getspreqmsglen(sp); 2034 m = key_alloc_mbuf(tlen); 2041 m->m_len = tlen; 3304 u_int tlen; local 4935 key_setsadbmsg( u_int8_t type, u_int16_t tlen, u_int8_t satype, u_int32_t seq, pid_t pid, u_int16_t reserved) argument [all...] |
/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. 276 tlen = len - hlen; 304 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen 306 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); 307 n->m_len += tlen; 308 m_adj(n->m_next, tlen); 346 /* get tlen fro [all...] |
H A D | sysv_msg.c | 1020 size_t tlen; local 1023 tlen = msginfo.msgssz; 1025 tlen = msgsz; 1032 eval = copyin(user_msgp, &msgpool[next * msginfo.msgssz], tlen); 1045 msgsz -= tlen; 1046 user_msgp = user_msgp + tlen; /* ptr math */ 1420 size_t tlen; local 1424 tlen = msginfo.msgssz; 1426 tlen = msgsz; 1433 user_msgp, tlen); [all...] |
/xnu-2422.115.4/bsd/netinet6/ |
H A D | ah_core.c | 1207 int tlen; local 1229 tlen = n->m_len - off; 1231 tlen = len; 1233 (algo->update)(algos, mtod(n, caddr_t) + off, tlen); 1235 len -= tlen;
|
H A D | ip6_output.c | 272 int hlen, tlen, len, off, nxt0; local 1369 * 1-a: send as is if tlen <= path mtu 1370 * 1-b: fragment if tlen > path mtu 1373 * 2-a: send as is if tlen <= interface mtu 1374 * 2-b: error if tlen > interface mtu 1382 tlen = m->m_pkthdr.len; 1396 if (ip6obf.dontfrag && tlen > IN6_LINKMTU(ifp)) { /* case 2-b */ 1423 (tlen <= mtu || TSO_IPV6_OK(ifp, m) || 1430 ip6_output_checksum(ifp, mtu, m, nxt0, tlen, optlen); 1507 for (off = hlen; off < tlen; of 3805 ip6_output_checksum(struct ifnet *ifp, uint32_t mtu, struct mbuf *m, int nxt0, uint32_t tlen, uint32_t optlen) argument [all...] |
H A D | in6.c | 3312 int tlen = -1, dscopecmp, bscopecmp, matchcmp; local 3516 tlen = in6_matchlen(IFA_IN6(ifa), dst); 3517 matchcmp = tlen - blen; 3543 blen = tlen >= 0 ? tlen : 3586 int dst_scope = in6_addrscope(dst), blen = -1, tlen; local 3644 tlen = in6_matchlen(IFA_IN6(ifa), dst); 3645 if (tlen > blen) { 3646 blen = tlen;
|
/xnu-2422.115.4/bsd/net/ |
H A D | pf.c | 2386 int len, tlen; local 2398 tlen = sizeof (struct tcphdr); 2400 tlen += 4; 2405 len = sizeof (struct ip) + tlen; 2410 len = sizeof (struct ip6_hdr) + tlen; 2474 h->ip_len = htons(tlen); 2487 h6->ip6_plen = htons(tlen); 2502 th->th_off = tlen >> 2; 2548 sizeof (struct ip6_hdr), tlen);
|