report the max size of raw reads as 65536 not 65535 (this now matches
authorAndrew Tridgell <tridge@samba.org>
Thu, 12 Mar 1998 02:14:29 +0000 (02:14 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 12 Mar 1998 02:14:29 +0000 (02:14 +0000)
what Win95 reports)

source/smbd/server.c

index 86b76454e4197764c97c2224accd5bfed86ba001..7bce748878e232ce41394c317fd43b846d18a351 100644 (file)
@@ -4014,7 +4014,7 @@ int reply_nt1(char *outbuf)
   SSVAL(outbuf,smb_vwv1+1,lp_maxmux()); /* maxmpx */
   SSVAL(outbuf,smb_vwv2+1,1); /* num vcs */
   SIVAL(outbuf,smb_vwv3+1,0xffff); /* max buffer. LOTS! */
-  SIVAL(outbuf,smb_vwv5+1,0xffff); /* raw size. LOTS! */
+  SIVAL(outbuf,smb_vwv5+1,0x10000); /* raw size. full 64k */
   SIVAL(outbuf,smb_vwv7+1,getpid()); /* session key */
   SIVAL(outbuf,smb_vwv9+1,capabilities); /* capabilities */
   put_long_date(outbuf+smb_vwv11+1,t);