Set phdr encap for pcap file
authorMichal Labedzki <michal.labedzki@tieto.com>
Mon, 9 Feb 2015 11:34:11 +0000 (12:34 +0100)
committerMichal Labedzki <michal.labedzki@tieto.com>
Sat, 21 Feb 2015 17:19:51 +0000 (17:19 +0000)
Change-Id: Id600b395d6fd2711c9b392a60454e5bd9a3eb465
Reviewed-on: https://code.wireshark.org/review/7288
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
wiretap/pcap-common.c

index 5fb0be384fc372dd70bdb6294d37104042b24a71..4dd54a3e8701b6964ab839d1849be39d063ea11f 100644 (file)
@@ -1500,6 +1500,8 @@ pcap_process_pseudo_header(FILE_T fh, int file_type, int wtap_encap,
        int phdr_len = 0;
        guint size;
 
+       phdr->pkt_encap = wtap_encap;
+
        switch (wtap_encap) {
 
        case WTAP_ENCAP_ATM_PDUS: