nmsg_base

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DnsQRType_UDP_INVALID              = DnsQR_UDP_INVALID
	DnsQRType_UDP_QUERY_RESPONSE       = DnsQR_UDP_QUERY_RESPONSE
	DnsQRType_UDP_UNANSWERED_QUERY     = DnsQR_UDP_UNANSWERED_QUERY
	DnsQRType_UDP_UNSOLICITED_RESPONSE = DnsQR_UDP_UNSOLICITED_RESPONSE
	DnsQRType_TCP                      = DnsQR_TCP
	DnsQRType_ICMP                     = DnsQR_ICMP
	DnsQRType_UDP_QUERY_ONLY           = DnsQR_UDP_QUERY_ONLY
	DnsQRType_UDP_RESPONSE_ONLY        = DnsQR_UDP_RESPONSE_ONLY
)
View Source
const (
	UdpChecksum_ERROR     = DnsQR_ERROR
	UdpChecksum_ABSENT    = DnsQR_ABSENT
	UdpChecksum_INCORRECT = DnsQR_INCORRECT
	UdpChecksum_CORRECT   = DnsQR_CORRECT
)
View Source
const (
	EmailType_unknown     = Email_unknown
	EmailType_spamtrap    = Email_spamtrap
	EmailType_rej_network = Email_rej_network
	EmailType_rej_content = Email_rej_content
	EmailType_rej_user    = Email_rej_user
)
View Source
const (
	EncodeType_TEXT    = Encode_TEXT
	EncodeType_JSON    = Encode_JSON
	EncodeType_YAML    = Encode_YAML
	EncodeType_MSGPACK = Encode_MSGPACK
	EncodeType_XML     = Encode_XML
)
View Source
const (
	HttpType_unknown  = Http_unknown
	HttpType_sinkhole = Http_sinkhole
)
View Source
const (
	Linktype_anchor   = Linkpair_anchor
	Linktype_redirect = Linkpair_redirect
)
View Source
const (
	NcapType_IPV4   = Ncap_IPV4
	NcapType_IPV6   = Ncap_IPV6
	NcapType_Legacy = Ncap_Legacy
)
View Source
const (
	NcapLegacyType_Ncap_UDP  = Ncap_UDP
	NcapLegacyType_Ncap_TCP  = Ncap_TCP
	NcapLegacyType_Ncap_ICMP = Ncap_ICMP
)

Variables

View Source
var (
	DnsQR_DnsQRType_name = map[int32]string{
		0: "UDP_INVALID",
		1: "UDP_QUERY_RESPONSE",
		2: "UDP_UNANSWERED_QUERY",
		3: "UDP_UNSOLICITED_RESPONSE",
		4: "TCP",
		5: "ICMP",
		6: "UDP_QUERY_ONLY",
		7: "UDP_RESPONSE_ONLY",
	}
	DnsQR_DnsQRType_value = map[string]int32{
		"UDP_INVALID":              0,
		"UDP_QUERY_RESPONSE":       1,
		"UDP_UNANSWERED_QUERY":     2,
		"UDP_UNSOLICITED_RESPONSE": 3,
		"TCP":                      4,
		"ICMP":                     5,
		"UDP_QUERY_ONLY":           6,
		"UDP_RESPONSE_ONLY":        7,
	}
)

Enum value maps for DnsQR_DnsQRType.

View Source
var (
	DnsQR_UdpChecksum_name = map[int32]string{
		0: "ERROR",
		1: "ABSENT",
		2: "INCORRECT",
		3: "CORRECT",
	}
	DnsQR_UdpChecksum_value = map[string]int32{
		"ERROR":     0,
		"ABSENT":    1,
		"INCORRECT": 2,
		"CORRECT":   3,
	}
)

Enum value maps for DnsQR_UdpChecksum.

View Source
var (
	Email_EmailType_name = map[int32]string{
		0: "unknown",
		1: "spamtrap",
		2: "rej_network",
		3: "rej_content",
		4: "rej_user",
	}
	Email_EmailType_value = map[string]int32{
		"unknown":     0,
		"spamtrap":    1,
		"rej_network": 2,
		"rej_content": 3,
		"rej_user":    4,
	}
)

Enum value maps for Email_EmailType.

View Source
var (
	Encode_EncodeType_name = map[int32]string{
		0: "TEXT",
		1: "JSON",
		2: "YAML",
		3: "MSGPACK",
		4: "XML",
	}
	Encode_EncodeType_value = map[string]int32{
		"TEXT":    0,
		"JSON":    1,
		"YAML":    2,
		"MSGPACK": 3,
		"XML":     4,
	}
)

Enum value maps for Encode_EncodeType.

View Source
var (
	Http_HttpType_name = map[int32]string{
		0: "unknown",
		1: "sinkhole",
	}
	Http_HttpType_value = map[string]int32{
		"unknown":  0,
		"sinkhole": 1,
	}
)

Enum value maps for Http_HttpType.

View Source
var (
	Linkpair_Linktype_name = map[int32]string{
		0: "anchor",
		1: "redirect",
	}
	Linkpair_Linktype_value = map[string]int32{
		"anchor":   0,
		"redirect": 1,
	}
)

Enum value maps for Linkpair_Linktype.

View Source
var (
	Ncap_NcapType_name = map[int32]string{
		0: "IPV4",
		1: "IPV6",
		2: "Legacy",
	}
	Ncap_NcapType_value = map[string]int32{
		"IPV4":   0,
		"IPV6":   1,
		"Legacy": 2,
	}
)

Enum value maps for Ncap_NcapType.

View Source
var (
	Ncap_NcapLegacyType_name = map[int32]string{
		0: "UDP",
		1: "TCP",
		2: "ICMP",
	}
	Ncap_NcapLegacyType_value = map[string]int32{
		"UDP":  0,
		"TCP":  1,
		"ICMP": 2,
	}
)

Enum value maps for Ncap_NcapLegacyType.

View Source
var (
	PacketType_name = map[int32]string{
		1: "IP",
	}
	PacketType_value = map[string]int32{
		"IP": 1,
	}
)

Enum value maps for PacketType.

View Source
var File_dnsobs_proto protoreflect.FileDescriptor
View Source
var File_dnsqr_proto protoreflect.FileDescriptor
View Source
var File_email_proto protoreflect.FileDescriptor
View Source
var File_encode_proto protoreflect.FileDescriptor
View Source
var File_ipconn_proto protoreflect.FileDescriptor
View Source
var File_linkpair_proto protoreflect.FileDescriptor
View Source
var File_logline_proto protoreflect.FileDescriptor
View Source
var File_packet_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dns

type Dns struct {
	Section *uint32  `protobuf:"varint,6,opt,name=section" json:"section,omitempty"`
	Qname   []byte   `protobuf:"bytes,7,opt,name=qname" json:"qname,omitempty"`
	Qtype   *uint32  `protobuf:"varint,8,opt,name=qtype" json:"qtype,omitempty"`
	Qclass  *uint32  `protobuf:"varint,9,opt,name=qclass" json:"qclass,omitempty"`
	Rrname  []byte   `protobuf:"bytes,1,opt,name=rrname" json:"rrname,omitempty"`
	Rrtype  *uint32  `protobuf:"varint,2,opt,name=rrtype" json:"rrtype,omitempty"`
	Rrclass *uint32  `protobuf:"varint,3,opt,name=rrclass" json:"rrclass,omitempty"`
	Rrttl   *uint32  `protobuf:"varint,4,opt,name=rrttl" json:"rrttl,omitempty"`
	Rdata   [][]byte `protobuf:"bytes,5,rep,name=rdata" json:"rdata,omitempty"`
	// contains filtered or unexported fields
}

func (*Dns) Descriptor deprecated

func (*Dns) Descriptor() ([]byte, []int)

Deprecated: Use Dns.ProtoReflect.Descriptor instead.

func (*Dns) GetMsgtype

func (p *Dns) GetMsgtype() uint32

func (*Dns) GetQclass

func (x *Dns) GetQclass() uint32

func (*Dns) GetQname

func (x *Dns) GetQname() []byte

func (*Dns) GetQtype

func (x *Dns) GetQtype() uint32

func (*Dns) GetRdata

func (x *Dns) GetRdata() [][]byte

func (*Dns) GetRrclass

func (x *Dns) GetRrclass() uint32

func (*Dns) GetRrname

func (x *Dns) GetRrname() []byte

func (*Dns) GetRrttl

func (x *Dns) GetRrttl() uint32

func (*Dns) GetRrtype

func (x *Dns) GetRrtype() uint32

func (*Dns) GetSection

func (x *Dns) GetSection() uint32

func (*Dns) GetVid

func (p *Dns) GetVid() uint32

func (*Dns) ProtoMessage

func (*Dns) ProtoMessage()

func (*Dns) ProtoReflect

func (x *Dns) ProtoReflect() protoreflect.Message

func (*Dns) Reset

func (x *Dns) Reset()

func (*Dns) String

func (x *Dns) String() string

type DnsObs added in v0.3.0

type DnsObs struct {
	Time       *uint64 `protobuf:"varint,1,req,name=time" json:"time,omitempty"` // epoch seconds
	ResponseIp []byte  `protobuf:"bytes,2,req,name=response_ip,json=responseIp" json:"response_ip,omitempty"`
	Qname      []byte  `protobuf:"bytes,3,req,name=qname" json:"qname,omitempty"`
	Qtype      *uint32 `protobuf:"varint,4,req,name=qtype" json:"qtype,omitempty"`
	Qclass     *uint32 `protobuf:"varint,5,req,name=qclass" json:"qclass,omitempty"` //usually IN (1), but not necessarily
	// NOERROR, NXDOMAIN, FORMERR, SERVFAIL + TIMEOUT
	Rcode *uint32 `protobuf:"varint,6,req,name=rcode" json:"rcode,omitempty"`
	// defanged DNS response data
	Response []byte `protobuf:"bytes,7,opt,name=response" json:"response,omitempty"`
	// From dnstap if available
	QueryZone []byte `protobuf:"bytes,8,opt,name=query_zone,json=queryZone" json:"query_zone,omitempty"`
	// sensor-provided geographic context
	Geoid []byte `protobuf:"bytes,9,opt,name=geoid" json:"geoid,omitempty"`
	// sensor-provided randomized NS identifier
	Nsid *uint32 `protobuf:"fixed32,10,opt,name=nsid" json:"nsid,omitempty"`
	// contains filtered or unexported fields
}

func (*DnsObs) Descriptor deprecated added in v0.3.0

func (*DnsObs) Descriptor() ([]byte, []int)

Deprecated: Use DnsObs.ProtoReflect.Descriptor instead.

func (*DnsObs) GetGeoid added in v0.3.0

func (x *DnsObs) GetGeoid() []byte

func (*DnsObs) GetMsgtype added in v0.3.0

func (d *DnsObs) GetMsgtype() uint32

func (*DnsObs) GetNsid added in v0.3.0

func (x *DnsObs) GetNsid() uint32

func (*DnsObs) GetQclass added in v0.3.0

func (x *DnsObs) GetQclass() uint32

func (*DnsObs) GetQname added in v0.3.0

func (x *DnsObs) GetQname() []byte

func (*DnsObs) GetQtype added in v0.3.0

func (x *DnsObs) GetQtype() uint32

func (*DnsObs) GetQueryZone added in v0.3.0

func (x *DnsObs) GetQueryZone() []byte

func (*DnsObs) GetRcode added in v0.3.0

func (x *DnsObs) GetRcode() uint32

func (*DnsObs) GetResponse added in v0.3.0

func (x *DnsObs) GetResponse() []byte

func (*DnsObs) GetResponseIp added in v0.3.0

func (x *DnsObs) GetResponseIp() []byte

func (*DnsObs) GetTime added in v0.3.0

func (x *DnsObs) GetTime() uint64

func (*DnsObs) GetVid added in v0.3.0

func (d *DnsObs) GetVid() uint32

func (*DnsObs) ProtoMessage added in v0.3.0

func (*DnsObs) ProtoMessage()

func (*DnsObs) ProtoReflect added in v0.3.0

func (x *DnsObs) ProtoReflect() protoreflect.Message

func (*DnsObs) Reset added in v0.3.0

func (x *DnsObs) Reset()

func (*DnsObs) String added in v0.3.0

func (x *DnsObs) String() string

type DnsQR

type DnsQR struct {
	Type                  *DnsQR_DnsQRType   `protobuf:"varint,1,req,name=type,enum=nmsg.base.DnsQR_DnsQRType" json:"type,omitempty"`
	QueryIp               []byte             `protobuf:"bytes,2,req,name=query_ip,json=queryIp" json:"query_ip,omitempty"`
	ResponseIp            []byte             `protobuf:"bytes,3,req,name=response_ip,json=responseIp" json:"response_ip,omitempty"`
	Proto                 *uint32            `protobuf:"varint,4,req,name=proto" json:"proto,omitempty"`
	QueryPort             *uint32            `protobuf:"varint,5,req,name=query_port,json=queryPort" json:"query_port,omitempty"`
	ResponsePort          *uint32            `protobuf:"varint,6,req,name=response_port,json=responsePort" json:"response_port,omitempty"`
	Id                    *uint32            `protobuf:"varint,7,req,name=id" json:"id,omitempty"`
	Qname                 []byte             `protobuf:"bytes,8,opt,name=qname" json:"qname,omitempty"`
	Qtype                 *uint32            `protobuf:"varint,9,opt,name=qtype" json:"qtype,omitempty"`
	Qclass                *uint32            `protobuf:"varint,10,opt,name=qclass" json:"qclass,omitempty"`
	Rcode                 *uint32            `protobuf:"varint,11,opt,name=rcode" json:"rcode,omitempty"`
	QueryPacket           [][]byte           `protobuf:"bytes,12,rep,name=query_packet,json=queryPacket" json:"query_packet,omitempty"`
	QueryTimeSec          []int64            `protobuf:"varint,13,rep,name=query_time_sec,json=queryTimeSec" json:"query_time_sec,omitempty"`
	QueryTimeNsec         []int32            `protobuf:"fixed32,14,rep,name=query_time_nsec,json=queryTimeNsec" json:"query_time_nsec,omitempty"`
	ResponsePacket        [][]byte           `protobuf:"bytes,15,rep,name=response_packet,json=responsePacket" json:"response_packet,omitempty"`
	ResponseTimeSec       []int64            `protobuf:"varint,16,rep,name=response_time_sec,json=responseTimeSec" json:"response_time_sec,omitempty"`
	ResponseTimeNsec      []int32            `protobuf:"fixed32,17,rep,name=response_time_nsec,json=responseTimeNsec" json:"response_time_nsec,omitempty"`
	Tcp                   []byte             `protobuf:"bytes,18,opt,name=tcp" json:"tcp,omitempty"`
	Icmp                  []byte             `protobuf:"bytes,19,opt,name=icmp" json:"icmp,omitempty"`
	Timeout               *float64           `protobuf:"fixed64,20,opt,name=timeout" json:"timeout,omitempty"`
	UdpChecksum           *DnsQR_UdpChecksum `protobuf:"varint,21,opt,name=udp_checksum,json=udpChecksum,enum=nmsg.base.DnsQR_UdpChecksum" json:"udp_checksum,omitempty"`
	ResolverAddressZeroed *bool              `protobuf:"varint,22,opt,name=resolver_address_zeroed,json=resolverAddressZeroed" json:"resolver_address_zeroed,omitempty"`
	// contains filtered or unexported fields
}

func (*DnsQR) Descriptor deprecated

func (*DnsQR) Descriptor() ([]byte, []int)

Deprecated: Use DnsQR.ProtoReflect.Descriptor instead.

func (*DnsQR) GetIcmp

func (x *DnsQR) GetIcmp() []byte

func (*DnsQR) GetId

func (x *DnsQR) GetId() uint32

func (*DnsQR) GetMsgtype

func (p *DnsQR) GetMsgtype() uint32

func (*DnsQR) GetProto

func (x *DnsQR) GetProto() uint32

func (*DnsQR) GetQclass

func (x *DnsQR) GetQclass() uint32

func (*DnsQR) GetQname

func (x *DnsQR) GetQname() []byte

func (*DnsQR) GetQtype

func (x *DnsQR) GetQtype() uint32

func (*DnsQR) GetQueryIp

func (x *DnsQR) GetQueryIp() []byte

func (*DnsQR) GetQueryPacket

func (x *DnsQR) GetQueryPacket() [][]byte

func (*DnsQR) GetQueryPort

func (x *DnsQR) GetQueryPort() uint32

func (*DnsQR) GetQueryTimeNsec

func (x *DnsQR) GetQueryTimeNsec() []int32

func (*DnsQR) GetQueryTimeSec

func (x *DnsQR) GetQueryTimeSec() []int64

func (*DnsQR) GetRcode

func (x *DnsQR) GetRcode() uint32

func (*DnsQR) GetResolverAddressZeroed

func (x *DnsQR) GetResolverAddressZeroed() bool

func (*DnsQR) GetResponseIp

func (x *DnsQR) GetResponseIp() []byte

func (*DnsQR) GetResponsePacket

func (x *DnsQR) GetResponsePacket() [][]byte

func (*DnsQR) GetResponsePort

func (x *DnsQR) GetResponsePort() uint32

func (*DnsQR) GetResponseTimeNsec

func (x *DnsQR) GetResponseTimeNsec() []int32

func (*DnsQR) GetResponseTimeSec

func (x *DnsQR) GetResponseTimeSec() []int64

func (*DnsQR) GetTcp

func (x *DnsQR) GetTcp() []byte

func (*DnsQR) GetTimeout

func (x *DnsQR) GetTimeout() float64

func (*DnsQR) GetType

func (x *DnsQR) GetType() DnsQR_DnsQRType

func (*DnsQR) GetUdpChecksum

func (x *DnsQR) GetUdpChecksum() DnsQR_UdpChecksum

func (*DnsQR) GetVid

func (p *DnsQR) GetVid() uint32

func (*DnsQR) ProtoMessage

func (*DnsQR) ProtoMessage()

func (*DnsQR) ProtoReflect

func (x *DnsQR) ProtoReflect() protoreflect.Message

func (*DnsQR) Reset

func (x *DnsQR) Reset()

func (*DnsQR) String

func (x *DnsQR) String() string

type DnsQRType

type DnsQRType = DnsQR_DnsQRType

type DnsQR_DnsQRType

type DnsQR_DnsQRType int32
const (
	DnsQR_UDP_INVALID              DnsQR_DnsQRType = 0
	DnsQR_UDP_QUERY_RESPONSE       DnsQR_DnsQRType = 1
	DnsQR_UDP_UNANSWERED_QUERY     DnsQR_DnsQRType = 2
	DnsQR_UDP_UNSOLICITED_RESPONSE DnsQR_DnsQRType = 3
	DnsQR_TCP                      DnsQR_DnsQRType = 4
	DnsQR_ICMP                     DnsQR_DnsQRType = 5
	DnsQR_UDP_QUERY_ONLY           DnsQR_DnsQRType = 6
	DnsQR_UDP_RESPONSE_ONLY        DnsQR_DnsQRType = 7
)

func (DnsQR_DnsQRType) Descriptor

func (DnsQR_DnsQRType) Enum

func (x DnsQR_DnsQRType) Enum() *DnsQR_DnsQRType

func (DnsQR_DnsQRType) EnumDescriptor deprecated

func (DnsQR_DnsQRType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DnsQR_DnsQRType.Descriptor instead.

func (DnsQR_DnsQRType) Number

func (DnsQR_DnsQRType) String

func (x DnsQR_DnsQRType) String() string

func (DnsQR_DnsQRType) Type

func (*DnsQR_DnsQRType) UnmarshalJSON deprecated

func (x *DnsQR_DnsQRType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type DnsQR_UdpChecksum

type DnsQR_UdpChecksum int32
const (
	DnsQR_ERROR     DnsQR_UdpChecksum = 0
	DnsQR_ABSENT    DnsQR_UdpChecksum = 1
	DnsQR_INCORRECT DnsQR_UdpChecksum = 2
	DnsQR_CORRECT   DnsQR_UdpChecksum = 3
)

func (DnsQR_UdpChecksum) Descriptor

func (DnsQR_UdpChecksum) Enum

func (DnsQR_UdpChecksum) EnumDescriptor deprecated

func (DnsQR_UdpChecksum) EnumDescriptor() ([]byte, []int)

Deprecated: Use DnsQR_UdpChecksum.Descriptor instead.

func (DnsQR_UdpChecksum) Number

func (DnsQR_UdpChecksum) String

func (x DnsQR_UdpChecksum) String() string

func (DnsQR_UdpChecksum) Type

func (*DnsQR_UdpChecksum) UnmarshalJSON deprecated

func (x *DnsQR_UdpChecksum) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Dnstap

type Dnstap struct {
	dnstap.Dnstap
}

func (*Dnstap) GetMsgtype

func (d *Dnstap) GetMsgtype() uint32

func (*Dnstap) GetVid

func (d *Dnstap) GetVid() uint32

func (*Dnstap) Marshal

func (d *Dnstap) Marshal() ([]byte, error)

func (*Dnstap) Unmarshal

func (d *Dnstap) Unmarshal(b []byte) error

type Email

type Email struct {
	Type    *Email_EmailType `protobuf:"varint,8,opt,name=type,enum=nmsg.base.Email_EmailType" json:"type,omitempty"`
	Headers []byte           `protobuf:"bytes,2,opt,name=headers" json:"headers,omitempty"`
	Srcip   []byte           `protobuf:"bytes,3,opt,name=srcip" json:"srcip,omitempty"`
	Srchost []byte           `protobuf:"bytes,4,opt,name=srchost" json:"srchost,omitempty"`
	Helo    []byte           `protobuf:"bytes,5,opt,name=helo" json:"helo,omitempty"`
	From    []byte           `protobuf:"bytes,6,opt,name=from" json:"from,omitempty"`
	Rcpt    [][]byte         `protobuf:"bytes,7,rep,name=rcpt" json:"rcpt,omitempty"`
	Bodyurl [][]byte         `protobuf:"bytes,9,rep,name=bodyurl" json:"bodyurl,omitempty"`
	Body    []byte           `protobuf:"bytes,10,opt,name=body" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Email) Descriptor deprecated

func (*Email) Descriptor() ([]byte, []int)

Deprecated: Use Email.ProtoReflect.Descriptor instead.

func (*Email) GetBody

func (x *Email) GetBody() []byte

func (*Email) GetBodyurl

func (x *Email) GetBodyurl() [][]byte

func (*Email) GetFrom

func (x *Email) GetFrom() []byte

func (*Email) GetHeaders

func (x *Email) GetHeaders() []byte

func (*Email) GetHelo

func (x *Email) GetHelo() []byte

func (*Email) GetMsgtype

func (p *Email) GetMsgtype() uint32

func (*Email) GetRcpt

func (x *Email) GetRcpt() [][]byte

func (*Email) GetSrchost

func (x *Email) GetSrchost() []byte

func (*Email) GetSrcip

func (x *Email) GetSrcip() []byte

func (*Email) GetType

func (x *Email) GetType() Email_EmailType

func (*Email) GetVid

func (p *Email) GetVid() uint32

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) ProtoReflect

func (x *Email) ProtoReflect() protoreflect.Message

func (*Email) Reset

func (x *Email) Reset()

func (*Email) String

func (x *Email) String() string

type EmailType

type EmailType = Email_EmailType

type Email_EmailType

type Email_EmailType int32
const (
	Email_unknown     Email_EmailType = 0
	Email_spamtrap    Email_EmailType = 1
	Email_rej_network Email_EmailType = 2
	Email_rej_content Email_EmailType = 3
	Email_rej_user    Email_EmailType = 4
)

func (Email_EmailType) Descriptor

func (Email_EmailType) Enum

func (x Email_EmailType) Enum() *Email_EmailType

func (Email_EmailType) EnumDescriptor deprecated

func (Email_EmailType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Email_EmailType.Descriptor instead.

func (Email_EmailType) Number

func (Email_EmailType) String

func (x Email_EmailType) String() string

func (Email_EmailType) Type

func (*Email_EmailType) UnmarshalJSON deprecated

func (x *Email_EmailType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Encode

type Encode struct {
	Type    *Encode_EncodeType `protobuf:"varint,1,req,name=type,enum=nmsg.base.Encode_EncodeType" json:"type,omitempty"`
	Payload []byte             `protobuf:"bytes,2,req,name=payload" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Encode) Descriptor deprecated

func (*Encode) Descriptor() ([]byte, []int)

Deprecated: Use Encode.ProtoReflect.Descriptor instead.

func (*Encode) GetMsgtype

func (p *Encode) GetMsgtype() uint32

func (*Encode) GetPayload

func (x *Encode) GetPayload() []byte

func (*Encode) GetType

func (x *Encode) GetType() Encode_EncodeType

func (*Encode) GetVid

func (p *Encode) GetVid() uint32

func (*Encode) ProtoMessage

func (*Encode) ProtoMessage()

func (*Encode) ProtoReflect

func (x *Encode) ProtoReflect() protoreflect.Message

func (*Encode) Reset

func (x *Encode) Reset()

func (*Encode) String

func (x *Encode) String() string

type EncodeType

type EncodeType = Encode_EncodeType

type Encode_EncodeType

type Encode_EncodeType int32
const (
	Encode_TEXT    Encode_EncodeType = 0
	Encode_JSON    Encode_EncodeType = 1
	Encode_YAML    Encode_EncodeType = 2
	Encode_MSGPACK Encode_EncodeType = 3
	Encode_XML     Encode_EncodeType = 4
)

func (Encode_EncodeType) Descriptor

func (Encode_EncodeType) Enum

func (Encode_EncodeType) EnumDescriptor deprecated

func (Encode_EncodeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Encode_EncodeType.Descriptor instead.

func (Encode_EncodeType) Number

func (Encode_EncodeType) String

func (x Encode_EncodeType) String() string

func (Encode_EncodeType) Type

func (*Encode_EncodeType) UnmarshalJSON deprecated

func (x *Encode_EncodeType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Http

type Http struct {
	Type      *Http_HttpType `protobuf:"varint,1,req,name=type,enum=nmsg.base.Http_HttpType" json:"type,omitempty"`
	Srcip     []byte         `protobuf:"bytes,2,opt,name=srcip" json:"srcip,omitempty"`
	Srchost   []byte         `protobuf:"bytes,3,opt,name=srchost" json:"srchost,omitempty"`
	Srcport   *uint32        `protobuf:"varint,4,opt,name=srcport" json:"srcport,omitempty"`
	Dstip     []byte         `protobuf:"bytes,5,opt,name=dstip" json:"dstip,omitempty"`
	Dstport   *uint32        `protobuf:"varint,6,opt,name=dstport" json:"dstport,omitempty"`
	Request   []byte         `protobuf:"bytes,7,opt,name=request" json:"request,omitempty"`
	P0FGenre  []byte         `protobuf:"bytes,65,opt,name=p0f_genre,json=p0fGenre" json:"p0f_genre,omitempty"`
	P0FDetail []byte         `protobuf:"bytes,66,opt,name=p0f_detail,json=p0fDetail" json:"p0f_detail,omitempty"`
	P0FDist   *int32         `protobuf:"varint,67,opt,name=p0f_dist,json=p0fDist" json:"p0f_dist,omitempty"`
	P0FLink   []byte         `protobuf:"bytes,68,opt,name=p0f_link,json=p0fLink" json:"p0f_link,omitempty"`
	P0FTos    []byte         `protobuf:"bytes,69,opt,name=p0f_tos,json=p0fTos" json:"p0f_tos,omitempty"`
	P0FFw     *uint32        `protobuf:"varint,70,opt,name=p0f_fw,json=p0fFw" json:"p0f_fw,omitempty"`
	P0FNat    *uint32        `protobuf:"varint,71,opt,name=p0f_nat,json=p0fNat" json:"p0f_nat,omitempty"`
	P0FReal   *uint32        `protobuf:"varint,72,opt,name=p0f_real,json=p0fReal" json:"p0f_real,omitempty"`
	P0FScore  *int32         `protobuf:"varint,73,opt,name=p0f_score,json=p0fScore" json:"p0f_score,omitempty"`
	P0FMflags *uint32        `protobuf:"varint,74,opt,name=p0f_mflags,json=p0fMflags" json:"p0f_mflags,omitempty"`
	P0FUptime *int32         `protobuf:"varint,75,opt,name=p0f_uptime,json=p0fUptime" json:"p0f_uptime,omitempty"`
	// contains filtered or unexported fields
}

func (*Http) Descriptor deprecated

func (*Http) Descriptor() ([]byte, []int)

Deprecated: Use Http.ProtoReflect.Descriptor instead.

func (*Http) GetDstip

func (x *Http) GetDstip() []byte

func (*Http) GetDstport

func (x *Http) GetDstport() uint32

func (*Http) GetMsgtype

func (p *Http) GetMsgtype() uint32

func (*Http) GetP0FDetail

func (x *Http) GetP0FDetail() []byte

func (*Http) GetP0FDist

func (x *Http) GetP0FDist() int32

func (*Http) GetP0FFw

func (x *Http) GetP0FFw() uint32

func (*Http) GetP0FGenre

func (x *Http) GetP0FGenre() []byte
func (x *Http) GetP0FLink() []byte

func (*Http) GetP0FMflags

func (x *Http) GetP0FMflags() uint32

func (*Http) GetP0FNat

func (x *Http) GetP0FNat() uint32

func (*Http) GetP0FReal

func (x *Http) GetP0FReal() uint32

func (*Http) GetP0FScore

func (x *Http) GetP0FScore() int32

func (*Http) GetP0FTos

func (x *Http) GetP0FTos() []byte

func (*Http) GetP0FUptime

func (x *Http) GetP0FUptime() int32

func (*Http) GetRequest

func (x *Http) GetRequest() []byte

func (*Http) GetSrchost

func (x *Http) GetSrchost() []byte

func (*Http) GetSrcip

func (x *Http) GetSrcip() []byte

func (*Http) GetSrcport

func (x *Http) GetSrcport() uint32

func (*Http) GetType

func (x *Http) GetType() Http_HttpType

func (*Http) GetVid

func (p *Http) GetVid() uint32

func (*Http) ProtoMessage

func (*Http) ProtoMessage()

func (*Http) ProtoReflect

func (x *Http) ProtoReflect() protoreflect.Message

func (*Http) Reset

func (x *Http) Reset()

func (*Http) String

func (x *Http) String() string

type HttpType

type HttpType = Http_HttpType

type Http_HttpType

type Http_HttpType int32
const (
	Http_unknown  Http_HttpType = 0
	Http_sinkhole Http_HttpType = 1
)

func (Http_HttpType) Descriptor

func (Http_HttpType) Enum

func (x Http_HttpType) Enum() *Http_HttpType

func (Http_HttpType) EnumDescriptor deprecated

func (Http_HttpType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Http_HttpType.Descriptor instead.

func (Http_HttpType) Number

func (Http_HttpType) String

func (x Http_HttpType) String() string

func (Http_HttpType) Type

func (*Http_HttpType) UnmarshalJSON deprecated

func (x *Http_HttpType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type IPConn

type IPConn struct {
	Proto   *uint32 `protobuf:"varint,1,opt,name=proto" json:"proto,omitempty"`
	Srcip   []byte  `protobuf:"bytes,2,opt,name=srcip" json:"srcip,omitempty"`
	Srcport *uint32 `protobuf:"varint,3,opt,name=srcport" json:"srcport,omitempty"`
	Dstip   []byte  `protobuf:"bytes,4,opt,name=dstip" json:"dstip,omitempty"`
	Dstport *uint32 `protobuf:"varint,5,opt,name=dstport" json:"dstport,omitempty"`
	// contains filtered or unexported fields
}

func (*IPConn) Descriptor deprecated

func (*IPConn) Descriptor() ([]byte, []int)

Deprecated: Use IPConn.ProtoReflect.Descriptor instead.

func (*IPConn) GetDstip

func (x *IPConn) GetDstip() []byte

func (*IPConn) GetDstport

func (x *IPConn) GetDstport() uint32

func (*IPConn) GetMsgtype

func (p *IPConn) GetMsgtype() uint32

func (*IPConn) GetProto

func (x *IPConn) GetProto() uint32

func (*IPConn) GetSrcip

func (x *IPConn) GetSrcip() []byte

func (*IPConn) GetSrcport

func (x *IPConn) GetSrcport() uint32

func (*IPConn) GetVid

func (p *IPConn) GetVid() uint32

func (*IPConn) ProtoMessage

func (*IPConn) ProtoMessage()

func (*IPConn) ProtoReflect

func (x *IPConn) ProtoReflect() protoreflect.Message

func (*IPConn) Reset

func (x *IPConn) Reset()

func (*IPConn) String

func (x *IPConn) String() string

type LinkType

type LinkType = Linkpair_Linktype

type Linkpair

type Linkpair struct {
	Type    *Linkpair_Linktype `protobuf:"varint,1,req,name=type,enum=nmsg.base.Linkpair_Linktype" json:"type,omitempty"`
	Src     []byte             `protobuf:"bytes,2,req,name=src" json:"src,omitempty"`
	Dst     []byte             `protobuf:"bytes,3,req,name=dst" json:"dst,omitempty"`
	Headers []byte             `protobuf:"bytes,5,opt,name=headers" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*Linkpair) Descriptor deprecated

func (*Linkpair) Descriptor() ([]byte, []int)

Deprecated: Use Linkpair.ProtoReflect.Descriptor instead.

func (*Linkpair) GetDst

func (x *Linkpair) GetDst() []byte

func (*Linkpair) GetHeaders

func (x *Linkpair) GetHeaders() []byte

func (*Linkpair) GetMsgtype

func (p *Linkpair) GetMsgtype() uint32

func (*Linkpair) GetSrc

func (x *Linkpair) GetSrc() []byte

func (*Linkpair) GetType

func (x *Linkpair) GetType() Linkpair_Linktype

func (*Linkpair) GetVid

func (p *Linkpair) GetVid() uint32

func (*Linkpair) ProtoMessage

func (*Linkpair) ProtoMessage()

func (*Linkpair) ProtoReflect

func (x *Linkpair) ProtoReflect() protoreflect.Message

func (*Linkpair) Reset

func (x *Linkpair) Reset()

func (*Linkpair) String

func (x *Linkpair) String() string

type Linkpair_Linktype

type Linkpair_Linktype int32
const (
	Linkpair_anchor   Linkpair_Linktype = 0
	Linkpair_redirect Linkpair_Linktype = 1
)

func (Linkpair_Linktype) Descriptor

func (Linkpair_Linktype) Enum

func (Linkpair_Linktype) EnumDescriptor deprecated

func (Linkpair_Linktype) EnumDescriptor() ([]byte, []int)

Deprecated: Use Linkpair_Linktype.Descriptor instead.

func (Linkpair_Linktype) Number

func (Linkpair_Linktype) String

func (x Linkpair_Linktype) String() string

func (Linkpair_Linktype) Type

func (*Linkpair_Linktype) UnmarshalJSON deprecated

func (x *Linkpair_Linktype) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type LogLine

type LogLine struct {
	Category []byte `protobuf:"bytes,1,opt,name=category" json:"category,omitempty"`
	Message  []byte `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*LogLine) Descriptor deprecated

func (*LogLine) Descriptor() ([]byte, []int)

Deprecated: Use LogLine.ProtoReflect.Descriptor instead.

func (*LogLine) GetCategory

func (x *LogLine) GetCategory() []byte

func (*LogLine) GetMessage

func (x *LogLine) GetMessage() []byte

func (*LogLine) GetMsgtype

func (p *LogLine) GetMsgtype() uint32

func (*LogLine) GetVid

func (p *LogLine) GetVid() uint32

func (*LogLine) ProtoMessage

func (*LogLine) ProtoMessage()

func (*LogLine) ProtoReflect

func (x *LogLine) ProtoReflect() protoreflect.Message

func (*LogLine) Reset

func (x *LogLine) Reset()

func (*LogLine) String

func (x *LogLine) String() string

type Ncap

type Ncap struct {
	Type    *Ncap_NcapType `protobuf:"varint,1,req,name=type,enum=nmsg.base.Ncap_NcapType" json:"type,omitempty"`
	Payload []byte         `protobuf:"bytes,2,req,name=payload" json:"payload,omitempty"`
	// legacy NCAP fields
	Ltype *Ncap_NcapLegacyType `protobuf:"varint,3,opt,name=ltype,enum=nmsg.base.Ncap_NcapLegacyType" json:"ltype,omitempty"`
	Srcip []byte               `protobuf:"bytes,4,opt,name=srcip" json:"srcip,omitempty"`
	Dstip []byte               `protobuf:"bytes,5,opt,name=dstip" json:"dstip,omitempty"`
	Lint0 *uint32              `protobuf:"varint,6,opt,name=lint0" json:"lint0,omitempty"`
	Lint1 *uint32              `protobuf:"varint,7,opt,name=lint1" json:"lint1,omitempty"`
	// contains filtered or unexported fields
}

func (*Ncap) Descriptor deprecated

func (*Ncap) Descriptor() ([]byte, []int)

Deprecated: Use Ncap.ProtoReflect.Descriptor instead.

func (*Ncap) GetDstip

func (x *Ncap) GetDstip() []byte

func (*Ncap) GetLint0

func (x *Ncap) GetLint0() uint32

func (*Ncap) GetLint1

func (x *Ncap) GetLint1() uint32

func (*Ncap) GetLtype

func (x *Ncap) GetLtype() Ncap_NcapLegacyType

func (*Ncap) GetMsgtype

func (p *Ncap) GetMsgtype() uint32

func (*Ncap) GetPayload

func (x *Ncap) GetPayload() []byte

func (*Ncap) GetSrcip

func (x *Ncap) GetSrcip() []byte

func (*Ncap) GetType

func (x *Ncap) GetType() Ncap_NcapType

func (*Ncap) GetVid

func (p *Ncap) GetVid() uint32

func (*Ncap) ProtoMessage

func (*Ncap) ProtoMessage()

func (*Ncap) ProtoReflect

func (x *Ncap) ProtoReflect() protoreflect.Message

func (*Ncap) Reset

func (x *Ncap) Reset()

func (*Ncap) String

func (x *Ncap) String() string

type NcapLegacyType

type NcapLegacyType = Ncap_NcapLegacyType

type NcapType

type NcapType Ncap_NcapType

type Ncap_NcapLegacyType

type Ncap_NcapLegacyType int32
const (
	Ncap_UDP  Ncap_NcapLegacyType = 0
	Ncap_TCP  Ncap_NcapLegacyType = 1
	Ncap_ICMP Ncap_NcapLegacyType = 2
)

func (Ncap_NcapLegacyType) Descriptor

func (Ncap_NcapLegacyType) Enum

func (Ncap_NcapLegacyType) EnumDescriptor deprecated

func (Ncap_NcapLegacyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Ncap_NcapLegacyType.Descriptor instead.

func (Ncap_NcapLegacyType) Number

func (Ncap_NcapLegacyType) String

func (x Ncap_NcapLegacyType) String() string

func (Ncap_NcapLegacyType) Type

func (*Ncap_NcapLegacyType) UnmarshalJSON deprecated

func (x *Ncap_NcapLegacyType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Ncap_NcapType

type Ncap_NcapType int32
const (
	Ncap_IPV4   Ncap_NcapType = 0
	Ncap_IPV6   Ncap_NcapType = 1
	Ncap_Legacy Ncap_NcapType = 2
)

func (Ncap_NcapType) Descriptor

func (Ncap_NcapType) Enum

func (x Ncap_NcapType) Enum() *Ncap_NcapType

func (Ncap_NcapType) EnumDescriptor deprecated

func (Ncap_NcapType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Ncap_NcapType.Descriptor instead.

func (Ncap_NcapType) Number

func (Ncap_NcapType) String

func (x Ncap_NcapType) String() string

func (Ncap_NcapType) Type

func (*Ncap_NcapType) UnmarshalJSON deprecated

func (x *Ncap_NcapType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Packet

type Packet struct {
	PayloadType *PacketType `protobuf:"varint,1,req,name=payload_type,json=payloadType,enum=nmsg.base.PacketType" json:"payload_type,omitempty"`
	Payload     []byte      `protobuf:"bytes,2,req,name=payload" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet) Descriptor deprecated

func (*Packet) Descriptor() ([]byte, []int)

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetMsgtype

func (p *Packet) GetMsgtype() uint32

func (*Packet) GetPayload

func (x *Packet) GetPayload() []byte

func (*Packet) GetPayloadType

func (x *Packet) GetPayloadType() PacketType

func (*Packet) GetVid

func (p *Packet) GetVid() uint32

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) ProtoReflect

func (x *Packet) ProtoReflect() protoreflect.Message

func (*Packet) Reset

func (x *Packet) Reset()

func (*Packet) String

func (x *Packet) String() string

type PacketType

type PacketType int32
const (
	// An IPv4 or IPv6 packet. The packet begins immediately with the IP
	// header and contains the complete packet payload. Distinguishing between
	// IPv4 and IPv6 packets is done by examining the IP version field in the
	// IP header.
	PacketType_IP PacketType = 1
)

func (PacketType) Descriptor

func (PacketType) Descriptor() protoreflect.EnumDescriptor

func (PacketType) Enum

func (x PacketType) Enum() *PacketType

func (PacketType) EnumDescriptor deprecated

func (PacketType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PacketType.Descriptor instead.

func (PacketType) Number

func (x PacketType) Number() protoreflect.EnumNumber

func (PacketType) String

func (x PacketType) String() string

func (PacketType) Type

func (*PacketType) UnmarshalJSON deprecated

func (x *PacketType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Pkt

type Pkt struct {
	Payload  []byte  `protobuf:"bytes,1,req,name=payload" json:"payload,omitempty"`
	LenFrame *uint32 `protobuf:"varint,2,opt,name=len_frame,json=lenFrame" json:"len_frame,omitempty"`
	// contains filtered or unexported fields
}

func (*Pkt) Descriptor deprecated

func (*Pkt) Descriptor() ([]byte, []int)

Deprecated: Use Pkt.ProtoReflect.Descriptor instead.

func (*Pkt) GetLenFrame

func (x *Pkt) GetLenFrame() uint32

func (*Pkt) GetMsgtype

func (p *Pkt) GetMsgtype() uint32

func (*Pkt) GetPayload

func (x *Pkt) GetPayload() []byte

func (*Pkt) GetVid

func (p *Pkt) GetVid() uint32

func (*Pkt) ProtoMessage

func (*Pkt) ProtoMessage()

func (*Pkt) ProtoReflect

func (x *Pkt) ProtoReflect() protoreflect.Message

func (*Pkt) Reset

func (x *Pkt) Reset()

func (*Pkt) String

func (x *Pkt) String() string

type UdpChecksum

type UdpChecksum = DnsQR_UdpChecksum

type Xml

type Xml struct {
	Xmltype    []byte `protobuf:"bytes,1,req,name=xmltype" json:"xmltype,omitempty"`
	Xmlpayload []byte `protobuf:"bytes,2,req,name=xmlpayload" json:"xmlpayload,omitempty"`
	// contains filtered or unexported fields
}

func (*Xml) Descriptor deprecated

func (*Xml) Descriptor() ([]byte, []int)

Deprecated: Use Xml.ProtoReflect.Descriptor instead.

func (*Xml) GetMsgtype

func (p *Xml) GetMsgtype() uint32

func (*Xml) GetVid

func (p *Xml) GetVid() uint32

func (*Xml) GetXmlpayload

func (x *Xml) GetXmlpayload() []byte

func (*Xml) GetXmltype

func (x *Xml) GetXmltype() []byte

func (*Xml) ProtoMessage

func (*Xml) ProtoMessage()

func (*Xml) ProtoReflect

func (x *Xml) ProtoReflect() protoreflect.Message

func (*Xml) Reset

func (x *Xml) Reset()

func (*Xml) String

func (x *Xml) String() string

Jump to

Keyboard shortcuts

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