diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-31 03:33:50 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-31 03:33:50 +0000 |
commit | 15c0b725849875c718b168a26e13872e163cde4c (patch) | |
tree | 687a5425953ae362ef285c6c671f09a05d3fa3c0 /networking/arping.c | |
parent | ccdc13d306c0a8d2735488bf8e46503f7e567767 (diff) | |
download | busybox-w32-1_13_2.tar.gz busybox-w32-1_13_2.tar.bz2 busybox-w32-1_13_2.zip |
Apply post 1.13.1 patches, bump to 1.13.21_13_2
Diffstat (limited to '')
-rw-r--r-- | networking/arping.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/arping.c b/networking/arping.c index aba32b869..021dc86ea 100644 --- a/networking/arping.c +++ b/networking/arping.c | |||
@@ -322,8 +322,7 @@ int arping_main(int argc UNUSED_PARAM, char **argv) | |||
322 | struct sockaddr_in saddr; | 322 | struct sockaddr_in saddr; |
323 | int probe_fd = xsocket(AF_INET, SOCK_DGRAM, 0); | 323 | int probe_fd = xsocket(AF_INET, SOCK_DGRAM, 0); |
324 | 324 | ||
325 | if (setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device) + 1) == -1) | 325 | setsockopt_bindtodevice(probe_fd, device); |
326 | bb_perror_msg("cannot bind to device %s", device); | ||
327 | memset(&saddr, 0, sizeof(saddr)); | 326 | memset(&saddr, 0, sizeof(saddr)); |
328 | saddr.sin_family = AF_INET; | 327 | saddr.sin_family = AF_INET; |
329 | if (src.s_addr) { | 328 | if (src.s_addr) { |