forked from osmocom/wireshark
parent
d62f6c67da
commit
38faa0f27b
|
@ -1,4 +1,4 @@
|
||||||
# $Id: configure.in,v 1.55 2004/01/10 16:50:59 obiot Exp $
|
# $Id: configure.in,v 1.56 2004/02/01 06:49:24 jmayer Exp $
|
||||||
dnl
|
dnl
|
||||||
dnl Process this file with autoconf 2.13 or later to produce a
|
dnl Process this file with autoconf 2.13 or later to produce a
|
||||||
dnl configure script; 2.12 doesn't generate a "configure" script that
|
dnl configure script; 2.12 doesn't generate a "configure" script that
|
||||||
|
@ -45,12 +45,12 @@ AC_ARG_WITH(extra-gcc-checks,
|
||||||
[
|
[
|
||||||
if test $withval != no
|
if test $withval != no
|
||||||
then
|
then
|
||||||
ethereal_extra_gcc_flags=" -Wcast-qual -Wcast-align -Wbad-function-cast -pedantic"
|
ethereal_extra_gcc_flags=" "
|
||||||
fi
|
fi
|
||||||
],)
|
],)
|
||||||
AC_MSG_CHECKING(to see if we can add '-Wall -W$ethereal_extra_gcc_flags' to CFLAGS)
|
AC_MSG_CHECKING(to see if we can add '-Wall -W$ethereal_extra_gcc_flags' to CFLAGS)
|
||||||
if test x$GCC != x ; then
|
if test x$GCC != x ; then
|
||||||
CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W$ethereal_extra_gcc_flags $CFLAGS"
|
CFLAGS="-D_U_=\"__attribute__((unused))\" -Wall -W -Wcast-qual -Wcast-align -Wbad-function-cast -pedantic $ethereal_extra_gcc_flags $CFLAGS"
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
CFLAGS="-D_U_=\"\" $CFLAGS"
|
CFLAGS="-D_U_=\"\" $CFLAGS"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* the data of a backing tvbuff, or can be a composite of
|
* the data of a backing tvbuff, or can be a composite of
|
||||||
* other tvbuffs.
|
* other tvbuffs.
|
||||||
*
|
*
|
||||||
* $Id: tvbuff.c,v 1.57 2004/01/23 09:40:38 jmayer Exp $
|
* $Id: tvbuff.c,v 1.58 2004/02/01 06:49:24 jmayer Exp $
|
||||||
*
|
*
|
||||||
* Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
* Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||||
*
|
*
|
||||||
|
@ -250,7 +250,7 @@ tvb_set_real_data(tvbuff_t* tvb, const guint8* data, guint length, gint reported
|
||||||
THROW(ReportedBoundsError);
|
THROW(ReportedBoundsError);
|
||||||
}
|
}
|
||||||
|
|
||||||
tvb->real_data = (gpointer) data;
|
tvb->real_data = data;
|
||||||
tvb->length = length;
|
tvb->length = length;
|
||||||
tvb->reported_length = reported_length;
|
tvb->reported_length = reported_length;
|
||||||
tvb->initialized = TRUE;
|
tvb->initialized = TRUE;
|
||||||
|
@ -1545,7 +1545,7 @@ tvb_strneql(tvbuff_t *tvb, gint offset, const guint8 *str, gint size)
|
||||||
* it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1.
|
* it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1.
|
||||||
*/
|
*/
|
||||||
gint
|
gint
|
||||||
tvb_strncaseeql(tvbuff_t *tvb, gint offset, const guint8 *str, gint size)
|
tvb_strncaseeql(tvbuff_t *tvb, gint offset, const gchar *str, gint size)
|
||||||
{
|
{
|
||||||
guint8 *ptr;
|
guint8 *ptr;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* the data of a backing tvbuff, or can be a composite of
|
* the data of a backing tvbuff, or can be a composite of
|
||||||
* other tvbuffs.
|
* other tvbuffs.
|
||||||
*
|
*
|
||||||
* $Id: tvbuff.h,v 1.37 2004/01/23 09:40:38 jmayer Exp $
|
* $Id: tvbuff.h,v 1.38 2004/02/01 06:49:24 jmayer Exp $
|
||||||
*
|
*
|
||||||
* Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
* Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||||
*
|
*
|
||||||
|
@ -481,7 +481,7 @@ extern gint tvb_strneql(tvbuff_t *tvb, gint offset, const guint8 *str,
|
||||||
* Call strncasecmp after checking if enough chars left, returning 0 if
|
* Call strncasecmp after checking if enough chars left, returning 0 if
|
||||||
* it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1.
|
* it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1.
|
||||||
*/
|
*/
|
||||||
extern gint tvb_strncaseeql(tvbuff_t *tvb, gint offset, const guint8 *str,
|
extern gint tvb_strncaseeql(tvbuff_t *tvb, gint offset, const gchar *str,
|
||||||
gint size);
|
gint size);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* This information is based off the released idl files from opengroup.
|
* This information is based off the released idl files from opengroup.
|
||||||
* ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz file/fsint/afs4int.idl
|
* ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz file/fsint/afs4int.idl
|
||||||
*
|
*
|
||||||
* $Id: packet-dcerpc-afs4int.c,v 1.6 2004/01/27 04:15:47 guy Exp $
|
* $Id: packet-dcerpc-afs4int.c,v 1.7 2004/02/01 06:49:22 jmayer Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* By Gerald Combs <gerald@ethereal.com>
|
||||||
|
@ -2136,9 +2136,11 @@ dissect_afsReturns (tvbuff_t * tvb, int offset,
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* not used */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
dissect_afsbundled_stat (tvbuff_t * tvb, int offset,
|
dissect_afsbundled_stat (tvbuff_t * tvb, int offset,
|
||||||
packet_info * pinfo, proto_tree * parent_tree, guint8 *drep)
|
packet_info * pinfo, proto_tree * parent_tree, guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@ -2187,11 +2189,12 @@ return offset;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* not used */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
dissect_afsBulkStat (tvbuff_t * tvb, int offset,
|
dissect_afsBulkStat (tvbuff_t * tvb _U_, int offset,
|
||||||
packet_info * pinfo, proto_tree * tree,
|
packet_info * pinfo _U_, proto_tree * tree _U_,
|
||||||
guint8 *drep)
|
guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
unsigned32 BulkStat_len;
|
unsigned32 BulkStat_len;
|
||||||
|
@ -3826,7 +3829,7 @@ static int
|
||||||
static int
|
static int
|
||||||
afs4int_dissect_gettime_rqst
|
afs4int_dissect_gettime_rqst
|
||||||
(tvbuff_t *
|
(tvbuff_t *
|
||||||
tvb, int offset, packet_info * pinfo, proto_tree * tree, guint8 *drep)
|
tvb _U_, int offset, packet_info * pinfo, proto_tree * tree _U_, guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
dcerpc_info *di;
|
dcerpc_info *di;
|
||||||
|
|
||||||
|
@ -3909,7 +3912,7 @@ static int
|
||||||
static int
|
static int
|
||||||
afs4int_dissect_getserverinterfaces_rqst
|
afs4int_dissect_getserverinterfaces_rqst
|
||||||
(tvbuff_t *
|
(tvbuff_t *
|
||||||
tvb, int offset, packet_info * pinfo, proto_tree * tree, guint8 *drep)
|
tvb _U_, int offset, packet_info * pinfo, proto_tree * tree _U_, guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
dcerpc_info *di;
|
dcerpc_info *di;
|
||||||
|
|
||||||
|
@ -4038,7 +4041,7 @@ static int
|
||||||
static int
|
static int
|
||||||
afs4int_dissect_getstatistics_rqst
|
afs4int_dissect_getstatistics_rqst
|
||||||
(tvbuff_t *
|
(tvbuff_t *
|
||||||
tvb, int offset, packet_info * pinfo, proto_tree * tree, guint8 *drep)
|
tvb _U_, int offset, packet_info * pinfo, proto_tree * tree _U_, guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
dcerpc_info *di;
|
dcerpc_info *di;
|
||||||
|
|
||||||
|
@ -4055,7 +4058,7 @@ static int
|
||||||
static int
|
static int
|
||||||
afs4int_dissect_getstatistics_resp
|
afs4int_dissect_getstatistics_resp
|
||||||
(tvbuff_t *
|
(tvbuff_t *
|
||||||
tvb, int offset, packet_info * pinfo, proto_tree * tree, guint8 *drep)
|
tvb _U_, int offset, packet_info * pinfo, proto_tree * tree _U_, guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
dcerpc_info *di;
|
dcerpc_info *di;
|
||||||
|
|
||||||
|
@ -4124,7 +4127,7 @@ static int
|
||||||
static int
|
static int
|
||||||
afs4int_dissect_bulkfetchvv_resp
|
afs4int_dissect_bulkfetchvv_resp
|
||||||
(tvbuff_t *
|
(tvbuff_t *
|
||||||
tvb, int offset, packet_info * pinfo, proto_tree * tree, guint8 *drep)
|
tvb _U_, int offset, packet_info * pinfo, proto_tree * tree _U_, guint8 *drep _U_)
|
||||||
{
|
{
|
||||||
dcerpc_info *di;
|
dcerpc_info *di;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Copyright 2002, Tim Potter <tpot@samba.org>
|
* Copyright 2002, Tim Potter <tpot@samba.org>
|
||||||
* Copyright 1999, Andrew Tridgell <tridge@samba.org>
|
* Copyright 1999, Andrew Tridgell <tridge@samba.org>
|
||||||
*
|
*
|
||||||
* $Id: packet-http.c,v 1.93 2004/01/19 23:57:11 guy Exp $
|
* $Id: packet-http.c,v 1.94 2004/02/01 06:49:22 jmayer Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* By Gerald Combs <gerald@ethereal.com>
|
||||||
|
@ -1031,7 +1031,7 @@ find_header_hf_value(tvbuff_t *tvb, int offset, guint header_len)
|
||||||
for (i = 0; i < array_length(headers); i++) {
|
for (i = 0; i < array_length(headers); i++) {
|
||||||
if (header_len == strlen(headers[i].name) &&
|
if (header_len == strlen(headers[i].name) &&
|
||||||
tvb_strncaseeql(tvb, offset,
|
tvb_strncaseeql(tvb, offset,
|
||||||
(const guint8 *)headers[i].name, header_len) == 0)
|
headers[i].name, header_len) == 0)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*
|
*
|
||||||
* RFC 2865, RFC 2866, RFC 2867, RFC 2868, RFC 2869
|
* RFC 2865, RFC 2866, RFC 2867, RFC 2868, RFC 2869
|
||||||
*
|
*
|
||||||
* $Id: packet-radius.c,v 1.89 2004/01/13 03:27:47 guy Exp $
|
* $Id: packet-radius.c,v 1.90 2004/02/01 06:49:22 jmayer Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* By Gerald Combs <gerald@ethereal.com>
|
||||||
|
@ -44,7 +44,9 @@
|
||||||
#include "packet-gtp.h"
|
#include "packet-gtp.h"
|
||||||
#include "prefs.h"
|
#include "prefs.h"
|
||||||
#include "crypt-md5.h"
|
#include "crypt-md5.h"
|
||||||
|
#include "tap.h"
|
||||||
|
|
||||||
|
static int radius_tap = -1;
|
||||||
static int proto_radius = -1;
|
static int proto_radius = -1;
|
||||||
static int hf_radius_length = -1;
|
static int hf_radius_length = -1;
|
||||||
static int hf_radius_code = -1;
|
static int hf_radius_code = -1;
|
||||||
|
@ -2845,6 +2847,7 @@ static void dissect_radius(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
||||||
dissect_attribute_value_pairs(tvb, hdrlength, avptree, avplength, pinfo);
|
dissect_attribute_value_pairs(tvb, hdrlength, avptree, avplength, pinfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tap_queue_packet(radius_tap, pinfo, NULL);
|
||||||
}
|
}
|
||||||
/* registration with the filtering engine */
|
/* registration with the filtering engine */
|
||||||
void
|
void
|
||||||
|
@ -2881,6 +2884,7 @@ proto_register_radius(void)
|
||||||
prefs_register_string_preference(radius_module,"shared_secret","Shared Secret",
|
prefs_register_string_preference(radius_module,"shared_secret","Shared Secret",
|
||||||
"Shared secret used to decode User Passwords",
|
"Shared secret used to decode User Passwords",
|
||||||
&shared_secret);
|
&shared_secret);
|
||||||
|
radius_tap = register_tap("radius");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -99,7 +99,7 @@ typedef gint (*addr_tvb_get_nstringz0) (tvbuff_t *, gint, guint, guint8 *);
|
||||||
typedef gint (*addr_tvb_find_line_end) (tvbuff_t *, gint, int, gint *, gboolean);
|
typedef gint (*addr_tvb_find_line_end) (tvbuff_t *, gint, int, gint *, gboolean);
|
||||||
typedef gint (*addr_tvb_find_line_end_unquoted) (tvbuff_t *, gint, int, gint *);
|
typedef gint (*addr_tvb_find_line_end_unquoted) (tvbuff_t *, gint, int, gint *);
|
||||||
typedef gint (*addr_tvb_strneql) (tvbuff_t *, gint, const guint8 *, gint);
|
typedef gint (*addr_tvb_strneql) (tvbuff_t *, gint, const guint8 *, gint);
|
||||||
typedef gint (*addr_tvb_strncaseeql) (tvbuff_t *, gint, const guint8 *, gint);
|
typedef gint (*addr_tvb_strncaseeql) (tvbuff_t *, gint, const gchar *, gint);
|
||||||
typedef gchar *(*addr_tvb_bytes_to_str) (tvbuff_t *, gint, gint);
|
typedef gchar *(*addr_tvb_bytes_to_str) (tvbuff_t *, gint, gint);
|
||||||
typedef struct pref_module *(*addr_prefs_register_protocol) (int, void (*) (void));
|
typedef struct pref_module *(*addr_prefs_register_protocol) (int, void (*) (void));
|
||||||
typedef void (*addr_prefs_register_uint_preference) (struct pref_module *, const char *, const char *, const char *, guint, guint *);
|
typedef void (*addr_prefs_register_uint_preference) (struct pref_module *, const char *, const char *, const char *, guint, guint *);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* plugin_api_list.c
|
/* plugin_api_list.c
|
||||||
* Used to generate various included files for plugin API
|
* Used to generate various included files for plugin API
|
||||||
*
|
*
|
||||||
* $Id: plugin_api_list.c,v 1.23 2004/01/25 17:53:55 gerald Exp $
|
* $Id: plugin_api_list.c,v 1.24 2004/02/01 06:49:25 jmayer Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* By Gerald Combs <gerald@ethereal.com>
|
||||||
|
@ -184,7 +184,7 @@ gint tvb_find_line_end(tvbuff_t*, gint, int, gint *, gboolean);
|
||||||
gint tvb_find_line_end_unquoted(tvbuff_t*, gint, int, gint *);
|
gint tvb_find_line_end_unquoted(tvbuff_t*, gint, int, gint *);
|
||||||
|
|
||||||
gint tvb_strneql(tvbuff_t*, gint, const guint8 *, gint);
|
gint tvb_strneql(tvbuff_t*, gint, const guint8 *, gint);
|
||||||
gint tvb_strncaseeql(tvbuff_t*, gint, const guint8 *, gint);
|
gint tvb_strncaseeql(tvbuff_t*, gint, const gchar *, gint);
|
||||||
|
|
||||||
gchar *tvb_bytes_to_str(tvbuff_t*, gint, gint len);
|
gchar *tvb_bytes_to_str(tvbuff_t*, gint, gint len);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue