Enable browsing of NetApp servers (use ascii mode).

Obtained from:	Darwin (PR-3002667)
MFC after:	2 weeks
This commit is contained in:
Boris Popov 2002-09-16 09:51:58 +00:00
parent 568f03ed88
commit ab93c874b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103391

View File

@ -123,7 +123,10 @@ smb_rq_new(struct smb_rq *rqp, u_char cmd)
mb_put_uint8(mbp, cmd);
mb_put_uint32le(mbp, 0); /* DosError */
mb_put_uint8(mbp, vcp->vc_hflags);
mb_put_uint16le(mbp, vcp->vc_hflags2);
if (cmd == SMB_COM_TRANSACTION || cmd == SMB_COM_TRANSACTION_SECONDARY)
mb_put_uint16le(mbp, (vcp->vc_hflags2 & ~SMB_FLAGS2_UNICODE));
else
mb_put_uint16le(mbp, vcp->vc_hflags2);
mb_put_mem(mbp, tzero, 12, MB_MSYSTEM);
rqp->sr_rqtid = (u_int16_t*)mb_reserve(mbp, sizeof(u_int16_t));
mb_put_uint16le(mbp, 1 /*scred->sc_p->p_pid & 0xffff*/);