Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Decoder = &decoder.StreamDecoder{ Type: types.Type_NC_IPP, Name: serviceIPP, Description: "IPP is the Internet Printing Protocol used for managing print jobs and printer status over HTTP", PostInit: func(d *decoder.StreamDecoder) error { var err error ippLog, _, err = logging.InitZapLogger( decoderconfig.Instance.Out, "ipp", decoderconfig.Instance.Debug, ) return err }, Specificity: core.SpecificityStructural + 1, CanDecode: func(client, server []byte) bool { for _, data := range [][]byte{client, server} { header, _, _ := bytes.Cut(data, []byte("\r\n\r\n")) if len(header) > 16384 { continue } for _, line := range strings.Split(string(header), "\r\n") { name, value, ok := strings.Cut(line, ":") if ok && strings.EqualFold(name, "Content-Type") { typ, _, err := mime.ParseMediaType(strings.TrimSpace(value)) if err == nil && typ == "application/ipp" { return true } } } } return false }, DeInit: func(sd *decoder.StreamDecoder) error { return ippLog.Sync() }, Factory: &ippReader{}, 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.