From: florian Date: Wed, 23 Apr 2014 09:24:36 +0000 (+0000) Subject: Prepare for merge: s/hops/ttl/ in struct packetdata X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=255c1ad3a5442ce0f8119949d67169709ff9a5be;p=openbsd Prepare for merge: s/hops/ttl/ in struct packetdata OK benno@ --- diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 08ec4d19652..34a7407b645 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute6.c,v 1.98 2014/04/23 09:23:30 florian Exp $ */ +/* $OpenBSD: traceroute6.c,v 1.99 2014/04/23 09:24:36 florian Exp $ */ /* $KAME: traceroute6.c,v 1.63 2002/10/24 12:53:25 itojun Exp $ */ /* @@ -273,7 +273,7 @@ */ struct packetdata { u_char seq; /* sequence number of this packet */ - u_int8_t hops; /* hop limit of the packet */ + u_int8_t ttl; /* hop limit of the packet */ u_char pad[2]; u_int32_t sec; /* time packet left */ u_int32_t usec; @@ -763,7 +763,7 @@ build_probe6(int seq, u_int8_t hops, int iflag, struct sockaddr *to) } else op = (struct packetdata *)outpacket; op->seq = seq; - op->hops = hops; + op->ttl = hops; op->sec = htonl(tv.tv_sec); op->usec = htonl(tv.tv_usec); }