Have tap listeners specify whether the "packet" routine requires
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 5 Jun 2009 22:42:47 +0000 (22:42 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 5 Jun 2009 22:42:47 +0000 (22:42 +0000)
commitfdaebbf4975f970f7dce82341920c20ad6098e0f
tree2654abe47f378933a5d325856a7b3f877338dd19
parent0242e35e0c6a335b92d6ca5e29714efb96a580df
Have tap listeners specify whether the "packet" routine requires

a protocol tree;

the column values.

This includes stats-tree listeners.

Have the routines to build the packet list, and to retap packets, honor
those requirements.  This means that cf_retap_packets() no longer needs
an argument to specify whether to construct the column values or not, so
get rid of that argument.

This also means that there's no need for a tap to have a fake filter
to ensure that the protocol tree will be built, so don't set up a fake
"frame" filter.

While we're at it, clean up some cases where "no filter" was represented
as a null string rather than a null pointer.

Have a routine to return an indication of the number of tap listeners
with filters; use that rather than the global num_tap_filters.

Clean up some indentation and some gboolean vs. gint items.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28645 f5534014-38df-0310-8fa8-9805f1628bb7
103 files changed:
doc/README.tapping
epan/dissectors/packet-http.c
epan/dissectors/packet-isup.c
epan/dissectors/packet-smb-sidsnooping.c
epan/dissectors/packet-smb.c
epan/dissectors/packet-smb2.c
epan/dissectors/packet-smpp.c
epan/dissectors/packet-ucp.c
epan/libwireshark.def
epan/stats_tree.c
epan/stats_tree.h
epan/stats_tree_priv.h
epan/tap.c
epan/tap.h
epan/wslua/wslua_field.c
epan/wslua/wslua_listener.c
file.c
file.h
gtk/afp_stat.c
gtk/ansi_a_stat.c
gtk/ansi_map_stat.c
gtk/bootp_stat.c
gtk/camel_counter.c
gtk/camel_srt.c
gtk/compare_stat.c
gtk/conversations_table.c
gtk/dcerpc_stat.c
gtk/diameter_stat.c
gtk/expert_comp_dlg.c
gtk/expert_dlg.c
gtk/export_object.c
gtk/fc_stat.c
gtk/flow_graph.c
gtk/follow_ssl.c
gtk/follow_udp.c
gtk/funnel_stat.c
gtk/gsm_a_stat.c
gtk/gsm_map_stat.c
gtk/gtp_stat.c
gtk/h225_counter.c
gtk/h225_ras_srt.c
gtk/hostlist_table.c
gtk/iax2_analysis.c
gtk/io_stat.c
gtk/ldap_stat.c
gtk/mac_lte_stat_dlg.c
gtk/mcast_stream.c
gtk/mcast_stream_dlg.c
gtk/megaco_stat.c
gtk/mgcp_stat.c
gtk/mtp3_stat.c
gtk/ncp_stat.c
gtk/radius_stat.c
gtk/rpc_progs.c
gtk/rpc_stat.c
gtk/rtp_analysis.c
gtk/rtp_stream.c
gtk/scsi_stat.c
gtk/sctp_assoc_analyse.c
gtk/sctp_chunk_stat.c
gtk/sctp_chunk_stat_dlg.c
gtk/sctp_stat.c
gtk/sctp_stat_dlg.c
gtk/sip_stat.c
gtk/smb2_stat.c
gtk/smb_stat.c
gtk/stats_tree_stat.c
gtk/tcp_graph.c
gtk/voip_calls.c
gtk/voip_calls_dlg.c
gtk/wlan_stat_dlg.c
gtk/wsp_stat.c
plugins/mate/packet-mate.c
plugins/stats_tree/pinfo_stats_tree.c
rawshark.c
tap-afpstat.c
tap-ansi_astat.c
tap-bootpstat.c
tap-camelcounter.c
tap-camelsrt.c
tap-comparestat.c
tap-dcerpcstat.c
tap-gsm_astat.c
tap-h225counter.c
tap-h225rassrt.c
tap-httpstat.c
tap-iostat.c
tap-iousers.c
tap-megacostat.c
tap-mgcpstat.c
tap-protocolinfo.c
tap-protohierstat.c
tap-radiusstat.c
tap-rpcprogs.c
tap-rpcstat.c
tap-rtp.c
tap-sctpchunkstat.c
tap-sipstat.c
tap-smbsids.c
tap-smbstat.c
tap-stats_tree.c
tap-wspstat.c
tshark.c