You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The max packet length. This shouldn't be changed unless you know what you're doing.
4
+
#defineMAX_PCKT_LEN 0xFFFF
5
+
6
+
// The maximum amount of threads to support for sequences. 4096 should be enough I think... (lol)
7
+
#defineMAX_THREADS 4096
8
+
9
+
// The maximum length of a name (e.g. device name).
10
+
#defineMAX_NAME_LEN 64
11
+
12
+
// Enables AF_XDP socket support (required for now since we have no other techs \o/).
3
13
#defineENABLE_AF_XDP
4
14
5
15
// WARNING: Experimental
6
16
// When defined, the AF_XDP socket's UMEM frame buffers doesn't get the packet buffer copied to it after the first time. This should technically result in better throughput due to reduced memory copying, but only would work for completely static packets.
// If defined, the program will attempt to raise the stack limit. This shouldn't be needed, but wanted to include just in case.
23
+
// #define CONF_UNLOCK_RLIMIT
24
+
25
+
// If defined, the program uses a much more randomized seed by retrieving random bytes from `/dev/urandom`.
26
+
// This results in more randomness with each packet, but adds a bit more overhead.
27
+
// #define VERY_RANDOM
28
+
29
+
// If defined, if we only detect a single static packet being sent, we skip a lot of unnecessary steps.
30
+
#defineSEQUENCE_USE_STATIC_PKT
31
+
32
+
// If defined, attempts to generate the most amount of packets per second by sending single empty packets (of any of the protocols) with static packets.
33
+
// All checks are also skipped including limits such as time, max packets, packet rates, etc. This is to achieve max throughput possible.
0 commit comments