aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nettl.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-02-06 12:35:11 -0800
committerGuy Harris <guy@alum.mit.edu>2018-02-06 20:35:47 +0000
commitcb1a6528f968c3cd97660217abc1a6725ff5ba92 (patch)
treeaee1d32c85897e2f769d56c454a17505cce0d4e6 /epan/dissectors/packet-nettl.c
parent6db88da7f7ffd7f75bb2e06e269bd28537f10ac1 (diff)
Get rid of the pkt_encap field in struct packet_info.
pinfo->pkt_encap is jsut a copy of pinfo->phdr->pkt_encap; no need for the copy. Expand a comment while we're at it. Change-Id: I5fcfe694ecba42507f1d629d01440da0a0989501 Reviewed-on: https://code.wireshark.org/review/25643 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-nettl.c')
-rw-r--r--epan/dissectors/packet-nettl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-nettl.c b/epan/dissectors/packet-nettl.c
index 52b4ab0362..13ef003b0f 100644
--- a/epan/dissectors/packet-nettl.c
+++ b/epan/dissectors/packet-nettl.c
@@ -227,7 +227,7 @@ dissect_nettl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U
0, 0, pinfo->pseudo_header->nettl.uid);
}
- switch (pinfo->pkt_encap) {
+ switch (pinfo->phdr->pkt_encap) {
case WTAP_ENCAP_NETTL_ETHERNET:
call_dissector(eth_withoutfcs_handle, tvb, pinfo, tree);
break;