]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip.c
From Albert Chin: get rid of zero-length arrays, not all compilers
[tcpdump] / print-ip.c
index fc58f65529cb21e0a554542e9de4b800ab85f19d..18dc8a42c4d5077dd5e7d9968bb564d91a1a8a1f 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.149 2005-04-07 00:28:17 mcr Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.150 2005-05-20 21:02:30 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -502,6 +502,10 @@ again:
                vrrp_print(ipds->cp, ipds->len, ipds->ip->ip_ttl);
                break;
 
+       case IPPROTO_PGM:
+               pgm_print(ipds->cp, ipds->len, (const u_char *)ipds->ip);
+               break;
+
        default:
                if ((proto = getprotobynumber(ipds->nh)) != NULL)
                        ND_PRINT((ndo, " %s", proto->p_name));