X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=blobdiff_plain;f=tap-gsm_astat.c;h=9c2c85fd7c47d0260fff11e860a7b74f63350d96;hp=a19229acbcf6e264f8647c322e620ae06a145a4f;hb=fca24ca979673f763b629190397aaadfd78def02;hpb=647c107eece3657da9679701d804b46ee230f8af diff --git a/tap-gsm_astat.c b/tap-gsm_astat.c index a19229acbc..9c2c85fd7c 100644 --- a/tap-gsm_astat.c +++ b/tap-gsm_astat.c @@ -3,10 +3,10 @@ * Copyright 2003, Michael Lum * In association with Telos Technology Inc. * - * $Id: tap-gsm_astat.c,v 1.1 2003/12/09 18:49:30 guy Exp $ + * $Id$ * - * Ethereal - Network traffic analyzer - * By Gerald Combs + * Wireshark - Network traffic analyzer + * By Gerald Combs * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or @@ -41,9 +41,10 @@ #include #include "epan/packet_info.h" #include "epan/value_string.h" -#include "tap.h" -#include "packet-bssap.h" -#include "packet-gsm_a.h" +#include +#include +#include +#include #include "register.h" @@ -62,15 +63,12 @@ typedef struct _gsm_a_stat_t { static int gsm_a_stat_packet( void *tapdata, - packet_info *pinfo, + packet_info *pinfo _U_, epan_dissect_t *edt _U_, - void *data) + const void *data) { gsm_a_stat_t *stat_p = tapdata; - gsm_a_tap_rec_t *tap_p = data; - - - pinfo = pinfo; + const gsm_a_tap_rec_t *tap_p = data; switch (tap_p->pdu_type) { @@ -272,14 +270,11 @@ gsm_a_stat_draw( static void -gsm_a_stat_init(char *optarg) +gsm_a_stat_init(const char *optarg _U_,void* userdata _U_) { gsm_a_stat_t *stat_p; GString *err_p; - - optarg = optarg; - stat_p = g_malloc(sizeof(gsm_a_stat_t)); memset(stat_p, 0, sizeof(gsm_a_stat_t)); @@ -303,5 +298,5 @@ gsm_a_stat_init(char *optarg) void register_tap_listener_gsm_astat(void) { - register_ethereal_tap("gsm_a,", gsm_a_stat_init); + register_stat_cmd_arg("gsm_a,", gsm_a_stat_init,NULL); }