smbproto

package
v0.0.0-...-c8c792b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NegotiateResponse

type NegotiateResponse struct {
	Dialect         smbdialect.Revision
	SecMode         smbsecmode.Flags
	Server          smbid.ID
	Caps            smbcap.Flags
	MaxTransactSize uint32
	MaxReadSize     uint32
	MaxWriteSize    uint32
	SystemTime      time.Time
	SecurityBuffer  []byte
}

NegotiateResponse holds SMB negotiation response data that can be serialized as an SMB packet.

func (NegotiateResponse) Command

func (r NegotiateResponse) Command() smbcommand.Code

Command returns the type of command of the response.

func (NegotiateResponse) Marshal

func (r NegotiateResponse) Marshal(data []byte)

Marshal marshals r as an SMB negotiation response to data.

func (NegotiateResponse) Size

func (r NegotiateResponse) Size() int

Size returns the number of bytes required to marshal the negotiation response. It excludes the packet header.

func (NegotiateResponse) Status

func (r NegotiateResponse) Status() uint32

Status returns the status of the response.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL