Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Decoder = &decoder.StreamDecoder{ Type: types.Type_NC_SMTP, Name: serviceSMTP, Description: "The Simple Mail Transfer Protocol is a communication protocol for electronic mail transmission", PostInit: func(d *decoder.StreamDecoder) (err error) { smtpLog, _, err = logging.InitZapLogger( decoderconfig.Instance.Out, "mail", decoderconfig.Instance.Debug, ) if err != nil { return err } smtpLogSugared = smtpLog.Sugar() return nil }, CanDecode: func(client, server []byte) bool { return bytes.HasPrefix(server, smtpServiceReadyBytes) && bytes.Contains(server, smtpName) }, DeInit: func(sd *decoder.StreamDecoder) error { return smtpLog.Sync() }, Factory: &smtpReader{}, Typ: core.TCP, }
Decoder for protocol analysis and writing audit records to disk.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.