]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Bjoern A. Zeeb: add IPv6 support.
authorguy <guy>
Wed, 6 Feb 2008 10:34:15 +0000 (10:34 +0000)
committerguy <guy>
Wed, 6 Feb 2008 10:34:15 +0000 (10:34 +0000)
CREDITS
print-enc.c

diff --git a/CREDITS b/CREDITS
index fef18c4794861392a6c2480150d9423a4c70d232..ff9500edca75e4f38d8676a19e2b25100434b444 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -25,6 +25,7 @@ Additional people who have contributed patches:
        Ben Byer                        <bushing at sourceforge dot net>
        Atsushi Onoe                    <onoe at netbsd dot org>
        Ben Smithurst                   <ben at scientia dot demon dot co dot uk>
        Ben Byer                        <bushing at sourceforge dot net>
        Atsushi Onoe                    <onoe at netbsd dot org>
        Ben Smithurst                   <ben at scientia dot demon dot co dot uk>
+       Bjoern A. Zeeb                  <bzeeb at Zabbadoz dot NeT>
        Brent L. Bates                  <blbates at vigyan dot com>
        Brian Ginsbach                  <ginsbach at cray dot com>
        Bruce M. Simpson                <bms at spc dot org>
        Brent L. Bates                  <blbates at vigyan dot com>
        Brian Ginsbach                  <ginsbach at cray dot com>
        Bruce M. Simpson                <bms at spc dot org>
index 605ca33d255677a509f71f8e9b68fb53b16ace3a..9569534cbd70f04720df5d5c61b30670e36db23f 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-enc.c,v 1.4 2005-04-06 21:32:39 mcr Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-enc.c,v 1.4.4.1 2008-02-06 10:34:15 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -70,8 +70,17 @@ enc_if_print(const struct pcap_pkthdr *h, register const u_char *p)
        printf("SPI 0x%08x: ", (u_int32_t)ntohl(hdr->spi));
 
        length -= ENC_HDRLEN;
        printf("SPI 0x%08x: ", (u_int32_t)ntohl(hdr->spi));
 
        length -= ENC_HDRLEN;
-       /* XXX - use the address family */
-       ip_print(gndo, p + ENC_HDRLEN, length);
+       caplen -= ENC_HDRLEN;
+       p += ENC_HDRLEN;
+       
+       switch (hdr->af) {
+       case AF_INET:
+               ip_print(gndo, p, length);
+               break;
+       case AF_INET6:
+               ip6_print(p, length);
+               break;
+       }
 
 out:
        return (ENC_HDRLEN);
 
 out:
        return (ENC_HDRLEN);