Skip to main content

Crate fosr_lib

Crate fosr_lib 

Source
Expand description

Library for high-quality, high-throughput synthetic network traffic generation This library is notably used by the binary Fos-R, but can be used freely.

Modules§

export
Export to pcap
inject
Network injection
models
Default models included in the binary
network
Network and host configuration
stage1
Timestamp generation
stage2
Flow statistics generation
stage3
Packet metadata generation
stage4
Full packet generation
stats
Generation statistics
topo
Network topology generator Topology generator
utils
Utilities

Structs§

DstIpRoleIter
An iterator over the variants of DstIpRole
FlowData
The data of a transport layer flow
FlowId
A 5-uplet typically used to identify a flow
IcmpPacketInfo
Metadata of ICMP packet Some information about an Icmp packet
L7ProtoIter
An iterator over the variants of L7Proto
L7ProtoWithPort
A list of application layer protocol with their default port
OsIter
An iterator over the variants of Os
Packet
A packet, with a timestamp and some data
Packets
A set of packets from the same flow
PacketsIR
The packets intermediate representation (as output by stage 3)
PacketsRecycler
The recycler used by thingbuf
SeededData
A general wrapper to pass a seed along with actual data
SrcIpRoleIter
An iterator over the variants of SrcIpRole
TcpPacketInfo
Metadata of TCP packet Some information about a TCP packet
TimePoint
Stage 1 structure
UdpPacketInfo
Metadata of UDP packet Some information about a UDP packet

Enums§

DstIpRole
Flow
A wrapper for transport layer flow
L4Proto
A transport protocol
L7Proto
A list of application layer protocol
Os
The OS of an host. By default, assume Linux
PacketDirection
The direction of a packet
Payload
The payload of a packet
PayloadType
Types of payload in the automata
Port
A default port
SrcIpRole
TcpConnState
Connection states, adapted from Zeek https://docs.zeek.org/en/master/scripts/base/protocols/conn/main.zeek.html#field-Conn::Info$conn_state

Traits§

PacketInfo
A trait for obtaining indicators from a packet