]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
* print-rt6.c: make IPv6 routing header printing work with new 2292bis
[tcpdump] / print-null.c
index 26a343ac2c21631fa76fb9c6385f74e26f9871ec..7089eb9d08b96c9ab7175b3a82c8e25adc93c466 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.29 1999-11-21 12:38:24 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.30 1999-12-22 06:27:21 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -128,15 +128,15 @@ null_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
                null_print(p, ip, length);
 
        switch (ip->ip_v) {
-       case 4 :
-               ip_print((const void *)ip, length);
+       case 4:
+               ip_print((const u_char *)ip, length);
                break;
 #ifdef INET6
        case 6:
-               ip6_print((const void *)ip, length);
+               ip6_print((const u_char *)ip, length);
                break;
 #endif /* INET6 */
-       default :
+       default:
                printf("ip v%d", ip->ip_v);
                break;
        }