src/oping.c: Added -D <interface name> command line option.
authorSebastian Harl <sh@tokkee.org>
Fri, 17 Jul 2009 12:14:18 +0000 (14:14 +0200)
committerFlorian Forster <sifnfors@stud.informatik.uni-erlangen.de>
Fri, 17 Jul 2009 12:50:30 +0000 (14:50 +0200)
commitdb767e93a313902cfbdfd33a6f9b3e4054bcf1f0
tree865f5f2d8d40c8f2281cc52de1c6e6c83a06215f
parent6f3b7d94ab32cd6fc94398ebd326055ad36d88f2
src/oping.c: Added -D <interface name> command line option.

This option sets the outgoing network device to use.

I decided not to reuse the -I command line option for that purpose (which is
what GNU ping is doing), for the following reasons:

 * In theory, an interface name could be confused with a host name.
 * Imho, it's better to specify things explicitly.
 * This approach is more flexible.
src/mans/oping.pod
src/oping.c