From f342fdcdb83d960bd59ab7e42237c18f9282adcc Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Mon, 14 Dec 2015 19:25:31 -0500 Subject: Create capture dissector "info" structure (capture_packet_info_t) While it currently only contains packet_counts, it will hopefully stabilize the capture function signature if more fields are added. Change-Id: I003552c58043c7c2d67aec458187b12b233057e2 Reviewed-on: https://code.wireshark.org/review/12690 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-ieee80211-prism.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-ieee80211-prism.c') diff --git a/epan/dissectors/packet-ieee80211-prism.c b/epan/dissectors/packet-ieee80211-prism.c index 50b69a9567..828b50feba 100644 --- a/epan/dissectors/packet-ieee80211-prism.c +++ b/epan/dissectors/packet-ieee80211-prism.c @@ -238,7 +238,7 @@ prism_rate_return(guint32 rate) static gboolean -capture_prism(const guchar *pd, int offset, int len, packet_counts *ld, const union wtap_pseudo_header *pseudo_header _U_) +capture_prism(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_) { guint32 cookie; @@ -249,7 +249,7 @@ capture_prism(const guchar *pd, int offset, int len, packet_counts *ld, const un cookie = pntoh32(pd); if ((cookie == WLANCAP_MAGIC_COOKIE_V1) || (cookie == WLANCAP_MAGIC_COOKIE_V2)) { - return capture_wlancap(pd, offset, len, ld, pseudo_header); + return capture_wlancap(pd, offset, len, cpinfo, pseudo_header); } /* Prism header */ @@ -259,7 +259,7 @@ capture_prism(const guchar *pd, int offset, int len, packet_counts *ld, const un offset += PRISM_HEADER_LENGTH; /* 802.11 header follows */ - return capture_ieee80211(pd, offset, len, ld, pseudo_header); + return capture_ieee80211(pd, offset, len, cpinfo, pseudo_header); } static int -- cgit v1.2.3