]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Check for extra networking libraries before checking for IPv6.
[tcpdump] / tcpdump.c
index ad07df6f4a97c45fd1877a72123f8438b6959576..68cbc719c668595f19d358491667cda98d465ccb 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1013,6 +1013,8 @@ main(int argc, char **argv)
                                packettype = PT_RADIUS;
                        else if (strcasecmp(optarg, "zmtp1") == 0)
                                packettype = PT_ZMTP1;
+                       else if (strcasecmp(optarg, "vxlan") == 0)
+                               packettype = PT_VXLAN;
                        else
                                error("unknown packet type `%s'", optarg);
                        break;
@@ -1543,6 +1545,14 @@ main(int argc, char **argv)
                        }
                        (void)fflush(stdout);
                }
+                if (status == -2) {
+                       /*
+                        * We got interrupted. If we are reading multiple
+                        * files (via -V) set these so that we stop.
+                        */
+                       VFileName = NULL;
+                       ret = NULL;
+               }
                if (status == -1) {
                        /*
                         * Error.  Report it.