aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-12-28 19:26:03 -0800
committerGuy Harris <guy@alum.mit.edu>2018-12-29 03:26:58 +0000
commitd68a8a36054a26e520647a9402e9e405efd8cf3e (patch)
tree9bc6c1c7fd7a3ca32a531577b6e47a63e30a5f46 /epan/tap.c
parent46e7148461977914d34f8ade4dc94ad564dedc29 (diff)
Small cleanups.
Get rid of an extra blank line in a comment. Change another comment to refer to "error packets", as we do elsewhere. Fix indentation. Change-Id: I4d81b8856ea876f20914352f962b1df0e115404c Reviewed-on: https://code.wireshark.org/review/31241 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/tap.c')
-rw-r--r--epan/tap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/tap.c b/epan/tap.c
index 36de269192..92f0fa5df5 100644
--- a/epan/tap.c
+++ b/epan/tap.c
@@ -54,7 +54,6 @@ static tap_dissector_t *tap_dissector_list=NULL;
* processing of the packet depending on whether we're currently dissecting
* the packet in error or not.
*
- *
* It also means that a tap listener can't depend on the source and destination
* addresses being the correct ones for the packet being processed if, for
* example, you have some tunneling that causes multiple layers of the same
@@ -305,7 +304,9 @@ tap_push_tapped_queue(epan_dissect_t *edt)
for(i=0;i<tap_packet_index;i++){
for(tl=tap_listener_queue;tl;tl=tl->next){
tp=&tap_packet_array[i];
- /* Don't tap the packet if it's an "error" unless the listener tells us to */
+ /* Don't tap the packet if it's an "error packet"
+ * unless the listener has requested that we do so.
+ */
if (!(tp->flags & TAP_PACKET_IS_ERROR_PACKET) || (tl->flags & TL_REQUIRES_ERROR_PACKETS))
{
if(tp->tap_id==tl->tap_id){
@@ -317,7 +318,7 @@ tap_push_tapped_queue(epan_dissect_t *edt)
tl->needs_redraw|=tl->packet(tl->tapdata, tp->pinfo, edt, tp->tap_specific_data);
}
}
- }
+ }
}
}
}