Home
last modified time | relevance | path

Searched refs:m_len (Results 1 – 25 of 27) sorted by relevance

12

/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_mbmarshal.c55 if (mbc->chain->m_len != 6) { in mbm_put_a0()
57 mbc->chain->m_len); in mbm_put_a0()
90 if (mbc->chain->m_len != 6) { in mbm_put_a1()
92 mbc->chain->m_len); in mbm_put_a1()
123 if (mbc->chain->m_len != 5) { in mbm_put_apad()
125 mbc->chain->m_len); in mbm_put_apad()
157 if (mbc->chain->m_len != 4) { in mbm_put_atrunc1()
159 mbc->chain->m_len); in mbm_put_atrunc1()
191 if (mbc->chain->m_len != 4) { in mbm_put_atrunc2()
193 mbc->chain->m_len); in mbm_put_atrunc2()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_marshaling.c821 while (src_m && offset >= src_m->m_len) { in smb_mbc_copy()
822 offset -= src_m->m_len; in smb_mbc_copy()
832 len = src_m->m_len - offset; in smb_mbc_copy()
847 len = src_m->m_len; in smb_mbc_copy()
881 while (offset >= m->m_len) { in smb_mbc_put_mem()
882 ASSERT(m->m_len > 0); in smb_mbc_put_mem()
883 offset -= m->m_len; in smb_mbc_put_mem()
891 tlen = m->m_len - offset; in smb_mbc_put_mem()
906 tlen = m->m_len; in smb_mbc_put_mem()
956 m->m_len = 0; in mbc_marshal_make_room()
[all …]
H A Dsmb_mbuf_util.c117 m->m_len = 0; in smb_mbc_alloc()
167 m->m_len = count; in smb_mbuf_get()
193 m->m_len = len; in smb_mbuf_alloc_ext()
280 m->m_len = len; in smb_mbuf_alloc_chain()
343 tlen = m->m_len; in smb_mbuf_mkuio()
367 if (nbytes <= m->m_len) { in smb_mbuf_trim()
368 m->m_len = nbytes; in smb_mbuf_trim()
375 nbytes -= m->m_len; in smb_mbuf_trim()
387 used += m->m_len; in MBC_LENGTH()
419 m->m_len = 0; in MBC_INIT()
[all …]
H A Dsmb_net.c241 ASSERT(mbuf->m_len <= MLEN); in smb_net_wrap_mbuf()
242 bcopy(mbuf->m_data, buf, mbuf->m_len); in smb_net_wrap_mbuf()
260 mblk = esballoca_wait((void *)mbuf->m_data, mbuf->m_len, in smb_net_wrap_mbuf()
263 mblk->b_wptr += mbuf->m_len; in smb_net_wrap_mbuf()
378 len += mbuf->m_len; in smb_net_send_uio()
H A Dsmb2_signing.c294 while (mbuf != NULL && (offset >= mbuf->m_len)) { in smb2_sign_calc_common()
295 offset -= mbuf->m_len; in smb2_sign_calc_common()
307 tlen = mbuf->m_len - offset; in smb2_sign_calc_common()
323 tlen = mbuf->m_len; in smb2_sign_calc_common()
H A Dsmb_signing.c290 while (mbuf != NULL && (offset >= mbuf->m_len)) { in smb_sign_calc()
291 offset -= mbuf->m_len; in smb_sign_calc()
294 if (mbuf != NULL && (size = (mbuf->m_len - offset)) > 0) { in smb_sign_calc()
302 rc = smb_md5_update(ctx, mbuf->m_data, mbuf->m_len); in smb_sign_calc()
H A Dsmb31_preauth.c163 rc = smb_sha512_update(ctx, mbuf->m_data, mbuf->m_len); in smb31_preauth_sha512_calc()
H A Dsmb_session.c159 m->m_len = NETBIOS_HDR_SZ; in smb_session_send()
161 ASSERT(m->m_len >= NETBIOS_HDR_SZ); in smb_session_send()
H A Dsmb_dispatch.c962 total_bytes += m->m_len; in smbsr_check_result()
H A Dsmb2_dispatch.c1473 m->m_len = SMB3_TFORM_HDR_SIZE; in smb2_send_reply()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c65 #define M_TRAILINGSPACE(m) ((m)->m_maxlen - (m)->m_len)
112 len += m->m_len; in m_totlen()
135 len = m0->m_len; in m_lineup()
142 nm->m_len = totlen; in m_lineup()
241 m->m_len += size; in mb_fit()
322 dst = mtod(m, char *) + m->m_len; in mb_put_mem()
329 m->m_len += cplen; in mb_put_mem()
332 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mem()
349 if (m->m_next == NULL && m->m_len <= ts) { in mb_put_mbuf()
351 mb_put_mem(mbp, m->m_data, m->m_len, MB_MSYSTEM); in mb_put_mbuf()
[all …]
H A Dssp.c109 rc = spnegoInitFromBinary((uchar_t *)m->m_data, m->m_len, in ssp_ctx_create_client()
251 m->m_len, &stok_in); in ssp_ctx_next_token()
292 body_in.mb_count = m->m_len = (size_t)toklen; in ssp_ctx_next_token()
322 (uchar_t *)m->m_data, m->m_len, in ssp_ctx_next_token()
337 (uchar_t *)m->m_data, m->m_len, in ssp_ctx_next_token()
368 caller_out->mb_count = m->m_len = (size_t)toklen; in ssp_ctx_next_token()
H A Dconnect.c222 blob.mb_top->m_len = nego_len; in smb_iod_connect()
373 work->wk_u_auth_wlen = m->m_len; in smb__ssnsetup()
391 m->m_len = work->wk_u_auth_rlen; in smb__ssnsetup()
H A Dacl_api.c102 m->m_len = iocb.used; in smbfs_acl_iocget()
129 iocb.used = m->m_len; in smbfs_acl_iocset()
H A Dntlm.c545 (uchar_t *)tim->m_data, tim->m_len); in ntlm_put_v2_responses()
548 mb_put_mem(nt_mbp, tim->m_data, tim->m_len, MB_MSYSTEM); in ntlm_put_v2_responses()
636 err = mb_put_mem(mbp, names->m_data, names->m_len, MB_MSYSTEM); in ntlm_build_target_info()
H A Dntlmssp.c200 if (tmp_mb.mb_cur->m_len < trim) in mb_put_sb_string()
202 tmp_mb.mb_cur->m_len -= trim; in mb_put_sb_string()
H A Dkrb5ssp.c300 dlen = m->m_len; in krb5ssp_get_reply()
H A Dnbns_rq.c507 mbp->mb_top->m_len = mbp->mb_count = n; in nbns_rq_recv()
/illumos-gate/usr/src/uts/common/smbsrv/
H A Dmbuf.h148 #define m_len m_hdr.mh_len macro
298 ((MB_START(m) + M_SIZE(m)) - ((m)->m_data + (m)->m_len))
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_preauth_pkcs.c150 rc = smb_sha512_update(ctx, mbuf->m_data, mbuf->m_len); in smb31_preauth_sha512_calc()
/illumos-gate/usr/src/uts/common/net/
H A Dif.h223 (m)->m_len -= sizeof (struct ifnet *); \
224 if ((m)->m_len == 0) { \
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_compat.h641 # define M_LEN(x) (x)->m_len
719 # define M_LEN(x) (x)->m_len
780 # define M_LEN(x) (x)->m_len
948 # define M_LEN(x) (x)->m_len
1006 # define M_LEN(x) (x)->m_len
1044 # define M_LEN(x) (x)->m_len
1070 # define M_LEN(x) (x)->m_len
1170 # define m_len len macro
1324 # define M_LEN(x) (x)->m_len
/illumos-gate/usr/src/uts/common/netsmb/
H A Dmchain.h157 int m_len; member
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dfil.c3047 m->m_len -= hlen;
3049 m->m_len += hlen;
3114 add = MIN(hlen, m->m_len);
3117 if (add == m->m_len) {
3135 if (((caddr_t)sp - mtod(m, caddr_t)) >= m->m_len) {
3140 if (((caddr_t)(sp + 1) - mtod(m, caddr_t)) > m->m_len) {
3232 if (off < m->m_len)
3234 off -= m->m_len;
3240 count = MIN(m->m_len - off, len);
3268 while (off > (mlen = m->m_len)) {
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/smbsrv/
H A Dsmbsrv_pcap.c414 mlen = m->m_len; in smb_req_pcap_m()

12