Add support for changing ICMP listen address #77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "icmp-listen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds support for changing ICMP listen address. Currently, the listener listens on
0.0.0.0. This PR adds support for changing the address, for example to127.0.0.2.I needed to execute both client and server on the same host. Otherwise, how do you test it? When executing both on the same host, ping and pong results in an infinite loop, because client handles ping and pong at the same time, as ping traffic have same address as client. Same logic for server. Same logic for other ICMP traffic. After specifying
127.0.0.1for client and127.0.0.2for server, the problem resolves.