Struct netflow_parser::static_versions::v7::Body
source · pub struct Body {Show 22 fields
pub src_addr: Ipv4Addr,
pub dst_addr: Ipv4Addr,
pub next_hop: Ipv4Addr,
pub input: u16,
pub output: u16,
pub d_pkts: u32,
pub d_octets: u32,
pub first: Duration,
pub last: Duration,
pub src_port: u16,
pub dst_port: u16,
pub flags_fields_valid: u8,
pub tcp_flags: u8,
pub protocol_number: u8,
pub protocol_type: ProtocolTypes,
pub tos: u8,
pub src_as: u16,
pub dst_as: u16,
pub src_mask: u8,
pub dst_mask: u8,
pub flags_fields_invalid: u16,
pub router_src: Ipv4Addr,
}Fields§
§src_addr: Ipv4AddrSource IP address; in case of destination-only flows, set to zero.
dst_addr: Ipv4AddrDestination IP address.
next_hop: Ipv4AddrNext hop router; always set to zero.
input: u16SNMP index of input interface; always set to zero.
output: u16SNMP index of output interface.
d_pkts: u32Packets in the flow.
d_octets: u32Total number of Layer 3 bytes in the packets of the flow.
first: DurationSysUptime, in milliseconds, at start of flow.
last: DurationSysUptime, in milliseconds, at the time the last packet of the flow was received.
src_port: u16TCP/UDP source port number; set to zero if flow mask is destination-only or source-destination.
dst_port: u16TCP/UDP destination port number; set to zero if flow mask is destination-only or source-destination.
flags_fields_valid: u8Flags indicating, among other things, what flow fields are invalid.
tcp_flags: u8TCP flags; always set to zero.
protocol_number: u8IP protocol type (for example, TCP = 6; UDP = 17); set to zero if flow mask is destination-only or source-destination.
protocol_type: ProtocolTypes§tos: u8IP type of service; switch sets it to the ToS of the first packet of the flow.
src_as: u16Source autonomous system number, either origin or peer; always set to zero.
dst_as: u16Destination autonomous system number, either origin or peer; always set to zero.
src_mask: u8Source address prefix mask; always set to zero.
dst_mask: u8Destination address prefix mask; always set to zero.
flags_fields_invalid: u16Flags indicating, among other things, what flows are invalid.
router_src: Ipv4AddrIP address of the router that is bypassed by the Catalyst 5000 series switch. This is the same address the router uses when it sends NetFlow export packets. This IP address is propagated to all switches bypassing the router through the FCP protocol.