by tsuro and comawill (Stratum 0 https://stratum0.org)
Here is what the program does:
- It opens an
socket(AF_INET, SOCK_RAW, 0xfe)
- and waits with an
resvmsg
for incoming packets - each packet will be 'parsed' (extracts source_addr of the packet and skips the remaining part)
- expexts the first four bytes of the payload as
length of payload - 4