aboutsummaryrefslogtreecommitdiff
path: root/networking/traceroute.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-01-21 21:59:26 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-01-21 21:59:26 +0100
commite8f565c1eeba336fa13ce8216464c9daedd36f76 (patch)
tree85a8bba11af1083fc0eacd310e91df05185892ec /networking/traceroute.c
parentb40da22357563bf53fa93823342f8ab59899222d (diff)
parentdd169e84683aa7be3604d491f1c34ab657973365 (diff)
downloadbusybox-e8f565c1eeba336fa13ce8216464c9daedd36f76.tar.gz
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r--networking/traceroute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index c18fba8d0..82bb0118c 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -751,7 +751,8 @@ print(int read_len, const struct sockaddr *from, const struct sockaddr *to)
} else
#endif
{
- read_len -= ((struct ip*)recv_pkt)->ip_hl << 2;
+ struct ip *ip4packet = (struct ip*)recv_pkt;
+ read_len -= ip4packet->ip_hl << 2;
}
printf(" %d bytes to %s", read_len, ina);
free(ina);