summaryrefslogtreecommitdiff
path: root/usr.sbin/traceroute6/traceroute6.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2014-04-23 09:19:24 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2014-04-23 09:19:24 +0000
commitf29382b156da72f334e42726d45163c0a0f5342d (patch)
tree41141a3a60d406508b05d70dcbb4cb40c276ae29 /usr.sbin/traceroute6/traceroute6.c
parentfbe28564e1244f19b101dfcd163eb94d2f5eaeee (diff)
s/lastaddr/lastaddr6/
OK benno@
Diffstat (limited to 'usr.sbin/traceroute6/traceroute6.c')
-rw-r--r--usr.sbin/traceroute6/traceroute6.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c
index 5c56647d48c..e45646db993 100644
--- a/usr.sbin/traceroute6/traceroute6.c
+++ b/usr.sbin/traceroute6/traceroute6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: traceroute6.c,v 1.94 2014/04/23 09:18:27 florian Exp $ */
+/* $OpenBSD: traceroute6.c,v 1.95 2014/04/23 09:19:23 florian Exp $ */
/* $KAME: traceroute6.c,v 1.63 2002/10/24 12:53:25 itojun Exp $ */
/*
@@ -643,11 +643,11 @@ main(int argc, char *argv[])
* Main loop
*/
for (hops = first_hop; hops <= max_hops; ++hops) {
- struct in6_addr lastaddr;
+ struct in6_addr lastaddr6;
int got_there = 0, unreachable = 0, timeout = 0, loss;
printf("%2u ", hops);
- bzero(&lastaddr, sizeof(lastaddr));
+ bzero(&lastaddr6, sizeof(lastaddr6));
for (probe = 0, loss = 0; probe < nprobes; ++probe) {
int cc;
struct timeval t1, t2;
@@ -663,12 +663,12 @@ main(int argc, char *argv[])
continue;
if (to->sa_family == AF_INET6) {
if (!IN6_ARE_ADDR_EQUAL(
- &from6.sin6_addr, &lastaddr)) {
+ &from6.sin6_addr, &lastaddr6)) {
print(from, cc, rcvpktinfo ?
inet_ntop( AF_INET6,
&rcvpktinfo->ipi6_addr,
hbuf, sizeof(hbuf)) : "?");
- lastaddr = from6.sin6_addr;
+ lastaddr6 = from6.sin6_addr;
}
} else
errx(1, "unsupported AF: %d",