]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
Get rid of unneeded includes of <netinet/in_systm.h> and <netinet/ip.h>.
[tcpdump] / print-ip6.c
index a6acce81879cd1366f5dcf4b1a72ec4d934a8b20..d1593995e3597785296018e988638dd3a6333725 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.19 2001-11-15 07:43:31 itojun Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.21 2001-11-16 02:17:36 itojun Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -66,8 +66,6 @@ ip6_print(register const u_char *bp, register u_int length)
 #ifdef LBL_ALIGN
        /*
         * The IP6 header is not 16-byte aligned, so copy into abuf.
-        * This will never happen with BPF.  It does happen raw packet
-        * dumps from -r.
         */
        if ((u_long)ip6 & 15) {
                static u_char *abuf;
@@ -81,6 +79,7 @@ ip6_print(register const u_char *bp, register u_int length)
                snapend += abuf - (u_char *)ip6;
                packetp = abuf;
                ip6 = (struct ip6_hdr *)abuf;
+               bp = abuf;
        }
 #endif
        TCHECK(*ip6);