| /xnu-11215/tests/ |
| H A D | pfkey.c | 218 uint16_t tlen = 0; in send_pfkey_spd_add_message() local 287 uint16_t tlen = 0; in send_pfkey_spd_get_message() local 316 uint16_t tlen = 0; in send_pfkey_spd_enable_message() local 345 uint16_t tlen = 0; in send_pfkey_spd_disable_message() local 374 uint16_t tlen = 0; in send_pfkey_spd_delete_message() local 403 uint16_t tlen = 0; in send_pfkey_spd_dump_message() local 426 uint16_t tlen = 0; in send_pfkey_flush_sp() local 449 uint16_t tlen = 0; in send_pfkey_register() local 472 uint16_t tlen = 0; in send_pkey_get_spi() local 532 uint16_t tlen = 0; in send_pkey_add_sa() local [all …]
|
| H A D | ipsec.m | 56 uint16_t tlen = 0; 67 tlen += sizeof(*msg_payload); 82 tlen += sizeof(*sa2_payload); 89 tlen += sizeof(*sa2_x_payload); 158 tlen += sizeof(*ipsec_if_payload); 167 arc4random_buf(payload + tlen, 32); 168 tlen += PFKEY_ALIGN8(32); 176 tlen += sizeof(*auth_key_payload); 178 tlen += PFKEY_ALIGN8(32); 200 uint16_t tlen = 0; [all …]
|
| /xnu-11215/bsd/nfs/ |
| H A D | xdr_subs.h | 228 size_t tlen; in xb_advance() local 235 if (tlen) { in xb_advance() 238 len -= tlen; in xb_advance() 379 size_t len, tlen; in xb_add_bytes() local 396 if (tlen) { in xb_add_bytes() 399 tlen = count; in xb_add_bytes() 407 len -= tlen; in xb_add_bytes() 409 buf += tlen; in xb_add_bytes() 435 if (tlen) { in xb_get_bytes() 444 len -= tlen; in xb_get_bytes() [all …]
|
| H A D | nfs_subs.c | 439 size_t paddedlen, tlen; in nfsm_chain_add_opaque_f() local 452 if (tlen) { in nfsm_chain_add_opaque_f() 454 if (tlen > len) { in nfsm_chain_add_opaque_f() 455 tlen = len; in nfsm_chain_add_opaque_f() 463 paddedlen -= tlen; in nfsm_chain_add_opaque_f() 465 buf += tlen; in nfsm_chain_add_opaque_f() 466 len -= tlen; in nfsm_chain_add_opaque_f() 482 size_t tlen; in nfsm_chain_add_opaque_nopad_f() local 494 nmc->nmc_ptr += tlen; in nfsm_chain_add_opaque_nopad_f() 496 len -= tlen; in nfsm_chain_add_opaque_nopad_f() [all …]
|
| H A D | nfs_serv.c | 773 int error, mpcnt, tlen, len, attrerr; in nfsrv_readlink() local 882 tlen = nfsm_rndup(len); in nfsrv_readlink() 883 nfsm_adj(mpath, NFS_MAXPATHLEN - tlen, tlen - len); in nfsrv_readlink() 920 uint32_t reqlen, maxlen, count, len, tlen; in nfsrv_read() local 1047 tlen = nfsm_rndup(len); in nfsrv_read() 1048 if (count != tlen || tlen != len) { in nfsrv_read() 1049 nfsm_adj(mread, count - tlen, tlen - len); in nfsrv_read() 1538 size_t tlen; in nfsrv_writegather() local 1730 if ((tlen = mbuf_len(m)) > 0) { in nfsrv_writegather() 1731 uio_addiov(auio, CAST_USER_ADDR_T((caddr_t)mbuf_data(m)), tlen); in nfsrv_writegather()
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_input.c | 1678 if (tlen != 0) { in tcp_tfo_rcv_probe() 1730 if (tlen == 0 && in tcp_update_window() 1770 if (tlen <= 0) { in tcp_syn_data_valid() 2022 int tlen, off; in tcp_input() local 2974 if (tlen == 0 || (tlen > 0 && in tcp_input() 3375 tlen); in tcp_input() 4365 todrop = tlen; in tcp_input() 4392 tlen -= todrop; in tcp_input() 4410 if (tlen) { in tcp_input() 4483 tlen -= todrop; in tcp_input() [all …]
|
| H A D | tcp_subr.c | 759 uint16_t tlen; in tcp_respond() local 807 tlen = 0; in tcp_respond() 835 tlen = 0; in tcp_respond() 867 tlen)); in tcp_respond() 868 tlen += sizeof(struct ip6_hdr) + sizeof(struct tcphdr); in tcp_respond() 872 tlen += sizeof(struct tcpiphdr); in tcp_respond() 873 ip->ip_len = tlen; in tcp_respond() 876 m->m_len = tlen; in tcp_respond() 877 m->m_pkthdr.len = tlen; in tcp_respond() 897 htonl((tlen - sizeof(struct ip6_hdr)) + IPPROTO_TCP)); in tcp_respond() [all …]
|
| /xnu-11215/bsd/netkey/ |
| H A D | key_debug.c | 83 int tlen, extlen; local 97 tlen = PFKEY_UNUNIT64(base->sadb_msg_len) - sizeof(struct sadb_msg); 100 while (tlen > 0) { 108 if (ext->sadb_ext_len > tlen) { 166 tlen -= extlen; 468 int tlen; local 471 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl); 474 while (tlen > 0) { 498 if (xisr->sadb_x_ipsecrequest_len > tlen) { 503 tlen -= xisr->sadb_x_ipsecrequest_len; [all …]
|
| H A D | key.c | 1912 int tlen; in key_msg2sp() local 1918 while (tlen > 0) { in key_msg2sp() 2105 if (tlen < 0) { in key_msg2sp() 2177 u_int tlen; in key_sp2msg() local 2189 tlen)); in key_sp2msg() 2201 m->m_len = tlen; in key_sp2msg() 2204 bzero(xpl, tlen); in key_sp2msg() 3569 u_int tlen; in key_getspreqmsglen() local 3575 return tlen; in key_getspreqmsglen() 3592 return tlen; in key_getspreqmsglen() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | sysv_msg.c | 1025 size_t tlen; in msgsnd_nocancel() local 1028 tlen = msginfo.msgssz; in msgsnd_nocancel() 1030 tlen = msgsz; in msgsnd_nocancel() 1040 eval = copyin(user_msgp, &msgpool[next * msginfo.msgssz], tlen); in msgsnd_nocancel() 1053 msgsz -= tlen; in msgsnd_nocancel() 1054 user_msgp = user_msgp + tlen; /* ptr math */ in msgsnd_nocancel() 1437 size_t tlen; in msgrcv_nocancel() local 1443 tlen = MIN(msgsz - len, (size_t)msginfo.msgssz); in msgrcv_nocancel() 1452 user_msgp, tlen); in msgrcv_nocancel() 1463 user_msgp = user_msgp + tlen; /* ptr math */ in msgrcv_nocancel()
|
| H A D | uipc_mbuf2.c | 164 int hlen = 0, tlen = 0, olen = 0; in m_pulldown() local 265 tlen = len - hlen; in m_pulldown() 301 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown() 303 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown() 304 n->m_len += tlen; in m_pulldown() 305 m_adj(n->m_next, tlen); in m_pulldown() 348 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown() 349 o->m_len += tlen; in m_pulldown() 350 m_adj(n->m_next, tlen); in m_pulldown()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_track.c | 759 uint16_t len, tlen; in flow_track_abort_tcp() local 769 tlen = sizeof(struct tcphdr); in flow_track_abort_tcp() 771 len = sizeof(struct ip) + tlen; in flow_track_abort_tcp() 774 len = sizeof(struct ip6_hdr) + tlen; in flow_track_abort_tcp() 794 ip->ip_len = htons(tlen); in flow_track_abort_tcp() 809 ip6->ip6_plen = htons(tlen); in flow_track_abort_tcp() 852 th->th_off = (tlen >> 2); in flow_track_abort_tcp() 898 sizeof(struct ip6_hdr), tlen); in flow_track_abort_tcp()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ip_frag.c | 276 struct ip *ip4, uint16_t *nfrags, uint16_t *tlen) in fsw_ip_frag_reass_v4() argument 298 fragflag, nfrags, tlen); in fsw_ip_frag_reass_v4() 340 uint16_t *tlen) in fsw_ip_frag_reass_v6() argument 380 fragflag, nfrags, tlen); in fsw_ip_frag_reass_v6() 518 uint16_t fragpartlen, uint16_t fragflag, uint16_t *nfrags, uint16_t *tlen) in ipf_process() argument 741 (*tlen) += f_down->ipf_len; in ipf_process()
|
| H A D | fsw_var.h | 223 uint16_t *tlen); 226 uint16_t *nfrags, uint16_t *tlen);
|
| H A D | fsw_dp.c | 510 uint32_t tlen = 0; in validate_pkt_len() local 515 tlen += l2hlen; in validate_pkt_len() 520 tlen += splen; in validate_pkt_len() 523 return tlen <= ((__packet_get_buflet_count(dph) * in validate_pkt_len() 662 uint16_t nfrags, tlen; in rx_process_ip_frag() local 686 err = fsw_ip_frag_reass_v4(fsw->fsw_ipfm, &pkt, ip, &nfrags, &tlen); in rx_process_ip_frag() 695 &nfrags, &tlen); in rx_process_ip_frag()
|
| /xnu-11215/bsd/netinet6/ |
| H A D | ah_core.c | 480 int tlen; in ah_update_mbuf() local 505 tlen = n->m_len - off; in ah_update_mbuf() 507 tlen = len; in ah_update_mbuf() 510 (algo->update)(algos, mtod(n, caddr_t) + off, tlen); in ah_update_mbuf() 512 len -= tlen; in ah_update_mbuf()
|
| H A D | ip6_output.c | 1730 uint32_t tlen = m->m_pkthdr.len; in ip6_fragment_packet() local 1749 if (dontfrag && tlen > IN6_LINKMTU(ifp)) { /* case 2-b */ in ip6_fragment_packet() 1763 (tlen <= mtu || TSO_IPV6_OK(ifp, m) || in ip6_fragment_packet() 1769 ip6_output_checksum(ifp, mtu, m, nxt0, tlen, optlen); in ip6_fragment_packet() 1821 uint32_t tlen = morig->m_pkthdr.len; in ip6_do_fragmentation() local 1879 for (off = hlen; off < tlen; off += len) { in ip6_do_fragmentation() 1916 if (off + len >= tlen) { in ip6_do_fragmentation() 1917 len = tlen - off; in ip6_do_fragmentation() 4241 int nxt0, uint32_t tlen, uint32_t optlen) in ip6_output_checksum() argument 4267 tlen <= mtu) { in ip6_output_checksum()
|
| H A D | in6.c | 3440 int tlen = -1, dscopecmp, bscopecmp, matchcmp; in in6_ifawithscope() local 3648 tlen = in6_matchlen(IFA_IN6(ifa), dst); in in6_ifawithscope() 3649 matchcmp = tlen - blen; in in6_ifawithscope() 3677 blen = tlen >= 0 ? tlen : in in6_ifawithscope() 3724 int dst_scope = in6_addrscope(dst), blen = -1, tlen; in in6_ifawithifp() local 3783 tlen = in6_matchlen(IFA_IN6(ifa), (struct in6_addr*__indexable)dst); in in6_ifawithifp() 3784 if (tlen > blen) { in in6_ifawithifp() 3785 blen = tlen; in in6_ifawithifp()
|
| /xnu-11215/bsd/nfs/gss/ |
| H A D | gss_krb5_mech.c | 1367 size_t tlen, r = 0; in krb5_cfx_crypt_mbuf() local 1382 tlen = *len + ccmode->block_size; in krb5_cfx_crypt_mbuf() 1384 r = ctx->mpad - (tlen % ctx->mpad); in krb5_cfx_crypt_mbuf() 1398 tlen += r; in krb5_cfx_crypt_mbuf() 1399 error = krb5_mic_mbuf(ctx, NULL, *mbp, 0, tlen, NULL, digest, NULL, 1, 0); in krb5_cfx_crypt_mbuf() 1403 error = krb5_crypt_mbuf(ctx, mbp, tlen, 1, NULL); in krb5_cfx_crypt_mbuf() 1411 *len = tlen + ctx->digest_size; in krb5_cfx_crypt_mbuf() 1422 tlen = *len - ctx->digest_size; in krb5_cfx_crypt_mbuf() 1424 error = mbuf_copydata(*mbp, tlen, ctx->digest_size, digest); in krb5_cfx_crypt_mbuf() 1450 error = krb5_crypt_mbuf(ctx, mbp, tlen, 0, ks); in krb5_cfx_crypt_mbuf() [all …]
|
| /xnu-11215/bsd/skywalk/packet/ |
| H A D | packet_common.h | 411 uint16_t tlen = po->__po_token_len; in __packet_opt_get_token() local 414 if (token == NULL || len == NULL || type == NULL || tlen > *len) { in __packet_opt_get_token() 419 ASSERT(tlen <= PKT_OPT_MAX_TOKEN_SIZE); in __packet_opt_get_token() 421 bcopy(po->__po_token, token, tlen); in __packet_opt_get_token() 427 *len = tlen; in __packet_opt_get_token()
|
| /xnu-11215/bsd/net/ |
| H A D | bpf.c | 3919 uint32_t tlen = 0; in get_pkt_trunc_len() local 3954 tlen = pktap->pth_length + pre_adjust + out_pkt_len; in get_pkt_trunc_len() 3975 tlen = pktap->pth_length + pktap->pth_frame_pre_length + out_pkt_len; in get_pkt_trunc_len() 3979 if (__improbable(tlen > pkt->bpfp_total_length)) { in get_pkt_trunc_len() 3988 …tlen, pkt->bpfp_total_length, pkt->bpfp_header_length, pktap->pth_frame_pre_length, pre_adjust, in… in get_pkt_trunc_len() 3993 …tlen, pkt->bpfp_total_length, pkt->bpfp_header_length, pktap->pth_frame_pre_length, pre_adjust, in… in get_pkt_trunc_len() 3996 tlen = (uint32_t)pkt->bpfp_total_length; in get_pkt_trunc_len() 3999 return tlen; in get_pkt_trunc_len()
|
| H A D | pf.c | 2672 int len, tlen; in pf_send_tcp() local 2682 tlen = sizeof(struct tcphdr); in pf_send_tcp() 2684 tlen += 4; in pf_send_tcp() 2690 len = sizeof(struct ip) + tlen; in pf_send_tcp() 2694 len = sizeof(struct ip6_hdr) + tlen; in pf_send_tcp() 2752 h->ip_len = htons(tlen); in pf_send_tcp() 2764 h6->ip6_plen = htons(tlen); in pf_send_tcp() 2778 th->th_off = tlen >> 2; in pf_send_tcp() 2823 sizeof(struct ip6_hdr), tlen); in pf_send_tcp() 6601 size_t plen, tlen; in pf_pptp_handler() local [all …]
|