fosr_lib/
lib.rs

1//! Library for high-quality, high-throughput synthetic network traffic generation
2//! This library is notably used by the binary Fos-R, but can be used freely.
3// #![warn(missing_docs)]
4
5/// Network and host configuration
6pub mod config;
7/// Generation statistics
8pub mod stats;
9
10#[doc(hidden)]
11/// Structures used throughout the library
12pub mod structs;
13
14#[doc(inline)]
15pub use structs::*;
16
17pub mod models;
18
19/// ICMP-specific fonctions
20mod icmp;
21/// TCP-specific fonctions
22mod tcp;
23/// UDP-specific fonctions
24mod udp;
25
26/// Metadata of ICMP packet
27pub use icmp::ICMPPacketInfo;
28/// Metadata of TCP packet
29pub use tcp::TCPPacketInfo;
30/// Metadata of UDP packet
31pub use udp::UDPPacketInfo;
32
33/// Utilities
34pub mod utils;
35
36/// Timestamp generation
37pub mod stage0;
38
39/// Flow statistics generation
40pub mod stage1;
41
42/// Packet metadata generation
43pub mod stage2;
44
45/// Full packet generation
46pub mod stage3;
47
48/// Export to pcap
49pub mod export;
50
51/// Network injection
52pub mod inject;