text2pcap: Set encapsulation to WIRESHARK_UPPER_PDU with -P

The documentation, both man page and help, claims that text2pcap
automatically sets the encapsulation to WIRESHARK_UPPER_PDU if
-P is given. Make the behavior match the documentation.
This commit is contained in:
John Thacker 2024-02-20 22:58:58 -05:00
parent c99e37131b
commit 339d6d4aba
1 changed files with 1 additions and 0 deletions

View File

@ -480,6 +480,7 @@ parse_options(int argc, char *argv[], text_import_info_t * const info, wtap_dump
case 'P':
hdr_export_pdu = TRUE;
wtap_encap_type = WTAP_ENCAP_WIRESHARK_UPPER_PDU;
info->payload = ws_optarg;
break;