]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-igrp.c
Correctly check for various values of the ICMP type field.
[tcpdump] / print-igrp.c
index 2580ca5ee05594e5b33eb73abb973b1143b556cc..3cede7ec89da6984cadd3dc2d829748550685d9e 100644 (file)
  */
 
 #ifndef lint
-static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.16 2001-06-15 22:17:32 fenner Exp $ (LBL)";
+static const char rcsid[] _U_ =
+    "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.21 2005-04-20 21:01:56 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <sys/param.h>
-#include <sys/types.h>                 /* concession to AIX */
-#include <sys/socket.h>
+#include <tcpdump-stdinc.h>
 
-#include <netinet/in.h>
-
-#include <errno.h>
 #include <stdio.h>
 
 #include "interface.h"
@@ -82,15 +77,13 @@ static struct tok op2str[] = {
 };
 
 void
-igrp_print(register const u_char *bp, u_int length, register const u_char *bp2)
+igrp_print(register const u_char *bp, u_int length, const u_char *bp2 _U_)
 {
        register struct igrphdr *hdr;
-       register struct ip *ip;
        register u_char *cp;
        u_int nint, nsys, next;
 
        hdr = (struct igrphdr *)bp;
-       ip = (struct ip *)bp2;
        cp = (u_char *)(hdr + 1);
         (void)printf("igrp:");