flowpb

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlowMessage_FlowType_name = map[int32]string{
		0: "FLOWUNKNOWN",
		1: "SFLOW_5",
		2: "NETFLOW_V5",
		3: "NETFLOW_V9",
		4: "IPFIX",
	}
	FlowMessage_FlowType_value = map[string]int32{
		"FLOWUNKNOWN": 0,
		"SFLOW_5":     1,
		"NETFLOW_V5":  2,
		"NETFLOW_V9":  3,
		"IPFIX":       4,
	}
)

Enum value maps for FlowMessage_FlowType.

View Source
var File_pb_flow_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FlowMessage

type FlowMessage struct {
	Type           FlowMessage_FlowType `protobuf:"varint,1,opt,name=type,proto3,enum=flowpb.FlowMessage_FlowType" json:"type,omitempty"`
	TimeReceivedNs uint64               `protobuf:"varint,110,opt,name=time_received_ns,json=timeReceivedNs,proto3" json:"time_received_ns,omitempty"`
	SequenceNum    uint32               `protobuf:"varint,4,opt,name=sequence_num,json=sequenceNum,proto3" json:"sequence_num,omitempty"`
	SamplingRate   uint64               `protobuf:"varint,3,opt,name=sampling_rate,json=samplingRate,proto3" json:"sampling_rate,omitempty"`
	// Sampler information
	SamplerAddress []byte `protobuf:"bytes,11,opt,name=sampler_address,json=samplerAddress,proto3" json:"sampler_address,omitempty"`
	// Found inside packet
	TimeFlowStartNs uint64 `protobuf:"varint,111,opt,name=time_flow_start_ns,json=timeFlowStartNs,proto3" json:"time_flow_start_ns,omitempty"`
	TimeFlowEndNs   uint64 `protobuf:"varint,112,opt,name=time_flow_end_ns,json=timeFlowEndNs,proto3" json:"time_flow_end_ns,omitempty"`
	// Size of the sampled packet
	Bytes   uint64 `protobuf:"varint,9,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Packets uint64 `protobuf:"varint,10,opt,name=packets,proto3" json:"packets,omitempty"`
	// Source/destination addresses
	SrcAddr []byte `protobuf:"bytes,6,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"`
	DstAddr []byte `protobuf:"bytes,7,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"`
	// Layer 3 protocol (IPv4/IPv6/ARP/MPLS...)
	Etype uint32 `protobuf:"varint,30,opt,name=etype,proto3" json:"etype,omitempty"`
	// Layer 4 protocol
	Proto uint32 `protobuf:"varint,20,opt,name=proto,proto3" json:"proto,omitempty"`
	// Ports for UDP and TCP
	SrcPort uint32 `protobuf:"varint,21,opt,name=src_port,json=srcPort,proto3" json:"src_port,omitempty"`
	DstPort uint32 `protobuf:"varint,22,opt,name=dst_port,json=dstPort,proto3" json:"dst_port,omitempty"`
	// Interfaces
	InIf  uint32 `protobuf:"varint,18,opt,name=in_if,json=inIf,proto3" json:"in_if,omitempty"`
	OutIf uint32 `protobuf:"varint,19,opt,name=out_if,json=outIf,proto3" json:"out_if,omitempty"`
	// Ethernet information
	SrcMac uint64 `protobuf:"varint,27,opt,name=src_mac,json=srcMac,proto3" json:"src_mac,omitempty"`
	DstMac uint64 `protobuf:"varint,28,opt,name=dst_mac,json=dstMac,proto3" json:"dst_mac,omitempty"`
	// Vlan
	SrcVlan uint32 `protobuf:"varint,33,opt,name=src_vlan,json=srcVlan,proto3" json:"src_vlan,omitempty"`
	DstVlan uint32 `protobuf:"varint,34,opt,name=dst_vlan,json=dstVlan,proto3" json:"dst_vlan,omitempty"`
	// 802.1q VLAN in sampled packet
	VlanId uint32 `protobuf:"varint,29,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"`
	// IP and TCP special flags
	IpTos            uint32 `protobuf:"varint,23,opt,name=ip_tos,json=ipTos,proto3" json:"ip_tos,omitempty"`
	ForwardingStatus uint32 `protobuf:"varint,24,opt,name=forwarding_status,json=forwardingStatus,proto3" json:"forwarding_status,omitempty"`
	IpTtl            uint32 `protobuf:"varint,25,opt,name=ip_ttl,json=ipTtl,proto3" json:"ip_ttl,omitempty"`
	IpFlags          uint32 `protobuf:"varint,38,opt,name=ip_flags,json=ipFlags,proto3" json:"ip_flags,omitempty"`
	TcpFlags         uint32 `protobuf:"varint,26,opt,name=tcp_flags,json=tcpFlags,proto3" json:"tcp_flags,omitempty"`
	IcmpType         uint32 `protobuf:"varint,31,opt,name=icmp_type,json=icmpType,proto3" json:"icmp_type,omitempty"`
	IcmpCode         uint32 `protobuf:"varint,32,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"`
	Ipv6FlowLabel    uint32 `protobuf:"varint,37,opt,name=ipv6_flow_label,json=ipv6FlowLabel,proto3" json:"ipv6_flow_label,omitempty"`
	// Fragments (IPv4/IPv6)
	FragmentId     uint32 `protobuf:"varint,35,opt,name=fragment_id,json=fragmentId,proto3" json:"fragment_id,omitempty"`
	FragmentOffset uint32 `protobuf:"varint,36,opt,name=fragment_offset,json=fragmentOffset,proto3" json:"fragment_offset,omitempty"`
	// Autonomous system information
	SrcAs     uint32 `protobuf:"varint,14,opt,name=src_as,json=srcAs,proto3" json:"src_as,omitempty"`
	DstAs     uint32 `protobuf:"varint,15,opt,name=dst_as,json=dstAs,proto3" json:"dst_as,omitempty"`
	NextHop   []byte `protobuf:"bytes,12,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
	NextHopAs uint32 `protobuf:"varint,13,opt,name=next_hop_as,json=nextHopAs,proto3" json:"next_hop_as,omitempty"`
	// Prefix size
	SrcNet uint32 `protobuf:"varint,16,opt,name=src_net,json=srcNet,proto3" json:"src_net,omitempty"`
	DstNet uint32 `protobuf:"varint,17,opt,name=dst_net,json=dstNet,proto3" json:"dst_net,omitempty"`
	// BGP information
	BgpNextHop     []byte   `protobuf:"bytes,100,opt,name=bgp_next_hop,json=bgpNextHop,proto3" json:"bgp_next_hop,omitempty"`
	BgpCommunities []uint32 `protobuf:"varint,101,rep,packed,name=bgp_communities,json=bgpCommunities,proto3" json:"bgp_communities,omitempty"`
	AsPath         []uint32 `protobuf:"varint,102,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"`
	// MPLS information
	MplsTtl             []uint32 `protobuf:"varint,80,rep,packed,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"`
	MplsLabel           []uint32 `protobuf:"varint,81,rep,packed,name=mpls_label,json=mplsLabel,proto3" json:"mpls_label,omitempty"`
	MplsIp              [][]byte `protobuf:"bytes,82,rep,name=mpls_ip,json=mplsIp,proto3" json:"mpls_ip,omitempty"`
	ObservationDomainId uint32   `protobuf:"varint,70,opt,name=observation_domain_id,json=observationDomainId,proto3" json:"observation_domain_id,omitempty"`
	ObservationPointId  uint32   `protobuf:"varint,71,opt,name=observation_point_id,json=observationPointId,proto3" json:"observation_point_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FlowMessage) Descriptor deprecated

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

Deprecated: Use FlowMessage.ProtoReflect.Descriptor instead.

func (*FlowMessage) GetAsPath

func (x *FlowMessage) GetAsPath() []uint32

func (*FlowMessage) GetBgpCommunities

func (x *FlowMessage) GetBgpCommunities() []uint32

func (*FlowMessage) GetBgpNextHop

func (x *FlowMessage) GetBgpNextHop() []byte

func (*FlowMessage) GetBytes

func (x *FlowMessage) GetBytes() uint64

func (*FlowMessage) GetDstAddr

func (x *FlowMessage) GetDstAddr() []byte

func (*FlowMessage) GetDstAs

func (x *FlowMessage) GetDstAs() uint32

func (*FlowMessage) GetDstMac

func (x *FlowMessage) GetDstMac() uint64

func (*FlowMessage) GetDstNet

func (x *FlowMessage) GetDstNet() uint32

func (*FlowMessage) GetDstPort

func (x *FlowMessage) GetDstPort() uint32

func (*FlowMessage) GetDstVlan

func (x *FlowMessage) GetDstVlan() uint32

func (*FlowMessage) GetEtype

func (x *FlowMessage) GetEtype() uint32

func (*FlowMessage) GetForwardingStatus

func (x *FlowMessage) GetForwardingStatus() uint32

func (*FlowMessage) GetFragmentId

func (x *FlowMessage) GetFragmentId() uint32

func (*FlowMessage) GetFragmentOffset

func (x *FlowMessage) GetFragmentOffset() uint32

func (*FlowMessage) GetIcmpCode

func (x *FlowMessage) GetIcmpCode() uint32

func (*FlowMessage) GetIcmpType

func (x *FlowMessage) GetIcmpType() uint32

func (*FlowMessage) GetInIf

func (x *FlowMessage) GetInIf() uint32

func (*FlowMessage) GetIpFlags added in v2.1.0

func (x *FlowMessage) GetIpFlags() uint32

func (*FlowMessage) GetIpTos

func (x *FlowMessage) GetIpTos() uint32

func (*FlowMessage) GetIpTtl

func (x *FlowMessage) GetIpTtl() uint32

func (*FlowMessage) GetIpv6FlowLabel

func (x *FlowMessage) GetIpv6FlowLabel() uint32

func (*FlowMessage) GetMplsIp

func (x *FlowMessage) GetMplsIp() [][]byte

func (*FlowMessage) GetMplsLabel

func (x *FlowMessage) GetMplsLabel() []uint32

func (*FlowMessage) GetMplsTtl

func (x *FlowMessage) GetMplsTtl() []uint32

func (*FlowMessage) GetNextHop

func (x *FlowMessage) GetNextHop() []byte

func (*FlowMessage) GetNextHopAs

func (x *FlowMessage) GetNextHopAs() uint32

func (*FlowMessage) GetObservationDomainId

func (x *FlowMessage) GetObservationDomainId() uint32

func (*FlowMessage) GetObservationPointId

func (x *FlowMessage) GetObservationPointId() uint32

func (*FlowMessage) GetOutIf

func (x *FlowMessage) GetOutIf() uint32

func (*FlowMessage) GetPackets

func (x *FlowMessage) GetPackets() uint64

func (*FlowMessage) GetProto

func (x *FlowMessage) GetProto() uint32

func (*FlowMessage) GetSamplerAddress

func (x *FlowMessage) GetSamplerAddress() []byte

func (*FlowMessage) GetSamplingRate

func (x *FlowMessage) GetSamplingRate() uint64

func (*FlowMessage) GetSequenceNum

func (x *FlowMessage) GetSequenceNum() uint32

func (*FlowMessage) GetSrcAddr

func (x *FlowMessage) GetSrcAddr() []byte

func (*FlowMessage) GetSrcAs

func (x *FlowMessage) GetSrcAs() uint32

func (*FlowMessage) GetSrcMac

func (x *FlowMessage) GetSrcMac() uint64

func (*FlowMessage) GetSrcNet

func (x *FlowMessage) GetSrcNet() uint32

func (*FlowMessage) GetSrcPort

func (x *FlowMessage) GetSrcPort() uint32

func (*FlowMessage) GetSrcVlan

func (x *FlowMessage) GetSrcVlan() uint32

func (*FlowMessage) GetTcpFlags

func (x *FlowMessage) GetTcpFlags() uint32

func (*FlowMessage) GetTimeFlowEndNs

func (x *FlowMessage) GetTimeFlowEndNs() uint64

func (*FlowMessage) GetTimeFlowStartNs

func (x *FlowMessage) GetTimeFlowStartNs() uint64

func (*FlowMessage) GetTimeReceivedNs

func (x *FlowMessage) GetTimeReceivedNs() uint64

func (*FlowMessage) GetType

func (x *FlowMessage) GetType() FlowMessage_FlowType

func (*FlowMessage) GetVlanId

func (x *FlowMessage) GetVlanId() uint32

func (*FlowMessage) ProtoMessage

func (*FlowMessage) ProtoMessage()

func (*FlowMessage) ProtoReflect

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

func (*FlowMessage) Reset

func (x *FlowMessage) Reset()

func (*FlowMessage) String

func (x *FlowMessage) String() string

type FlowMessage_FlowType

type FlowMessage_FlowType int32
const (
	FlowMessage_FLOWUNKNOWN FlowMessage_FlowType = 0
	FlowMessage_SFLOW_5     FlowMessage_FlowType = 1
	FlowMessage_NETFLOW_V5  FlowMessage_FlowType = 2
	FlowMessage_NETFLOW_V9  FlowMessage_FlowType = 3
	FlowMessage_IPFIX       FlowMessage_FlowType = 4
)

func (FlowMessage_FlowType) Descriptor

func (FlowMessage_FlowType) Enum

func (FlowMessage_FlowType) EnumDescriptor deprecated

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

Deprecated: Use FlowMessage_FlowType.Descriptor instead.

func (FlowMessage_FlowType) Number

func (FlowMessage_FlowType) String

func (x FlowMessage_FlowType) String() string

func (FlowMessage_FlowType) Type

Jump to

Keyboard shortcuts

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