Commit Graph

10003 Commits

Author SHA1 Message Date
Guy Harris 26536d7a41 Use "guint8" for 8-bit binary data.
"file_getc()" returns either an 8-bit unsigned value, or -1 for error or
EOF; store its return value into an "int", and check for -1 and return
-2, in "esc_read()" (rather than checking "file_error()" at the end).

Clean up some comments, routine names, and variable names - eyeSDN files
are binary, not text.

In "parse_eyesdn_packet_data()", handle the case of an EOF from
"esc_read()".

svn path=/trunk/; revision=10050
2004-02-12 21:25:07 +00:00
Guy Harris 6c0c28136f Eliminate a compiler warning.
Use "guint8" for 8-bit binary data, and use "%u" to print unsigned values.

svn path=/trunk/; revision=10049
2004-02-12 21:04:05 +00:00
Guy Harris ea3e87cb46 From Kendy Kutzner: don't use variable-length arrays, not all C
compilers support them.

Also, use "tvb_memdup()" to make a copy of the compressed data - it's
faster, and also checks to make sure the data is actually there (it
throws an exception before allocating anything).

svn path=/trunk/; revision=10048
2004-02-12 20:58:01 +00:00
Guy Harris f689434393 From Yaniv Kaul: the response to an V5 authentication response is a V5
authentication response, not a V5 command.

Clean up white space.

svn path=/trunk/; revision=10047
2004-02-12 20:47:27 +00:00
Guy Harris 0aef15283a Note that 164 is reserved for Juniper chassis-internal meta-information
(DLT_JUNIPER_MONITOR/LINKTYPE_JUNIPER_MONITOR).

Fix a typo.

svn path=/trunk/; revision=10046
2004-02-12 19:49:08 +00:00
Ulf Lamping c976800b49 from Anders Broman: added some tips for compiling with GTK2 and other things
svn path=/trunk/; revision=10045
2004-02-12 07:59:58 +00:00
Guy Harris 60096bfad9 Use -1 rather than 0 as the SCAN_FAILED return value from the lexical
analyzer on errors, and check for SCAN_FAILED from the lexical analyzer
and abort the parse if we see it; 0 means "end of input", and we want to
distinguish errors from end-of-input, so that we can report errors as
such.

If we see end-of-input while parsing a double-quoted string, report the
error (missing closing quote).

Fix the URL for the "Start conditions" section of the Flex manual.

svn path=/trunk/; revision=10044
2004-02-11 22:52:54 +00:00
Guy Harris b9b4a23834 Make an existence test of an arbitrary entity syntactically valid, but
check, in the semantics-checking phase, that we're testing a field, so
that we can give a better message than, for example, "Unexpected end of
filter string." for an existence test with a misspelled field name.

svn path=/trunk/; revision=10043
2004-02-11 21:20:52 +00:00
Guy Harris 87e20f8067 From Anders Broman: dissect manufacturer information in
"dissect_h225_h221NonStandard()".

svn path=/trunk/; revision=10042
2004-02-11 20:55:02 +00:00
Guy Harris 131be6ce7d Map WTAP_ENCAP_IEEE_802_11_WITH_RADIO to DLT_IEEE802_11, for now; we
could probably map it to one of the many different 802.11+radio headers,
but we should probably just have *one* Wiretap encapsulation for 802.11,
with a radiotap-style list of attributes attached to it.

svn path=/trunk/; revision=10041
2004-02-11 20:47:00 +00:00
Guy Harris 5f7e403326 Include EyeSDN USB S0 trace files in the list of file formats we read.
svn path=/trunk/; revision=10040
2004-02-11 20:30:28 +00:00
Jörg Mayer faf27fecc6 Christian Wagner: Support for the Soul Seek P2P protocol
svn path=/trunk/; revision=10039
2004-02-11 20:23:20 +00:00
Guy Harris 2df960325a From Rolf Fiedler: support for reading EyeSDN USB S0 trace files.
svn path=/trunk/; revision=10038
2004-02-11 20:05:16 +00:00
Guy Harris b2a64dc261 The top-level Makefile.nmake doesn't yet get all the source files from
Makefile.common, so we have to add alert_box.obj to the list of object
files for Ethereal.

svn path=/trunk/; revision=10037
2004-02-11 09:58:13 +00:00
Guy Harris f99bb93e55 Cast "char" values to "guchar" before passing them to <ctype.h> macros,
so that characters with the 8th bit set don't get sign-extended and
cause the macros not to return the right answer.

svn path=/trunk/; revision=10036
2004-02-11 09:19:54 +00:00
Guy Harris 8177fbd550 From Prabhakar Krishnan: dissect NetApp ONTAP file handles.
svn path=/trunk/; revision=10035
2004-02-11 04:34:38 +00:00
Guy Harris 6b1a0bf430 Most taps that now include "tap_menu.h" no longer need to include
<stdio.h> to define FILE; get rid of the include.

svn path=/trunk/; revision=10034
2004-02-11 04:28:49 +00:00
Guy Harris 153428c21d From Michael Lum: add tap for GSM MAP message statistics.
svn path=/trunk/; revision=10033
2004-02-11 04:27:44 +00:00
Guy Harris 9aa32731b9 From Michael Lum: add tap for GSM MAP message statistics.
svn path=/trunk/; revision=10032
2004-02-11 04:19:03 +00:00
Guy Harris 8e4a1c1cc6 Move the declaration of "register_tap_menu_item()" into a new
"tap_menu.h" file, and have the Ethereal taps include that rather than
"menu.h", so we don't have to worry about making sure we've included
<stdio.h> to define FILE, etc. just because some "menu.h" functions
require it.

svn path=/trunk/; revision=10031
2004-02-11 04:17:05 +00:00
Guy Harris 2e4e229739 Get rid of the "Question" alert box type - rename it to "Confirmation",
as that seems to be the name used in the GNOME HIG, at least.  Make it
use the Warning icon (that's what the GNOME HIG says - and it's also
what's used for the equivalent on Windows), and use it for the "Save
current capture?" alert boxes.

svn path=/trunk/; revision=10030
2004-02-11 03:55:48 +00:00
Guy Harris 34349cedcc Give alert boxes an empty title on UN*X and a title of "Ethereal" on
Win32, to match the GNOME HIG on UN*X and the Win32 HIG on Windows (or,
at least, to approximate the Win32 HIG on Windows).

svn path=/trunk/; revision=10029
2004-02-11 03:40:17 +00:00
Guy Harris 75b5cbf585 Replace the "cf_XXX_error_message()" routines with
"cf_XXX_failure_alert_box()" routines that put the alert box up, and
directly call the "alert_box.h" routines for OS errors.

svn path=/trunk/; revision=10028
2004-02-11 02:02:38 +00:00
Guy Harris 3a4e71a724 Add "write_failure_alert_box()" to put up an alert box for a failed
attempt to write to a file (or close a file opened for writing).

Get rid of no-longer-needed #includes of <epan/filesystem.h>.

svn path=/trunk/; revision=10027
2004-02-11 01:37:13 +00:00
Guy Harris 727b913bbd Add an "open_failure_alert_box()" routine to pop up an alert box for a
failed attempt to open/create a file.

Fix one call to pass the right value for the "for_writing" flag.

svn path=/trunk/; revision=10026
2004-02-11 01:23:25 +00:00
Guy Harris c7fd1b2b13 Add a routine to be used to put up alert boxes for invalid display
filter expressions; use that in a number of places, so we use the same
alert box.  (More work is needed to figure out the right way to handle
some other "dfilter_compile()" failures.)

Use the error message from the display filter as the primary error, as
that's the message that tells you what the underlying problem is.  (The
GNOME HIG says "In most situations the user should only need the primary
text to make a quick decision", so the primary text should tell you
what's wrong with the filter, not just that it's invalid.  If there are
messages from the display filter code that don't give enough
information, or are a bit cryptic, such as "Unexpected end of filter
string," those should be fixed in the display filter code.)

Improve the error used if an empty filter is used for "find frame".

svn path=/trunk/; revision=10025
2004-02-11 00:55:28 +00:00
Guy Harris 1f657ec946 From Jaime Fournier: add a bunch of DCE RPC stub dissectors.
svn path=/trunk/; revision=10024
2004-02-10 23:38:34 +00:00
Guy Harris e6adbf5966 Add "tvb_strsize()".
svn path=/trunk/; revision=10023
2004-02-10 23:30:56 +00:00
Ulf Lamping 132c807e39 making the Modern UI the default
svn path=/trunk/; revision=10022
2004-02-10 18:12:40 +00:00
Ulf Lamping 99a49ce529 added help pages "Getting Started" and "Capturing"
svn path=/trunk/; revision=10021
2004-02-10 18:02:38 +00:00
Jörg Mayer f2cfcd15a2 Undo last change for cvsversion.h generation. It causes make to loop on some systems
svn path=/trunk/; revision=10020
2004-02-10 12:11:22 +00:00
Jörg Mayer 70539ced27 Run make-version.pl on every make (at least with gnu make)
svn path=/trunk/; revision=10019
2004-02-10 00:50:04 +00:00
Guy Harris b39b461927 From Anders Broman: fix the decoding of BAT ASE elements with more than
one octet.

svn path=/trunk/; revision=10018
2004-02-09 19:36:19 +00:00
Ulf Lamping 1987113fa6 bugfix: close capture file again, if empty after capturing
(bug appears only, if "update list of packets ..." not used)

svn path=/trunk/; revision=10017
2004-02-09 19:19:19 +00:00
Ulf Lamping 1b9bef2743 bugfix: init the toolbar's Save icons correctly
svn path=/trunk/; revision=10016
2004-02-09 18:32:41 +00:00
Ulf Lamping 1f15fc7bdc minor changes
svn path=/trunk/; revision=10015
2004-02-09 18:25:48 +00:00
Ulf Lamping c001aedfda typo fixed
svn path=/trunk/; revision=10014
2004-02-09 18:23:25 +00:00
Ulf Lamping 62e8b4836e two new help pages:
getting_started for the very first steps running Ethereal
capturing for some explanation how to capture data

svn path=/trunk/; revision=10013
2004-02-09 18:22:28 +00:00
Jörg Mayer a02d03c089 Forgot *.la
svn path=/trunk/; revision=10012
2004-02-09 17:23:59 +00:00
Jörg Mayer 96ad35f100 Ignore shared dll stuff
svn path=/trunk/; revision=10011
2004-02-09 16:49:00 +00:00
Guy Harris 31c636ff4a Cast the arguments to <ctype.h> macros to "guchar", to squelch
"subscript has type `char'" warnings and to make the code work correctly
if there are characters with the 8th bit set.

svn path=/trunk/; revision=10010
2004-02-09 00:06:30 +00:00
Guy Harris a2d69c6fae Add extra {} to "avoid ambiguous `else'", to quote the GCC warning that
this squelches.

svn path=/trunk/; revision=10009
2004-02-09 00:05:35 +00:00
Jörg Mayer 55af6c35c4 Move -pedantic back to extra-gcc-flags, as glib generates more warnings than our code
svn path=/trunk/; revision=10008
2004-02-08 14:11:48 +00:00
Jörg Mayer 5804f15164 Move -pedandic & co back into extra-flags (prepare for dissectors moving to epan/)
svn path=/trunk/; revision=10007
2004-02-08 01:15:53 +00:00
Ulf Lamping f992f12aa4 corrected links to the ethereal.exe for GTK2 version
svn path=/trunk/; revision=10006
2004-02-07 21:47:25 +00:00
Jörg Mayer 43e0297fb7 Put AM_DISABLE_STATIC into the same place as in epan and wiretap
svn path=/trunk/; revision=10005
2004-02-07 06:32:20 +00:00
Jörg Mayer 16970db9af Don't build as shared *and* static by default
svn path=/trunk/; revision=10004
2004-02-07 05:44:08 +00:00
Jörg Mayer 2a1cb9ce0f Ignore byproducts of shared lib compilation
svn path=/trunk/; revision=10003
2004-02-07 04:35:49 +00:00
Guy Harris 6d2f9e38dd Use G_DIR_SEPARATOR_S rather than "/" as the pathname separator when
constructing the pathname of a temporary file, so as not to frighten the
horses when they see an error message for a temporary capture file.

svn path=/trunk/; revision=10002
2004-02-07 04:25:16 +00:00
Guy Harris 75d7c8727b Whether frames in an AiroPeek V9 802.11 capture have 4 bytes of 0 or an
FCS at the end appears to depend on the network subtype value.

svn path=/trunk/; revision=10001
2004-02-06 20:50:44 +00:00