diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-09-10 21:40:21 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-09-10 21:40:21 +0000 |
commit | 5a8783f5b12e017967ce178bac3d1826630dea1a (patch) | |
tree | 72bd010e8f647ea2c4fbd0b8ace91952758f595e /epan/dissectors/packet-3com-njack.c | |
parent | f764eabb6725bf82f4f45ae12faa1f54860cf090 (diff) |
Initial commit to support yet another method of passing data between dissectors.
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL
svn path=/trunk/; revision=44860
Diffstat (limited to 'epan/dissectors/packet-3com-njack.c')
-rw-r--r-- | epan/dissectors/packet-3com-njack.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-3com-njack.c b/epan/dissectors/packet-3com-njack.c index d2796ae2f1..d3a769de20 100644 --- a/epan/dissectors/packet-3com-njack.c +++ b/epan/dissectors/packet-3com-njack.c @@ -568,7 +568,7 @@ verify_password(tvbuff_t *tvb, const char *password) #endif static int -dissect_njack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_njack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { proto_item *ti; proto_tree *njack_tree; @@ -654,22 +654,22 @@ test_njack(tvbuff_t *tvb) } static gboolean -dissect_njack_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_njack_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { if ( !test_njack(tvb) ) { return FALSE; } - dissect_njack(tvb, pinfo, tree); + dissect_njack(tvb, pinfo, tree, NULL); return TRUE; } static int -dissect_njack_static(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_njack_static(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { if ( !test_njack(tvb) ) { return 0; } - return dissect_njack(tvb, pinfo, tree); + return dissect_njack(tvb, pinfo, tree, NULL); } void |