]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Add program_name field in the netdissect_options structure
[tcpdump] / tcpdump.c
index f50ff5f886ce74ac4158ff68623686b2a890cf7b..28ad53f8291fd6e3b55351e0b25622e51ee87a63 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -760,9 +760,9 @@ main(int argc, char **argv)
        WFileName = NULL;
        dlt = -1;
        if ((cp = strrchr(argv[0], '/')) != NULL)
-               program_name = cp + 1;
+               ndo->program_name = program_name = cp + 1;
        else
-               program_name = argv[0];
+               ndo->program_name = program_name = argv[0];
 
        /*
         * On platforms where the CPU doesn't support unaligned loads,