* Copyright 2003, Michael Lum <mlum [AT] telostech.com>
* In association with Telos Technology Inc.
*
- * $Id: tap-gsm_astat.c,v 1.2 2004/05/09 10:03:38 guy Exp $
+ * $Id$
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* This TAP provides statistics for the GSM A Interface:
*/
-/* With MSVC and a libethereal.dll this file needs to import some variables
- in a special way. Therefore _NEED_VAR_IMPORT_ is defined. */
-#define _NEED_VAR_IMPORT_
-
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <string.h>
#include "epan/packet_info.h"
#include "epan/value_string.h"
-#include "tap.h"
-#include "packet-bssap.h"
-#include "packet-gsm_a.h"
+#include <epan/tap.h>
+#include <epan/dissectors/packet-bssap.h>
+#include <epan/dissectors/packet-gsm_a.h>
#include "register.h"
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)
{
void
register_tap_listener_gsm_astat(void)
{
- register_ethereal_tap("gsm_a,", gsm_a_stat_init);
+ register_tap_listener_cmd_arg("gsm_a,", gsm_a_stat_init);
}