Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
print sequence numbers as unsigned

From: Mike Belopuhov (mkbcrypt.org.ru)
Date: Wed May 02 2012 - 12:41:34 CDT

sequence numbers in esp and ah are unsigned numbers, so we
shouldn't ever be printing them with a minus sign :-)


Index: usr.sbin/tcpdump/print-ipsec.c
RCS file: /home/cvs/src/usr.sbin/tcpdump/print-ipsec.c,v
retrieving revision 1.16
diff -u -p -r1.16 print-ipsec.c
--- usr.sbin/tcpdump/print-ipsec.c 6 Apr 2010 16:01:57 -0000 1.16
+++ usr.sbin/tcpdump/print-ipsec.c 2 May 2012 17:39:27 -0000
-230,7 +230,7 esp_print (register const u_char *bp, re
         esp = (const struct esp_hdr *)bp;
- printf(" spi 0x%08x seq %d len %d",
+ printf(" spi 0x%08x seq %u len %d",
             ntohl(esp->esp_spi), ntohl(esp->esp_seq), len);
         if (espinit)
-278,7 +278,7 ah_print (register const u_char *bp, reg
         ah = (const struct ah_hdr *)bp;
- printf(" spi 0x%08X seq %d len %d",
+ printf(" spi 0x%08x seq %u len %d",
             ntohl(ah->ah_spi), ntohl(ah->ah_seq), len);
         if (vflag) {