heistp / irtt

Isochronous Round-Trip Tester
GNU General Public License v2.0
185 stars 23 forks source link

Allow specifying bind interfaces in addition to addresses #3

Closed tohojo closed 6 years ago

tohojo commented 6 years ago

When deploying irtt to my testbed, I have several boxes with the same interface names but with diffent IPs assigned to each interface. It would be useful to be able to specify the interface name to -b instead of the address, since I can then just reuse the same systemd unit file.

heistp commented 6 years ago

Good idea, and presumably if the interface has multiple IPs, you’d expect it to listen on each? Shouldn’t be difficult, I can probably look at it tonight or tomorrow...

On Nov 22, 2017, at 12:03 PM, Toke Høiland-Jørgensen notifications@github.com wrote:

When deploying irtt to my testbed, I have several boxes with the same interface names but with diffent IPs assigned to each interface. It would be useful to be able to specify the interface name to -b instead of the address, since I can then just reuse the same systemd unit file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/peteheist/irtt/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AEMYsQ7mrkSnrbkk28QGGSipbXZIppPIks5s4_9rgaJpZM4QnOIS.

heistp commented 6 years ago

You can now do: irtt server -b %eth0 for example, or use in the interface name as a wildcard, like `%eth`.

The default bind address is now "%*" so people won't see that pesky warning, unless they've actively specified a bind address with an unspecified IP on a box with multiple IPs.

This was a bunch of changed and new code and I only tested on a few boxes, so re-open with any problems...

tohojo commented 6 years ago

Awesome, thanks! :)