diff options
Diffstat (limited to 'epan/dissectors/packet-pcap_pktdata.c')
-rw-r--r-- | epan/dissectors/packet-pcap_pktdata.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-pcap_pktdata.c b/epan/dissectors/packet-pcap_pktdata.c index d487c2562a..d1a44eb0af 100644 --- a/epan/dissectors/packet-pcap_pktdata.c +++ b/epan/dissectors/packet-pcap_pktdata.c @@ -268,12 +268,12 @@ dissect_pcap_pktdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * * We're passed a pointer to a LINKTYPE_ value. * Find the Wiretap encapsulation for that value. */ - pinfo->phdr->pkt_encap = wtap_pcap_encap_to_wtap_encap(*link_type); + pinfo->rec->rec_header.packet_header.pkt_encap = wtap_pcap_encap_to_wtap_encap(*link_type); /* * Do we know that type? */ - if (pinfo->phdr->pkt_encap == WTAP_ENCAP_UNKNOWN) { + if (pinfo->rec->rec_header.packet_header.pkt_encap == WTAP_ENCAP_UNKNOWN) { /* * Nothing we know. * Just report that and give up. @@ -297,11 +297,11 @@ dissect_pcap_pktdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * * pseudo-header from the bytes at the beginning of the * packet data. */ - if (wtap_encap_requires_phdr(pinfo->phdr->pkt_encap)) { + if (wtap_encap_requires_phdr(pinfo->rec->rec_header.packet_header.pkt_encap)) { /* * It does. Do we have code to do that? */ - switch (pinfo->phdr->pkt_encap) { + switch (pinfo->rec->rec_header.packet_header.pkt_encap) { case WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR: pseudoheader_item = proto_tree_add_item(tree, hf_pcap_pktdata_pseudoheader, tvb, offset, 4, ENC_NA); @@ -353,7 +353,7 @@ dissect_pcap_pktdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * * These also require a pseudo-header, but it's not constructed * from packet data. */ - switch (pinfo->phdr->pkt_encap) { + switch (pinfo->rec->rec_header.packet_header.pkt_encap) { case WTAP_ENCAP_ETHERNET: eth.fcs_len = -1; /* Unknown whether we have an FCS */ @@ -368,7 +368,7 @@ dissect_pcap_pktdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * next_tvb = tvb_new_subset_remaining(tvb, offset); - offset = dissector_try_uint_new(wtap_encap_table, pinfo->phdr->pkt_encap, next_tvb, pinfo, tree, TRUE, phdr); + offset = dissector_try_uint_new(wtap_encap_table, pinfo->rec->rec_header.packet_header.pkt_encap, next_tvb, pinfo, tree, TRUE, phdr); return offset; } |