aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipaccess
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-03-16 17:27:07 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-16 18:54:44 +0000
commit8972f3fe4c5c26ef407779bec79dbd1c865b067d (patch)
tree6abc46aaf6a4a56b41ce5599d9784fb885875043 /src/ipaccess
parent3561bd48976dbee8dbd4659dad15be85a3e79ace (diff)
abisip-find: Improve use information output
Interestingly, SO_BINDTODEVICE used to bind to a specific iface requires root permissions. However, the same target can be accomplished by binding to a local IP addr set on the target interface, which doesn't require root permissions in this case. Change-Id: Ie123c45005d68b186cb06538f7bd31f3b2513007
Diffstat (limited to 'src/ipaccess')
-rw-r--r--src/ipaccess/abisip-find.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ipaccess/abisip-find.c b/src/ipaccess/abisip-find.c
index 03f579b2d..21ed50e5a 100644
--- a/src/ipaccess/abisip-find.c
+++ b/src/ipaccess/abisip-find.c
@@ -436,9 +436,11 @@ int main(int argc, char **argv)
handle_options(argc, argv);
- if (!cmdline_opts.ifname)
- fprintf(stdout, "- You might need to specify the outgoing\n"
- " network interface, e.g. ``%s eth0''\n", argv[0]);
+ if (!cmdline_opts.ifname && !cmdline_opts.bind_ip)
+ fprintf(stdout, "- You might need to specify the outgoing network interface,\n"
+ " e.g. ``%s eth0'' (requires root permissions),\n"
+ " or alternatively use -b to bind to the source address\n"
+ " assigned to that interface\n", argv[0]);
if (!cmdline_opts.list_view)
fprintf(stdout, "- You may find the --list-view option convenient.\n");
else if (cmdline_opts.send_interval >= cmdline_opts.list_view_timeout)