mirror of
https://github.com/zaphar/icmp-socket.git
synced 2025-07-21 19:29:47 -04:00

rcv_from() would always overwrite the timeout parameter set by the user. Instead of setting the timeout within the socket when set_timeout() is called, store the timeout information within the options (along with hops) and read that data when the sockets timeout is actually set in rcv_from().