]> The Tcpdump Group git mirrors - tcpdump/commitdiff
bugfix: wrong offset calculation for restart holdtimer
authorhannes <hannes>
Thu, 6 Apr 2006 13:43:30 +0000 (13:43 +0000)
committerhannes <hannes>
Thu, 6 Apr 2006 13:43:30 +0000 (13:43 +0000)
print-isoclns.c

index 2b81a3889db4e9d4c6c8f8ac13a9737cd572dd86..8e1572aea78c563b67e2bc588c4f1daf226060cc 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.155 2006-02-21 10:27:40 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.156 2006-04-06 13:43:30 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -2527,7 +2527,7 @@ static int isis_print (const u_int8_t *p, u_int length)
             if (!TTEST2(*tptr, ISIS_TLV_RESTART_SIGNALING_HOLDTIMELEN))
                 goto trunctlv;
 
-            printf(", Remaining holding time %us", EXTRACT_16BITS(tptr+1));
+            printf(", Remaining holding time %us", EXTRACT_16BITS(tptr));
             tptr+=ISIS_TLV_RESTART_SIGNALING_HOLDTIMELEN;
             tmp-=ISIS_TLV_RESTART_SIGNALING_HOLDTIMELEN;