OK, to heck with it - link reassemble_test with libwireshark. Trying to

selectively pick up particular object files is just too much of a mess.

Alas, this requires that we add some additional symbols to the list
exported by libwireshark; the DCE RPC ones shouldn't be global, but
reassemble_test uses them, so....

Get rid of stubs in reassemble_test.c - they just stub out routines from
libwireshark, but that's not necessary any more.

svn path=/trunk/; revision=41223
This commit is contained in:
Guy Harris 2012-02-28 09:00:05 +00:00
parent c503c241c0
commit b252f2e632
4 changed files with 30 additions and 67 deletions

View File

@ -1,6 +1,7 @@
# Makefile.am
# Automake file for the EPAN library
# (Ethereal Protocol ANalyzer Library)
# Automake file for the libwireshark library
# (EPAN is a historical name; it stands for Ethereal Protocol ANalyzer
# Library)
#
# $Id$
#
@ -150,12 +151,11 @@ libwireshark_la_DEPENDENCIES = \
${top_builddir}/wiretap/libwiretap.la \
libwireshark.sym
#EXTRA_PROGRAMS = reassemble_test
#reassemble_test_LDADD = $(GLIB_LIBS)
reassemble_test: reassemble_test.o packet.o tvbuff.o except.o to_str.o strutil.o emem.o \
reassemble.o charsets.o
$(LINK) $^ $(GLIB_LIBS) -lz
EXTRA_PROGRAMS = reassemble_test
reassemble_test_LDADD = \
libwireshark.la \
$(GLIB_LIBS) \
-lz
tvbtest: tvbtest.o tvbuff.o except.o to_str.o strutil.o emem.o charsets.o
$(LINK) $^ $(GLIB_LIBS) -lz

View File

@ -253,19 +253,29 @@ tvbtest.exe: $(TVBTEST_OBJ)
# Object files for reassemble_test
REASSEMBLE_TEST_OBJ=reassemble_test.obj \
packet.obj \
tvbuff.obj \
except.obj \
to_str.obj \
strutil.obj \
charsets.obj \
emem.obj \
reassemble.obj
REASSEMBLE_TEST_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
wsock32.lib user32.lib \
$(GLIB_LIBS) \
wsutil\libwsutil.lib \
$(GNUTLS_LIBS) \
$(PYTHON_LIBS) \
!IFDEF ENABLE_LIBWIRESHARK
epan\libwireshark.lib \
!ELSE
epan\dissectors\dissectors.lib \
epan\wireshark.lib \
epan\crypt\airpdcap.lib \
epan\dfilter\dfilter.lib \
epan\ftypes\ftypes.lib \
$(C_ARES_LIBS) \
$(ADNS_LIBS) \
$(ZLIB_LIBS)
!ENDIF
reassemble_test.exe: $(REASSEMBLE_TEST_OBJ)
@echo Linking $@
$(LINK) /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
$(GLIB_LIBS) $(ZLIB_LIBS) $(REASSEMBLE_TEST_OBJ)
$(REASSEMBLE_TEST_LIBS) $(GLIB_LIBS) $(ZLIB_LIBS) $(REASSEMBLE_TEST_OBJ)
!IFDEF MANIFEST_INFO_REQUIRED
mt.exe -nologo -manifest "$@.manifest" -outputresource:$@;1
!ENDIF

View File

@ -127,6 +127,7 @@ create_persconffile_dir
create_persconffile_profile
data_out_file DATA
dcerpc_add_conv_to_bind_table
dcerpc_fragment_table_init
dcerpc_get_proto_hf_opnum
dcerpc_get_proto_name
dcerpc_get_proto_sub_dissector
@ -463,8 +464,10 @@ format_text
format_uri
fragment_add
fragment_add_check
fragment_add_dcerpc_dg
fragment_add_multiple_ok
fragment_add_seq
fragment_add_seq_802_11
fragment_add_seq_check
fragment_add_seq_next
fragment_delete

View File

@ -1700,53 +1700,3 @@ main(int argc _U_, char **argv _U_)
printf(failure?"FAILURE\n":"SUCCESS\n");
return failure;
}
/* stubs */
void add_new_data_source(packet_info *pinfo _U_, tvbuff_t *tvb _U_,
const char *name _U_)
{}
proto_item *
proto_tree_add_uint(proto_tree *tree _U_, int hfindex _U_, tvbuff_t *tvb _U_,
gint start _U_, gint length _U_, guint32 value _U_)
{ return NULL; }
void proto_item_prepend_text(proto_item *ti _U_, const char *format _U_, ...)
{}
void proto_item_append_text(proto_item *ti _U_, const char *format _U_, ...)
{}
proto_item *proto_tree_add_uint_format(proto_tree *tree _U_, int hfindex _U_,
tvbuff_t *tvb _U_, gint start _U_,
gint length _U_, guint32 value _U_,
const char *format _U_, ...)
{ return NULL; }
proto_tree* proto_item_add_subtree(proto_item *ti _U_, const gint idx _U_)
{ return NULL; }
proto_item *proto_tree_add_boolean(proto_tree *tree _U_, int hfindex _U_,
tvbuff_t *tvb _U_, gint start _U_,
gint length _U_, guint32 value _U_)
{ return NULL; }
proto_item *proto_tree_add_item(proto_tree *tree _U_, const int hfindex _U_,
tvbuff_t *tvb _U_, const gint start _U_,
gint length _U_,
const guint encoding _U_)
{ return NULL; }
gint check_col(column_info *cinfo _U_, const gint col _U_)
{ return 0; }
void col_add_fstr(column_info *cinfo _U_, const gint col _U_, const gchar *format _U_,
...)
{}
const char* proto_registrar_get_name(const int n _U_)
{ return ""; }
void proto_item_set_text(proto_item *ti _U_, const char *format _U_, ...)
{ }