]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
CIFS: move DFS response parsing out of SMB1 code
authorAurelien Aptel <aaptel@suse.com>
Mon, 13 Feb 2017 15:03:47 +0000 (16:03 +0100)
committerSteve French <smfrench@gmail.com>
Thu, 2 Mar 2017 04:26:10 +0000 (22:26 -0600)
commit4ecce920e13ace16a5ba45efe8909946c28fb2ad
tree2061bc7cf21e6fb9741e7a30a8623cc2f6f30260
parent61cfac6f267dabcf2740a7ec8a0295833b28b5f5
CIFS: move DFS response parsing out of SMB1 code

since the DFS payload is not tied to the SMB version we can:
* isolate the DFS payload in its own struct, and include that struct in
  packet structs
* move the function that parses the response to misc.c and make it work
  on the new DFS payload struct (add payload size and utf16 flag as a
  result).

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifspdu.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/misc.c