]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
Default to first interface from pcap_findalldevs()
[tcpdump] / print-ip6.c
index 7311c8ff869a4fa33dd9050d005a18dcb1f01163..45508ced6cbf11a0ea5eb537f540488c0a3d1d97 100644 (file)
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#ifdef INET6
-
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <string.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "extract.h"
 
@@ -223,8 +220,7 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length)
                    }
 
                case IPPROTO_PIM:
-                       pim_print(ndo, cp, len, nextproto6_cksum(ip6, cp, len, len,
-                                                           IPPROTO_PIM));
+                       pim_print(ndo, cp, len, (const u_char *)ip6);
                        return;
 
                case IPPROTO_OSPF:
@@ -265,5 +261,3 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length)
 trunc:
        ND_PRINT((ndo, "[|ip6]"));
 }
-
-#endif /* INET6 */