*
* $Id$
*
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* This TAP provides statistics for the ANSI 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 "epan/packet_info.h"
#include "epan/value_string.h"
#include <epan/tap.h>
+#include <epan/stat_cmd_args.h>
#include <epan/dissectors/packet-bssap.h>
#include <epan/dissectors/packet-ansi_a.h>
#include "register.h"
static void
-ansi_a_stat_init(char *optarg)
+ansi_a_stat_init(const char *optarg _U_, void* userdata _U_)
{
ansi_a_stat_t *stat_p;
GString *err_p;
-
- optarg = optarg;
-
stat_p = g_malloc(sizeof(ansi_a_stat_t));
memset(stat_p, 0, sizeof(ansi_a_stat_t));
void
register_tap_listener_ansi_astat(void)
{
- register_ethereal_tap("ansi_a,", ansi_a_stat_init);
+ register_stat_cmd_arg("ansi_a,", ansi_a_stat_init,NULL);
}