aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/voip_calls.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-09-01 17:49:27 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-09-01 17:49:27 +0000
commit967ba56822d5b02c0b54eb38ab543fc862234b5b (patch)
treed5b807509a79b5cfbf77961b8b4acabfcc97f02c /gtk/voip_calls.c
parentc701744b8e8d3e9a4753f61cf8924b00852fd297 (diff)
Expand and update comments.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34037 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/voip_calls.c')
-rw-r--r--gtk/voip_calls.c30
1 files changed, 24 insertions, 6 deletions
diff --git a/gtk/voip_calls.c b/gtk/voip_calls.c
index a5ec8be7bd..c7c52c3a48 100644
--- a/gtk/voip_calls.c
+++ b/gtk/voip_calls.c
@@ -2562,8 +2562,13 @@ mgcp_calls_init_tap(void)
if(have_MGCP_tap_listener==FALSE)
{
- /* don't register tap listener, if we have it already */
- /* we send an empty filter, to force a non null "tree" in the mgcp dissector */
+ /*
+ * Don't register the tap listener if we have it already.
+ * We set TL_REQUIRES_PROTO_TREE to force a non-null "tree"
+ * in the MGCP dissector; otherwise, the dissector
+ * doesn't fill in the info passed to the tap's packet
+ * routine.
+ */
error_string = register_tap_listener("mgcp",
&(the_tapinfo_struct.mgcp_dummy),
NULL,
@@ -3721,8 +3726,13 @@ skinny_calls_init_tap(void)
if(have_skinny_tap_listener==FALSE)
{
- /* don't register tap listener, if we have it already */
- /* we send an empty filter, to force a non null "tree" in the SKINNY dissector */
+ /*
+ * Don't register the tap listener if we have it already.
+ * We set TL_REQUIRES_PROTO_TREE to force a non-null "tree"
+ * in the SKINNY dissector; otherwise, the dissector
+ * doesn't fill in the info passed to the tap's packet
+ * routine.
+ */
error_string = register_tap_listener("skinny",
&(the_tapinfo_struct.skinny_dummy),
NULL,
@@ -3903,8 +3913,16 @@ iax2_calls_init_tap(void)
if(have_iax2_tap_listener==FALSE)
{
- /* don't register tap listener, if we have it already */
- /* we send an empty filter, to force a non null "tree" in the IAX2 dissector */
+ /*
+ * Don't register the tap listener if we have it already.
+ * We set TL_REQUIRES_PROTO_TREE to force a non-null "tree"
+ * in the IAX2 dissector; otherwise, the dissector
+ * doesn't fill in the info passed to the tap's packet
+ * routine.
+ * XXX - that appears to be true of the MGCP and SKINNY
+ * dissectors, but, unless I've missed something, it doesn't
+ * appear to be true of the IAX2 dissector.
+ */
error_string = register_tap_listener("IAX2",
&(the_tapinfo_struct.iax2_dummy),
NULL,