]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip.c
Squelch some alignment warnings.
[tcpdump] / print-ip.c
index 38cc2315e81a03d6cfc94989f8fc4c44de57d82c..bb1554f9d133479e8381494b1a4c379acd4e1b6a 100644 (file)
@@ -358,14 +358,14 @@ again:
 
        case IPPROTO_IPCOMP:
        {
-               int enh;
-               ipds->advance = ipcomp_print(ndo, ipds->cp, &enh);
-               if (ipds->advance <= 0)
-                       break;
-               ipds->cp += ipds->advance;
-               ipds->len -= ipds->advance;
-               ipds->nh = enh & 0xff;
-               goto again;
+               ipcomp_print(ndo, ipds->cp);
+               /*
+                * Either this has decompressed the payload and
+                * printed it, in which case there's nothing more
+                * to do, or it hasn't, in which case there's
+                * nothing more to do.
+                */
+               break;
        }
 
        case IPPROTO_SCTP: