summaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--text2pcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/text2pcap.c b/text2pcap.c
index aa3a279f..e1df716a 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -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;