Conversation
|
Thanks for your time in making that PR. |
greatly speeds up mtu scanning
|
Done, also added (note: thats not the wait time for a ping reply, just the dead time, waiting before sending a new one) |
| else: | ||
| command = "ping -c 1 -s {} -W {} -D -i {}".format( mtu_encapsulated, timeout, interval ) | ||
| command = "ping -c 1 -s {} -W {} -i {}".format( mtu_encapsulated, timeout, interval ) | ||
| if do_not_fragment: |
|
Why did you remove the timeout on the IPv6 ping command ? Also, please don't set default timeout to .2 seconds as this will fail on anything run by non root users. Thanks for the effort for providing that PR. |
Because ping6 (on mac) does not support a timeout option. (and -W on ping6 means
This interval works fine for non root. These work just fine (commands below on linux, I tested linux & mac) Only 0.001 fails for me both on mac & linux work fine with interval 0.2 as non-root. so I didn't see a reason to default to slower one. do you? I like your suggestion to add it a parameter. (added commit 4d4de81) for that |
Add parameter interval. new defaul to 0.2s, speeds things up a lot. (was 1s before) I don't think there is any reason to do this slower. NB: 0.2 wors for non-root too. (only below 0.002 you require root)
|
Hmmm, it seems that different systems come with different limits. RHEL10 Let's settle for .2s which seems "good enough". |
Fixes: #6