aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2008-02-01 23:25:32 +0000
committerPaul Fox <pgf@brightstareng.com>2008-02-01 23:25:32 +0000
commit0b2b5842a1c47bc7a3f872e9d06ab2bcc2cf4be8 (patch)
tree1e3dc018905c176c7c872670b6a0736bc82bfc5c
parentf0044c480c4da9c5818fe7a0973cd5529314d14b (diff)
downloadbusybox-w32-0b2b5842a1c47bc7a3f872e9d06ab2bcc2cf4be8.tar.gz
busybox-w32-0b2b5842a1c47bc7a3f872e9d06ab2bcc2cf4be8.tar.bz2
busybox-w32-0b2b5842a1c47bc7a3f872e9d06ab2bcc2cf4be8.zip
Fix compilation error when FEATURE_FANCY_PING enabled. Also
reorder networking/Config.in moving FEATURE_FANCY_PING next to PING6. (Cristian Ionescu-Idbohrn)
-rw-r--r--networking/Config.in12
-rw-r--r--networking/ping.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/networking/Config.in b/networking/Config.in
index cd986b862..e8820e10d 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -645,12 +645,6 @@ config PING6
645 help 645 help
646 This will give you a ping that can talk IPv6. 646 This will give you a ping that can talk IPv6.
647 647
648config PSCAN
649 bool "pscan"
650 default n
651 help
652 Simple network port scanner.
653
654config FEATURE_FANCY_PING 648config FEATURE_FANCY_PING
655 bool "Enable fancy ping output" 649 bool "Enable fancy ping output"
656 default y 650 default y
@@ -659,6 +653,12 @@ config FEATURE_FANCY_PING
659 Make the output from the ping applet include statistics, and at the 653 Make the output from the ping applet include statistics, and at the
660 same time provide full support for ICMP packets. 654 same time provide full support for ICMP packets.
661 655
656config PSCAN
657 bool "pscan"
658 default n
659 help
660 Simple network port scanner.
661
662config ROUTE 662config ROUTE
663 bool "route" 663 bool "route"
664 default n 664 default n
diff --git a/networking/ping.c b/networking/ping.c
index 382389dc2..11138c036 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -94,7 +94,7 @@ static void ping4(len_and_sockaddr *lsa)
94 char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN]; 94 char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN];
95 95
96 pingsock = create_icmp_socket(); 96 pingsock = create_icmp_socket();
97 pingaddr = lsa->sin; 97 pingaddr = lsa->u.sin;
98 98
99 pkt = (struct icmp *) packet; 99 pkt = (struct icmp *) packet;
100 memset(pkt, 0, sizeof(packet)); 100 memset(pkt, 0, sizeof(packet));
@@ -138,7 +138,7 @@ static void ping6(len_and_sockaddr *lsa)
138 char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN]; 138 char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN];
139 139
140 pingsock = create_icmp6_socket(); 140 pingsock = create_icmp6_socket();
141 pingaddr = lsa->sin6; 141 pingaddr = lsa->u.sin6;
142 142
143 pkt = (struct icmp6_hdr *) packet; 143 pkt = (struct icmp6_hdr *) packet;
144 memset(pkt, 0, sizeof(packet)); 144 memset(pkt, 0, sizeof(packet));