diff options
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index bdf451186..0435d6ba6 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -875,7 +875,7 @@ common_traceroute_main(int op, char **argv) | |||
875 | * probe (e.g., on a multi-homed host). | 875 | * probe (e.g., on a multi-homed host). |
876 | */ | 876 | */ |
877 | if (getuid() != 0) | 877 | if (getuid() != 0) |
878 | bb_error_msg_and_die(bb_msg_you_must_be_root); | 878 | bb_simple_error_msg_and_die(bb_msg_you_must_be_root); |
879 | } | 879 | } |
880 | if (op & OPT_WAITTIME) | 880 | if (op & OPT_WAITTIME) |
881 | waittime = xatou_range(waittime_str, 1, 24 * 60 * 60); | 881 | waittime = xatou_range(waittime_str, 1, 24 * 60 * 60); |
@@ -1003,7 +1003,7 @@ common_traceroute_main(int op, char **argv) | |||
1003 | if (af == AF_INET) | 1003 | if (af == AF_INET) |
1004 | if (setsockopt(sndsock, IPPROTO_IP, IP_MULTICAST_IF, | 1004 | if (setsockopt(sndsock, IPPROTO_IP, IP_MULTICAST_IF, |
1005 | &source_lsa->u.sa, source_lsa->len)) | 1005 | &source_lsa->u.sa, source_lsa->len)) |
1006 | bb_error_msg_and_die("can't set multicast source interface"); | 1006 | bb_simple_error_msg_and_die("can't set multicast source interface"); |
1007 | //TODO: we can query source port we bound to, | 1007 | //TODO: we can query source port we bound to, |
1008 | // and check it in replies... if we care enough | 1008 | // and check it in replies... if we care enough |
1009 | xbind(sndsock, &source_lsa->u.sa, source_lsa->len); | 1009 | xbind(sndsock, &source_lsa->u.sa, source_lsa->len); |
@@ -1025,7 +1025,7 @@ common_traceroute_main(int op, char **argv) | |||
1025 | /* read IP and port */ | 1025 | /* read IP and port */ |
1026 | source_lsa = get_sock_lsa(probe_fd); | 1026 | source_lsa = get_sock_lsa(probe_fd); |
1027 | if (source_lsa == NULL) | 1027 | if (source_lsa == NULL) |
1028 | bb_error_msg_and_die("can't get probe addr"); | 1028 | bb_simple_error_msg_and_die("can't get probe addr"); |
1029 | 1029 | ||
1030 | close(probe_fd); | 1030 | close(probe_fd); |
1031 | 1031 | ||