smb.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * smb.h
  3. *
  4. * Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
  5. * Copyright (C) 1997 by Volker Lendecke
  6. *
  7. */
  8. #ifndef _LINUX_SMB_H
  9. #define _LINUX_SMB_H
  10. #include <linux/types.h>
  11. #include <linux/magic.h>
  12. enum smb_protocol {
  13. SMB_PROTOCOL_NONE,
  14. SMB_PROTOCOL_CORE,
  15. SMB_PROTOCOL_COREPLUS,
  16. SMB_PROTOCOL_LANMAN1,
  17. SMB_PROTOCOL_LANMAN2,
  18. SMB_PROTOCOL_NT1
  19. };
  20. enum smb_case_hndl {
  21. SMB_CASE_DEFAULT,
  22. SMB_CASE_LOWER,
  23. SMB_CASE_UPPER
  24. };
  25. struct smb_dskattr {
  26. __u16 total;
  27. __u16 allocblocks;
  28. __u16 blocksize;
  29. __u16 free;
  30. };
  31. struct smb_conn_opt {
  32. /* The socket */
  33. unsigned int fd;
  34. enum smb_protocol protocol;
  35. enum smb_case_hndl case_handling;
  36. /* Connection-Options */
  37. __u32 max_xmit;
  38. __u16 server_uid;
  39. __u16 tid;
  40. /* The following are LANMAN 1.0 options */
  41. __u16 secmode;
  42. __u16 maxmux;
  43. __u16 maxvcs;
  44. __u16 rawmode;
  45. __u32 sesskey;
  46. /* The following are NT LM 0.12 options */
  47. __u32 maxraw;
  48. __u32 capabilities;
  49. __s16 serverzone;
  50. };
  51. #endif