X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6ab32a4325c9dc227f342aea52604b184615a22e..b10f46c2d6e3755598340ba77895e6631953ccc0:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 68cbc719..a32701cf 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -1015,6 +1015,8 @@ main(int argc, char **argv) packettype = PT_ZMTP1; else if (strcasecmp(optarg, "vxlan") == 0) packettype = PT_VXLAN; + else if (strcasecmp(optarg, "pgm") == 0) + packettype = PT_PGM; else error("unknown packet type `%s'", optarg); break; @@ -1214,8 +1216,8 @@ main(int argc, char **argv) * Print a message to the standard error on Windows. * XXX - why do it here, with a different message? */ - if(strlen(device) == 1) //we assume that an ASCII string is always longer than 1 char - { //a Unicode string has a \0 as second byte (so strlen() is 1) + if(strlen(device) == 1) /* we assume that an ASCII string is always longer than 1 char */ + { /* a Unicode string has a \0 as second byte (so strlen() is 1) */ fprintf(stderr, "%s: listening on %ws\n", program_name, device); } else