add parameter dcerpc_info to PIDL_dissect_ipv?address()
[wireshark-wip.git] / ui / gtk / conversations_jxta.c
blobde82cc8b7982a40a0eec63a494b9f0631963d384
1 /* conversations_jxta.c
2 * conversations_jxta copyright (c) 2005 Mike Duigou <bondolo@jxta.org>
3 * copied from conversations_sctp.c
5 * $Id$
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include "config.h"
28 #include <string.h>
30 #include <gtk/gtk.h>
32 #include <epan/packet.h>
33 #include <epan/stat_cmd_args.h>
34 #include <epan/tap.h>
35 #include <epan/dissectors/packet-jxta.h>
37 #include "../stat_menu.h"
39 #include "ui/gtk/gui_stat_menu.h"
40 #include "ui/gtk/conversations_table.h"
42 static int
43 jxta_conversation_packet(void *pct, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *vip)
45 const jxta_tap_header *jxtahdr = (const jxta_tap_header *) vip;
47 add_conversation_table_data((conversations_table *)pct,
48 &jxtahdr->src_address,
49 &jxtahdr->dest_address,
53 jxtahdr->size,
54 NULL,
55 SAT_JXTA,
56 PT_NONE);
59 return 1;
62 static void
63 jxta_conversation_init(const char *opt_arg, void* userdata _U_)
65 const char *filter=NULL;
67 if(!strncmp(opt_arg,"conv,jxta,",10)){
68 filter=opt_arg+10;
69 } else {
70 filter=NULL;
73 init_conversation_table(TRUE, "JXTA", "jxta", filter, jxta_conversation_packet);
77 void
78 jxta_conversation_cb(GtkAction *action _U_, gpointer user_data _U_)
80 jxta_conversation_init("conv,jxta",NULL);
83 void
84 register_tap_listener_jxta_conversation(void)
86 register_stat_cmd_arg("conv,jxta", jxta_conversation_init,NULL);
87 register_conversation_table(TRUE, "JXTA", "jxta", NULL /*filter*/, jxta_conversation_packet);