Searched refs:tlen (Results 1 - 15 of 15) sorted by relevance

/xnu-2782.1.97/bsd/nfs/
H A Dxdr_subs.h216 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 Dnfs_subs.c381 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 Dnfs_serv.c693 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-2782.1.97/bsd/netinet/
H A Dlro_ext.h53 int tcp_start_coalescing(struct ip *, struct tcphdr *, int tlen);
H A Dtcp_input.c293 static inline void update_iaj_state(struct tcpcb *tp, uint32_t tlen,
304 struct tcpopt *to, u_int32_t tlen);
859 tcp_adaptive_rwtimo_check(struct tcpcb *tp, int tlen) argument
861 if (tp->t_adaptive_rtimo > 0 && tlen > 0 &&
1495 int tlen, off; local
1575 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
1578 if (tcp_input_checksum(AF_INET6, m, th, off0, tlen))
1625 tlen = ip->ip_len;
1627 if (tcp_input_checksum(AF_INET, m, th, off0, tlen))
1650 if (off < sizeof (struct tcphdr) || off > tlen) {
5558 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) argument
[all...]
H A Dtcp_lro.c672 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 Dtcp_subr.c606 int tlen; local
654 tlen = 0;
685 tlen = 0;
716 tlen));
717 tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
721 tlen += sizeof (struct tcpiphdr);
722 ip->ip_len = tlen;
725 m->m_len = tlen;
726 m->m_pkthdr.len = tlen;
758 htonl((tlen
[all...]
/xnu-2782.1.97/bsd/netkey/
H A Dkey_debug.c83 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 Dkey.c1748 int tlen; local
1761 tlen = PFKEY_EXTLEN(xpl0) - sizeof(*xpl0);
1764 while (tlen > 0) {
1903 tlen -= xisr->sadb_x_ipsecrequest_len;
1906 if (tlen < 0) {
1907 ipseclog((LOG_DEBUG, "key_msg2sp: becoming tlen < 0.\n"));
1979 int tlen; local
1987 tlen = key_getspreqmsglen(sp);
1989 m = key_alloc_mbuf(tlen);
1996 m->m_len = tlen;
3259 u_int tlen; local
4911 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-2782.1.97/bsd/kern/
H A Duipc_mbuf2.c134 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 Dsysv_msg.c1020 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-2782.1.97/bsd/netinet6/
H A Dah_core.c1207 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 Dip6_output.c276 int hlen, tlen, len, off, nxt0; local
1388 * 1-a: send as is if tlen <= path mtu
1389 * 1-b: fragment if tlen > path mtu
1392 * 2-a: send as is if tlen <= interface mtu
1393 * 2-b: error if tlen > interface mtu
1401 tlen = m->m_pkthdr.len;
1415 if (ip6obf.dontfrag && tlen > IN6_LINKMTU(ifp)) { /* case 2-b */
1442 (tlen <= mtu || TSO_IPV6_OK(ifp, m) ||
1449 ip6_output_checksum(ifp, mtu, m, nxt0, tlen, optlen);
1526 for (off = hlen; off < tlen; of
3808 ip6_output_checksum(struct ifnet *ifp, uint32_t mtu, struct mbuf *m, int nxt0, uint32_t tlen, uint32_t optlen) argument
[all...]
H A Din6.c2982 int tlen = -1, dscopecmp, bscopecmp, matchcmp; local
3186 tlen = in6_matchlen(IFA_IN6(ifa), dst);
3187 matchcmp = tlen - blen;
3213 blen = tlen >= 0 ? tlen :
3256 int dst_scope = in6_addrscope(dst), blen = -1, tlen; local
3314 tlen = in6_matchlen(IFA_IN6(ifa), dst);
3315 if (tlen > blen) {
3316 blen = tlen;
/xnu-2782.1.97/bsd/net/
H A Dpf.c2385 int len, tlen; local
2397 tlen = sizeof (struct tcphdr);
2399 tlen += 4;
2404 len = sizeof (struct ip) + tlen;
2409 len = sizeof (struct ip6_hdr) + tlen;
2473 h->ip_len = htons(tlen);
2486 h6->ip6_plen = htons(tlen);
2501 th->th_off = tlen >> 2;
2547 sizeof (struct ip6_hdr), tlen);

Completed in 93 milliseconds