Commit Graph

2 Commits

Author SHA1 Message Date
Marius Petrescu, YO2LOJ a8153d8ae5
Update buffer allocation to the correct size
Maximum size of ICMP packet is 64k while buffer allocation was UDP_BUFFER_LENMAX, while read was up to 64k.
This will cause a crash on read in the subsequent read for packets with length greater than UDP_BUFFER_LENMAX via a buffer overflow.
2021-01-16 01:43:05 +02:00
Marius Petrescu, YO2LOJ 73648794f0 Update and cleanup
- created raw socket class
- moved udp recv via msg to a derived class
- option file read optimized
2020-02-22 16:38:56 +02:00