diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-20 02:00:49 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-20 02:00:49 +0000 |
commit | 2edbc2ab85b96fb01a3862db09df12f40d4382cd (patch) | |
tree | 0637a680a89fb11a986e59657875adda2546ec18 /networking/ping.c | |
parent | aa7a888e423fc85daa8af0ac3aabe8fc7af86312 (diff) | |
download | busybox-w32-2edbc2ab85b96fb01a3862db09df12f40d4382cd.tar.gz busybox-w32-2edbc2ab85b96fb01a3862db09df12f40d4382cd.tar.bz2 busybox-w32-2edbc2ab85b96fb01a3862db09df12f40d4382cd.zip |
ping: fix breakage from -I fix
passwd: SELinux support by KaiGai Kohei <kaigai@ak.jp.nec.com>
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c index bd98a21e6..0de1b33f7 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -540,7 +540,7 @@ static void ping4(len_and_sockaddr *lsa) | |||
540 | xbind(pingsock, &source_lsa->sa, source_lsa->len); | 540 | xbind(pingsock, &source_lsa->sa, source_lsa->len); |
541 | } | 541 | } |
542 | if (opt_I) | 542 | if (opt_I) |
543 | setsockopt(pingsock, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(opt_I) + 1); | 543 | setsockopt(pingsock, SOL_SOCKET, SO_BINDTODEVICE, opt_I, strlen(opt_I) + 1); |
544 | 544 | ||
545 | /* enable broadcast pings */ | 545 | /* enable broadcast pings */ |
546 | setsockopt_broadcast(pingsock); | 546 | setsockopt_broadcast(pingsock); |
@@ -589,7 +589,7 @@ static void ping6(len_and_sockaddr *lsa) | |||
589 | if (source_lsa) | 589 | if (source_lsa) |
590 | xbind(pingsock, &source_lsa->sa, source_lsa->len); | 590 | xbind(pingsock, &source_lsa->sa, source_lsa->len); |
591 | if (opt_I) | 591 | if (opt_I) |
592 | setsockopt(pingsock, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(opt_I) + 1); | 592 | setsockopt(pingsock, SOL_SOCKET, SO_BINDTODEVICE, opt_I, strlen(opt_I) + 1); |
593 | 593 | ||
594 | #ifdef ICMP6_FILTER | 594 | #ifdef ICMP6_FILTER |
595 | { | 595 | { |