msg_file_logoff.go 456 B

123456789101112131415161718192021222324
  1. package smb
  2. func init() {
  3. commandRequestMap[CommandLogoff] = func() DataI {
  4. return &LogoffRequest{}
  5. }
  6. }
  7. // Logoff
  8. type LogoffRequest struct {
  9. Header
  10. StructureSize uint16
  11. Reserved uint16
  12. }
  13. type LogoffResponse struct {
  14. Header
  15. StructureSize uint16
  16. Reserved uint16
  17. }
  18. func (data *LogoffRequest) ServerAction(ctx *DataCtx) (interface{}, error) {
  19. data.Header.Flags = SMB2_FLAGS_RESPONSE
  20. return &LogoffResponse{Header: data.Header}, nil
  21. }