Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/1] Remove the rfc1002 length from all SMB2 requests
@ 2017-11-01  1:51 Ronnie Sahlberg
       [not found] ` <20171101015144.2034-1-lsahlber-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ronnie Sahlberg @ 2017-11-01  1:51 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French

Steve, All,

Do not merge yet. It is still WIP but I want some review.

I have been looking at compounding, but before we can do that easily
we need to break the layering violation that happens between the
RFC1002 SM Length field and the SMB2 PDUs.

This patch removes the 4 byte RFC1002 length header from all SMB2 request
structures and at the same time also gets rid of a lot of the
magic +4 / -4 tweaking that was used all over the code to cope with that
the structures were actually bigger than they should be. It also
gets rid of a lot of magic "tweak the first four bytes" as the dynamic
parts of the SMB2 pdus are constructed.

Additionally we have a new SendReceive3() function that computes and attaches
the rfc1002 length from scratch, based on the input kiov containing the
smb2 pdu and data.


This will simplify later for compounding when we will use the SMB2_*()
functions to create multiple SMB2 pdus that will all be wrapped inside
one single rfc1002 header.


It would be nice to do the similar split of the nbss and smb2 layers
for all the reply structures as well but that can go in a different patch.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-02 21:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-01  1:51 [PATCH 0/1] Remove the rfc1002 length from all SMB2 requests Ronnie Sahlberg
     [not found] ` <20171101015144.2034-1-lsahlber-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-01  1:51   ` [PATCH] cifs: Remove the rfc1002 header from SMB2 request structures Ronnie Sahlberg
2017-11-02 10:05   ` [PATCH 0/1] Remove the rfc1002 length from all SMB2 requests Aurélien Aptel
     [not found]     ` <87shdxuhbg.fsf-IBi9RG/b67k@public.gmane.org>
2017-11-02 10:31       ` ronnie sahlberg
     [not found]         ` <CAN05THRMgZwUfgpXQudSzmH-8tOriv+dZnGPAK2u9h+4bmU2Mw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-02 21:53           ` Tom Talpey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox