git.samba.org
/
obnox
/
wireshark
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From Elliott: Add contrast to the border.
[obnox/wireshark/wip.git]
/
tap-ansi_astat.c
diff --git
a/tap-ansi_astat.c
b/tap-ansi_astat.c
index 7091d6fd85db16b02d3a1564964e3a92f40e3ad3..0d238956742a9b11538e978cc15034804555c946 100644
(file)
--- a/
tap-ansi_astat.c
+++ b/
tap-ansi_astat.c
@@
-3,10
+3,10
@@
* Copyright 2003, Michael Lum <mlum [AT] telostech.com>
* In association with Telos Technology Inc.
*
* Copyright 2003, Michael Lum <mlum [AT] telostech.com>
* In association with Telos Technology Inc.
*
- * $Id
: tap-ansi_astat.c,v 1.3 2003/12/09 18:49:30 guy Exp
$
+ * $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
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
@@
-41,9
+41,10
@@
#include <string.h>
#include "epan/packet_info.h"
#include "epan/value_string.h"
#include <string.h>
#include "epan/packet_info.h"
#include "epan/value_string.h"
-#include "tap.h"
-#include "packet-bssap.h"
-#include "packet-ansi_a.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"
#include "register.h"
@@
-56,16
+57,14
@@
typedef struct _ansi_a_stat_t {
static int
ansi_a_stat_packet(
void *tapdata,
static int
ansi_a_stat_packet(
void *tapdata,
- packet_info *pinfo,
+ packet_info *pinfo
_U_
,
epan_dissect_t *edt _U_,
epan_dissect_t *edt _U_,
-
void
*data)
+
const void
*data)
{
ansi_a_stat_t *stat_p = tapdata;
{
ansi_a_stat_t *stat_p = tapdata;
-
ansi_a_tap_rec_t
*tap_p = data;
+
const ansi_a_tap_rec_t
*tap_p = data;
- pinfo = pinfo;
-
switch (tap_p->pdu_type)
{
case BSSAP_PDU_TYPE_BSMAP:
switch (tap_p->pdu_type)
{
case BSSAP_PDU_TYPE_BSMAP:
@@
-136,20
+135,17
@@
ansi_a_stat_draw(
static void
static void
-ansi_a_stat_init(c
har *optarg
)
+ansi_a_stat_init(c
onst char *optarg _U_, void* userdata _U_
)
{
ansi_a_stat_t *stat_p;
GString *err_p;
{
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));
err_p =
stat_p = g_malloc(sizeof(ansi_a_stat_t));
memset(stat_p, 0, sizeof(ansi_a_stat_t));
err_p =
- register_tap_listener("ansi_a", stat_p, NULL,
+ register_tap_listener("ansi_a", stat_p, NULL,
0,
NULL,
ansi_a_stat_packet,
ansi_a_stat_draw);
NULL,
ansi_a_stat_packet,
ansi_a_stat_draw);
@@
-167,5
+163,5
@@
ansi_a_stat_init(char *optarg)
void
register_tap_listener_ansi_astat(void)
{
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
);
}
}