2004-03-02 01:21:56 +00:00
|
|
|
# Makefile.common
|
|
|
|
# Contains the stuff from Makefile.am and Makefile.nmake that is
|
|
|
|
# a) common to both files and
|
|
|
|
# b) portable between both files
|
|
|
|
#
|
2006-05-21 05:12:17 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
2004-03-02 01:21:56 +00:00
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2007-01-10 07:47:00 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-03-02 01:21:56 +00:00
|
|
|
|
2013-06-23 19:12:50 +00:00
|
|
|
LIBWIRESHARK_SRC = \
|
2004-08-10 07:52:11 +00:00
|
|
|
addr_and_mask.c \
|
|
|
|
addr_resolv.c \
|
2010-02-27 21:41:12 +00:00
|
|
|
address_to_str.c \
|
2004-09-29 00:52:45 +00:00
|
|
|
afn.c \
|
2013-12-08 12:42:10 +00:00
|
|
|
aftypes.c \
|
2013-07-30 16:21:15 +00:00
|
|
|
app_mem_usage.c \
|
2007-05-03 21:52:57 +00:00
|
|
|
asn1.c \
|
2004-09-10 22:59:37 +00:00
|
|
|
charsets.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
circuit.c \
|
2014-12-09 02:40:24 +00:00
|
|
|
color_dissector_filters.c \
|
2004-09-29 02:54:22 +00:00
|
|
|
column.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
column-utils.c \
|
|
|
|
conversation.c \
|
2014-07-23 17:38:55 +00:00
|
|
|
conversation_table.c \
|
2014-08-08 18:08:35 +00:00
|
|
|
crc10-tvb.c \
|
2011-08-31 09:00:54 +00:00
|
|
|
crc16-tvb.c \
|
|
|
|
crc32-tvb.c \
|
2014-08-08 20:02:46 +00:00
|
|
|
crc6-tvb.c \
|
2011-08-31 09:00:54 +00:00
|
|
|
crc8-tvb.c \
|
2013-11-20 19:17:08 +00:00
|
|
|
decode_as.c \
|
2013-07-12 01:40:06 +00:00
|
|
|
disabled_protos.c \
|
2007-08-23 17:25:22 +00:00
|
|
|
dissector_filters.c \
|
2013-12-15 16:28:57 +00:00
|
|
|
dvb_chartbl.c \
|
2013-11-20 19:17:08 +00:00
|
|
|
dwarf.c \
|
2005-07-22 07:46:58 +00:00
|
|
|
emem.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
epan.c \
|
2006-02-07 22:08:12 +00:00
|
|
|
ex-opt.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
except.c \
|
2005-09-11 16:55:34 +00:00
|
|
|
expert.c \
|
2013-06-23 19:12:50 +00:00
|
|
|
exported_pdu.c \
|
2011-09-08 09:35:10 +00:00
|
|
|
filter_expressions.c \
|
2005-02-09 23:38:00 +00:00
|
|
|
follow.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
frame_data.c \
|
2013-07-11 23:57:11 +00:00
|
|
|
frame_data_sequence.c \
|
2007-08-17 19:34:14 +00:00
|
|
|
frequency-utils.c \
|
2013-06-23 19:12:50 +00:00
|
|
|
funnel.c \
|
2007-05-17 17:08:11 +00:00
|
|
|
gcp.c \
|
2008-12-19 23:49:03 +00:00
|
|
|
geoip_db.c \
|
2012-05-23 07:27:35 +00:00
|
|
|
golay.c \
|
2013-06-23 19:12:50 +00:00
|
|
|
guid-utils.c \
|
2005-02-08 19:36:20 +00:00
|
|
|
h225-persistentdata.c \
|
2004-09-28 00:06:32 +00:00
|
|
|
in_cksum.c \
|
2004-09-29 00:52:45 +00:00
|
|
|
ipproto.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
ipv4.c \
|
2006-06-13 13:21:12 +00:00
|
|
|
next_tvb.c \
|
2012-05-23 07:27:35 +00:00
|
|
|
oids.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
osi-utils.c \
|
2014-05-31 22:07:08 +00:00
|
|
|
oui.c \
|
2013-07-11 23:57:11 +00:00
|
|
|
packet-range.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
packet.c \
|
2004-09-27 22:55:15 +00:00
|
|
|
prefs.c \
|
2013-07-12 03:50:50 +00:00
|
|
|
print.c \
|
2014-11-22 03:22:54 +00:00
|
|
|
print_stream.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
proto.c \
|
2004-09-04 01:32:13 +00:00
|
|
|
range.c \
|
2005-02-09 23:38:00 +00:00
|
|
|
reassemble.c \
|
2006-11-25 13:03:48 +00:00
|
|
|
reedsolomon.c \
|
2004-09-29 00:25:05 +00:00
|
|
|
req_resp_hdrs.c \
|
Move show_exception() and show_reported_bounds_error() to
epan/show_exception.c, as it's used outside
epan/dissectors/packet-frame.c. Update their callers to include
<epan/show_exception.h> to get their declaration.
Add a CATCH_NONFATAL_ERRORS macro that catches all exceptions that, if
there's more stuff in the packet to dissect after the dissector call
that threw the exception, doesn't mean you shouldn't go ahead and
dissect that stuff. Use it in all those cases, including ones where
BoundsError was inappropriately being caught (you want those passed up
to the top level, so that the packet is reported as having been cut
short in the capture process).
Add a CATCH_BOUNDS_ERRORS macro that catches all exceptions that
correspond to running past the end of the data for a tvbuff; use it
rather than explicitly catching those exceptions individually, and
rather than just catching all exceptions (the only place that
DissectorError should be caught, for example, is at the top level, so
dissector bugs show up in the protocol tree).
Don't catch and then immediately rethrow exceptions without doing
anything else; just let the exceptions go up to the final catcher.
Use show_exception() to report non-fatal errors, rather than doing it
yourself.
If a dissector is called from Lua, catch all non-fatal errors and use
show_exception() to report them rather than catching only
ReportedBoundsError and adding a proto_malformed item.
Don't catch exceptions when constructing a trailer tvbuff in
packet-ieee8023.c - just construct it after the payload has been
dissected, and let whatever exceptions that throws be handled at the top
level.
Avoid some TRY/CATCH/ENDTRY cases by using checks such as
tvb_bytes_exist() before even looking in the tvbuff.
svn path=/trunk/; revision=47924
2013-02-27 22:43:54 +00:00
|
|
|
show_exception.c \
|
2004-09-30 20:27:47 +00:00
|
|
|
sminmpec.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
sna-utils.c \
|
2014-11-14 18:51:40 +00:00
|
|
|
stat_tap_ui.c \
|
2005-02-25 04:02:00 +00:00
|
|
|
stats_tree.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
strutil.c \
|
2005-10-03 18:34:21 +00:00
|
|
|
stream.c \
|
2004-09-29 00:52:45 +00:00
|
|
|
t35.c \
|
2004-09-29 00:06:36 +00:00
|
|
|
tap.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
timestamp.c \
|
2013-06-26 00:18:44 +00:00
|
|
|
timestats.c \
|
2007-01-10 07:47:00 +00:00
|
|
|
tfs.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
to_str.c \
|
2005-09-08 21:18:58 +00:00
|
|
|
tvbparse.c \
|
2013-12-21 14:33:54 +00:00
|
|
|
tvbuff_base64.c \
|
2013-07-31 19:58:13 +00:00
|
|
|
tvbuff_composite.c \
|
2013-07-14 07:42:19 +00:00
|
|
|
tvbuff_real.c \
|
|
|
|
tvbuff_subset.c \
|
2013-12-06 23:23:44 +00:00
|
|
|
tvbuff_zlib.c \
|
2004-08-10 07:52:11 +00:00
|
|
|
tvbuff.c \
|
2007-01-28 10:31:32 +00:00
|
|
|
uat.c \
|
2004-09-28 23:48:02 +00:00
|
|
|
value_string.c \
|
2008-07-18 11:18:07 +00:00
|
|
|
xdlc.c
|
2004-03-02 01:21:56 +00:00
|
|
|
|
2007-05-22 07:21:12 +00:00
|
|
|
#
|
2013-07-12 03:50:50 +00:00
|
|
|
# We distribute Lemon and rdps.py with Wireshark, so we don't distribute the
|
|
|
|
# files they produce.
|
2007-05-22 07:21:12 +00:00
|
|
|
#
|
2014-03-12 14:43:05 +00:00
|
|
|
NODIST_LIBWIRESHARK_GENERATED_C_FILES = \
|
|
|
|
dtd_grammar.c \
|
2013-07-12 03:50:50 +00:00
|
|
|
ps.c
|
2007-05-22 07:21:12 +00:00
|
|
|
|
2014-03-12 14:43:05 +00:00
|
|
|
NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES = \
|
2013-02-05 06:09:17 +00:00
|
|
|
dtd_grammar.h
|
|
|
|
|
2007-05-22 07:21:12 +00:00
|
|
|
#
|
|
|
|
# These don't get removed on "make distclean", as the tools we use to
|
|
|
|
# generate them aren't part of the Wireshark distribution, and aren't
|
|
|
|
# tools assumed to be present for any system capable of compiling
|
|
|
|
# from a tarball (e.g., make and a C compiler are assumed to be present,
|
|
|
|
# but Flex isn't).
|
|
|
|
#
|
2013-02-05 06:09:17 +00:00
|
|
|
LIBWIRESHARK_GENERATED_C_FILES = \
|
2007-07-16 05:43:46 +00:00
|
|
|
diam_dict.c \
|
2013-06-23 19:12:50 +00:00
|
|
|
dtd_parse.c \
|
|
|
|
dtd_preparse.c \
|
|
|
|
radius_dict.c \
|
2007-08-04 08:04:17 +00:00
|
|
|
uat_load.c
|
2007-05-17 17:08:11 +00:00
|
|
|
|
2013-02-05 06:09:17 +00:00
|
|
|
LIBWIRESHARK_GENERATED_HEADER_FILES = \
|
|
|
|
diam_dict_lex.h \
|
|
|
|
dtd_parse_lex.h \
|
|
|
|
dtd_preparse_lex.h \
|
|
|
|
radius_dict_lex.h \
|
|
|
|
uat_load_lex.h
|
|
|
|
|
2013-06-23 19:12:50 +00:00
|
|
|
LIBWIRESHARK_GENERATED_SRC = \
|
2013-02-05 07:50:57 +00:00
|
|
|
$(LIBWIRESHARK_GENERATED_C_FILES) \
|
2013-02-09 23:35:30 +00:00
|
|
|
$(NODIST_LIBWIRESHARK_GENERATED_C_FILES)
|
2007-05-22 07:21:12 +00:00
|
|
|
|
2013-06-23 19:12:50 +00:00
|
|
|
LIBWIRESHARK_ALL_SRC = \
|
|
|
|
$(LIBWIRESHARK_SRC) \
|
2007-05-17 17:08:11 +00:00
|
|
|
$(LIBWIRESHARK_GENERATED_SRC)
|
2011-05-27 03:27:12 +00:00
|
|
|
|
2013-06-23 19:12:50 +00:00
|
|
|
LIBWIRESHARK_INCLUDES = \
|
2004-08-10 07:52:11 +00:00
|
|
|
addr_and_mask.h \
|
|
|
|
addr_resolv.h \
|
|
|
|
address.h \
|
2004-09-29 00:52:45 +00:00
|
|
|
afn.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
aftypes.h \
|
2013-07-30 18:59:19 +00:00
|
|
|
app_mem_usage.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
arcnet_pids.h \
|
2004-12-26 22:26:02 +00:00
|
|
|
arptypes.h \
|
2007-05-01 22:05:11 +00:00
|
|
|
asn1.h \
|
2013-07-30 18:59:19 +00:00
|
|
|
ax25_pids.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
bridged_pids.h \
|
2004-09-10 22:59:37 +00:00
|
|
|
charsets.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
chdlctypes.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
circuit.h \
|
2014-12-09 02:40:24 +00:00
|
|
|
color_dissector_filters.h \
|
2004-09-29 02:54:22 +00:00
|
|
|
column.h \
|
2013-10-18 13:06:33 +00:00
|
|
|
column-info.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
column-utils.h \
|
2004-09-29 02:54:22 +00:00
|
|
|
conversation.h \
|
2014-03-05 15:56:33 +00:00
|
|
|
conversation_debug.h \
|
2014-07-23 17:38:55 +00:00
|
|
|
conversation_table.h \
|
2012-05-23 07:27:35 +00:00
|
|
|
conv_id.h \
|
2014-08-08 18:08:35 +00:00
|
|
|
crc10-tvb.h \
|
2011-08-31 09:00:54 +00:00
|
|
|
crc16-tvb.h \
|
|
|
|
crc32-tvb.h \
|
2014-08-08 20:02:46 +00:00
|
|
|
crc6-tvb.h \
|
2011-08-31 09:00:54 +00:00
|
|
|
crc8-tvb.h \
|
2013-11-20 19:17:08 +00:00
|
|
|
decode_as.h \
|
2007-07-16 05:43:46 +00:00
|
|
|
diam_dict.h \
|
2013-07-12 01:40:06 +00:00
|
|
|
disabled_protos.h \
|
2007-08-23 17:25:22 +00:00
|
|
|
dissector_filters.h \
|
2005-09-10 17:29:15 +00:00
|
|
|
dtd.h \
|
2013-06-23 19:12:50 +00:00
|
|
|
dtd_parse.h \
|
2013-12-15 16:28:57 +00:00
|
|
|
dvb_chartbl.h \
|
2013-10-23 01:36:49 +00:00
|
|
|
dwarf.h \
|
2012-01-14 15:22:10 +00:00
|
|
|
eap.h \
|
2014-03-23 19:17:23 +00:00
|
|
|
eapol_keydes_types.h \
|
2005-07-22 07:46:58 +00:00
|
|
|
emem.h \
|
2013-07-21 20:48:30 +00:00
|
|
|
epan-int.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
epan.h \
|
|
|
|
epan_dissect.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
etypes.h \
|
2006-02-07 22:08:12 +00:00
|
|
|
ex-opt.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
except.h \
|
|
|
|
exceptions.h \
|
2005-09-11 16:55:34 +00:00
|
|
|
expert.h \
|
2013-06-23 19:12:50 +00:00
|
|
|
exported_pdu.h \
|
2011-09-08 09:35:10 +00:00
|
|
|
filter_expressions.h \
|
2005-02-09 23:38:00 +00:00
|
|
|
follow.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
frame_data.h \
|
2013-07-11 23:57:11 +00:00
|
|
|
frame_data_sequence.h \
|
2007-08-17 19:34:14 +00:00
|
|
|
frequency-utils.h \
|
2006-02-04 19:56:50 +00:00
|
|
|
funnel.h \
|
2007-04-30 19:24:25 +00:00
|
|
|
garrayfix.h \
|
2007-03-25 21:42:26 +00:00
|
|
|
gcp.h \
|
2008-12-19 23:49:03 +00:00
|
|
|
geoip_db.h \
|
2007-08-23 17:25:22 +00:00
|
|
|
golay.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
greproto.h \
|
2006-08-16 23:13:26 +00:00
|
|
|
guid-utils.h \
|
2005-02-08 19:36:20 +00:00
|
|
|
h225-persistentdata.h \
|
2009-05-05 22:35:19 +00:00
|
|
|
iana_snap_pid.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
iax2_codec_type.h \
|
2004-09-28 00:06:32 +00:00
|
|
|
in_cksum.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
ip_opts.h \
|
2004-09-29 00:52:45 +00:00
|
|
|
ipproto.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
ipv4.h \
|
|
|
|
ipv6-utils.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
lapd_sapi.h \
|
|
|
|
llcsaps.h \
|
2006-06-13 13:21:12 +00:00
|
|
|
next_tvb.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
nlpid.h \
|
2007-11-17 00:20:32 +00:00
|
|
|
oids.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
osi-utils.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
oui.h \
|
2013-07-11 23:57:11 +00:00
|
|
|
packet-range.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
packet.h \
|
|
|
|
packet_info.h \
|
2011-06-05 22:39:23 +00:00
|
|
|
params.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
ppptypes.h \
|
2013-07-12 03:50:50 +00:00
|
|
|
print.h \
|
2014-11-22 03:22:54 +00:00
|
|
|
print_stream.h \
|
2004-09-27 22:55:15 +00:00
|
|
|
prefs.h \
|
2004-10-01 08:33:53 +00:00
|
|
|
prefs-int.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
proto.h \
|
2013-07-12 08:01:52 +00:00
|
|
|
ps.h \
|
2005-02-09 23:38:00 +00:00
|
|
|
ptvcursor.h \
|
2004-09-04 01:32:13 +00:00
|
|
|
range.h \
|
2005-02-09 23:38:00 +00:00
|
|
|
reassemble.h \
|
2006-11-25 13:03:48 +00:00
|
|
|
reedsolomon.h \
|
2004-09-29 00:25:05 +00:00
|
|
|
req_resp_hdrs.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
rtp_pt.h \
|
|
|
|
sctpppids.h \
|
Move show_exception() and show_reported_bounds_error() to
epan/show_exception.c, as it's used outside
epan/dissectors/packet-frame.c. Update their callers to include
<epan/show_exception.h> to get their declaration.
Add a CATCH_NONFATAL_ERRORS macro that catches all exceptions that, if
there's more stuff in the packet to dissect after the dissector call
that threw the exception, doesn't mean you shouldn't go ahead and
dissect that stuff. Use it in all those cases, including ones where
BoundsError was inappropriately being caught (you want those passed up
to the top level, so that the packet is reported as having been cut
short in the capture process).
Add a CATCH_BOUNDS_ERRORS macro that catches all exceptions that
correspond to running past the end of the data for a tvbuff; use it
rather than explicitly catching those exceptions individually, and
rather than just catching all exceptions (the only place that
DissectorError should be caught, for example, is at the top level, so
dissector bugs show up in the protocol tree).
Don't catch and then immediately rethrow exceptions without doing
anything else; just let the exceptions go up to the final catcher.
Use show_exception() to report non-fatal errors, rather than doing it
yourself.
If a dissector is called from Lua, catch all non-fatal errors and use
show_exception() to report them rather than catching only
ReportedBoundsError and adding a proto_malformed item.
Don't catch exceptions when constructing a trailer tvbuff in
packet-ieee8023.c - just construct it after the payload has been
dissected, and let whatever exceptions that throws be handled at the top
level.
Avoid some TRY/CATCH/ENDTRY cases by using checks such as
tvb_bytes_exist() before even looking in the tvbuff.
svn path=/trunk/; revision=47924
2013-02-27 22:43:54 +00:00
|
|
|
show_exception.h \
|
2014-05-31 04:48:41 +00:00
|
|
|
slow_protocol_subtypes.h \
|
2004-09-30 20:27:47 +00:00
|
|
|
sminmpec.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
sna-utils.h \
|
2014-11-14 18:51:40 +00:00
|
|
|
stat_tap_ui.h \
|
2014-07-03 20:30:12 +00:00
|
|
|
stat_groups.h \
|
2005-02-25 04:02:00 +00:00
|
|
|
stats_tree.h \
|
|
|
|
stats_tree_priv.h \
|
2005-10-03 18:34:21 +00:00
|
|
|
stream.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
strutil.h \
|
2004-09-29 00:52:45 +00:00
|
|
|
t35.h \
|
2004-09-29 00:06:36 +00:00
|
|
|
tap.h \
|
2007-10-24 08:30:46 +00:00
|
|
|
tap-voip.h \
|
2013-06-23 19:12:50 +00:00
|
|
|
timestamp.h \
|
2013-06-26 00:18:44 +00:00
|
|
|
timestats.h \
|
2007-01-10 07:47:00 +00:00
|
|
|
tfs.h \
|
2010-02-27 19:01:27 +00:00
|
|
|
time_fmt.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
to_str.h \
|
2013-11-09 11:26:41 +00:00
|
|
|
to_str-int.h \
|
2005-09-08 21:18:58 +00:00
|
|
|
tvbparse.h \
|
2004-08-10 07:52:11 +00:00
|
|
|
tvbuff.h \
|
2011-05-27 03:27:12 +00:00
|
|
|
tvbuff-int.h \
|
2007-05-17 17:08:11 +00:00
|
|
|
uat.h \
|
|
|
|
uat-int.h \
|
2004-09-28 23:48:02 +00:00
|
|
|
value_string.h \
|
2005-09-17 00:02:31 +00:00
|
|
|
x264_prt_id.h \
|
2008-07-18 11:18:07 +00:00
|
|
|
xdlc.h
|