diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-08-24 19:08:14 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-08-24 20:00:17 +0200 |
commit | 2db782bc7be70c34a756e2bc6d4a53e8f47bab20 (patch) | |
tree | 91d372a22639996578242a259eca0b163e705826 /networking/traceroute.c | |
parent | 729b70646cc748e1e88ddaec3ed542adcf7fa3da (diff) | |
download | busybox-w32-2db782bc7be70c34a756e2bc6d4a53e8f47bab20.tar.gz busybox-w32-2db782bc7be70c34a756e2bc6d4a53e8f47bab20.tar.bz2 busybox-w32-2db782bc7be70c34a756e2bc6d4a53e8f47bab20.zip |
Merge setsockopt error messages
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | networking/traceroute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index 855713605..e41d89e9f 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -475,7 +475,7 @@ send_probe(int seq, int ttl) | |||
475 | if (dest_lsa->u.sa.sa_family == AF_INET6) { | 475 | if (dest_lsa->u.sa.sa_family == AF_INET6) { |
476 | res = setsockopt(sndsock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); | 476 | res = setsockopt(sndsock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); |
477 | if (res < 0) | 477 | if (res < 0) |
478 | bb_perror_msg_and_die("setsockopt UNICAST_HOPS %d", ttl); | 478 | bb_perror_msg_and_die("setsockopt(%s) %d", "UNICAST_HOPS", ttl); |
479 | out = outip; | 479 | out = outip; |
480 | len = packlen; | 480 | len = packlen; |
481 | } else | 481 | } else |
@@ -484,7 +484,7 @@ send_probe(int seq, int ttl) | |||
484 | #if defined IP_TTL | 484 | #if defined IP_TTL |
485 | res = setsockopt(sndsock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); | 485 | res = setsockopt(sndsock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); |
486 | if (res < 0) | 486 | if (res < 0) |
487 | bb_perror_msg_and_die("setsockopt ttl %d", ttl); | 487 | bb_perror_msg_and_die("setsockopt(%s) %d", "TTL", ttl); |
488 | #endif | 488 | #endif |
489 | out = outicmp; | 489 | out = outicmp; |
490 | len = packlen - sizeof(*outip); | 490 | len = packlen - sizeof(*outip); |
@@ -929,7 +929,7 @@ common_traceroute_main(int op, char **argv) | |||
929 | if (af == AF_INET6) { | 929 | if (af == AF_INET6) { |
930 | static const int two = 2; | 930 | static const int two = 2; |
931 | if (setsockopt(rcvsock, SOL_RAW, IPV6_CHECKSUM, &two, sizeof(two)) < 0) | 931 | if (setsockopt(rcvsock, SOL_RAW, IPV6_CHECKSUM, &two, sizeof(two)) < 0) |
932 | bb_perror_msg_and_die("setsockopt RAW_CHECKSUM"); | 932 | bb_perror_msg_and_die("setsockopt(%s)", "IPV6_CHECKSUM"); |
933 | xmove_fd(xsocket(af, SOCK_DGRAM, 0), sndsock); | 933 | xmove_fd(xsocket(af, SOCK_DGRAM, 0), sndsock); |
934 | } else | 934 | } else |
935 | #endif | 935 | #endif |
@@ -972,7 +972,7 @@ common_traceroute_main(int op, char **argv) | |||
972 | #endif | 972 | #endif |
973 | #ifdef IP_TOS | 973 | #ifdef IP_TOS |
974 | if ((op & OPT_TOS) && setsockopt(sndsock, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)) < 0) { | 974 | if ((op & OPT_TOS) && setsockopt(sndsock, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)) < 0) { |
975 | bb_perror_msg_and_die("setsockopt tos %d", tos); | 975 | bb_perror_msg_and_die("setsockopt(%s) %d", "TOS", tos); |
976 | } | 976 | } |
977 | #endif | 977 | #endif |
978 | #ifdef IP_DONTFRAG | 978 | #ifdef IP_DONTFRAG |