summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-23 11:52:40 (GMT)
committer Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-23 11:53:40 (GMT)
commitdfd38a480bfa7e699020dc2608688d85dd90d89b (patch)
tree615d20acc91a0334a629d77649bb8e3891ad0ecb
parent24dc9ab2f4da202770b9680f663244f113e1a32b (diff)
downloadbusybox-dfd38a480bfa7e699020dc2608688d85dd90d89b.tar.gz
busybox-dfd38a480bfa7e699020dc2608688d85dd90d89b.tar.bz2
ping: use ICMP_MINLEN
no code changes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--networking/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c
index 4e770bd..23b39f2 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -162,7 +162,7 @@ static void ping6(len_and_sockaddr *lsa)
bb_perror_msg("recvfrom");
continue;
}
- if (c >= 8) { /* icmp6_hdr */
+ if (c >= ICMP_MINLEN) { /* icmp6_hdr */
pkt = (struct icmp6_hdr *) packet;
if (pkt->icmp6_type == ICMP6_ECHO_REPLY)
break;