From 15c0b725849875c718b168a26e13872e163cde4c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 31 Dec 2008 03:33:50 +0000 Subject: Apply post 1.13.1 patches, bump to 1.13.2 --- networking/arping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'networking/arping.c') diff --git a/networking/arping.c b/networking/arping.c index aba32b8..021dc86 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -322,8 +322,7 @@ int arping_main(int argc UNUSED_PARAM, char **argv) struct sockaddr_in saddr; int probe_fd = xsocket(AF_INET, SOCK_DGRAM, 0); - if (setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device) + 1) == -1) - bb_perror_msg("cannot bind to device %s", device); + setsockopt_bindtodevice(probe_fd, device); memset(&saddr, 0, sizeof(saddr)); saddr.sin_family = AF_INET; if (src.s_addr) { -- cgit v1.1