Commit Graph

3 Commits

Author SHA1 Message Date
f5bff09ffe
Fix undefined behavior
Returning a pointer to a static buffer in an object that is later
deleted results in an empty IP header, depending on the compiler and
optimisation level.
Instead we can write directly inside the packet buffer.
2023-06-18 02:04:57 +02:00
8182ef4335
Create ICMP packets containing valid IP and UDP data
The encapsulated IP packed was missing source/destination addresses and
the UDP datagram had size 0.
2023-06-18 02:04:57 +02:00
6a18c72b0c
initial commit 2023-06-18 02:04:56 +02:00