Commit graph

11123 commits

Author SHA1 Message Date
Ronnie Sahlberg
0f1f4361c6 from JBM updates to SAMR CONNECTx
svn path=/trunk/; revision=11224
2004-06-24 05:23:47 +00:00
Ronnie Sahlberg
8bd0783e6b from Tomas K
updates to the asn2eth per/ber compiler

svn path=/trunk/; revision=11223
2004-06-24 05:13:59 +00:00
Ronnie Sahlberg
a87a416a7f The hf field we pass to H235_AuthenticationMechanism is a FT_UINT32 and not a FT_NONE
this finally allows ethereal to successfulkly  dissect the problem h225.cap capture properly.

svn path=/trunk/; revision=11222
2004-06-24 05:05:42 +00:00
Ronnie Sahlberg
2cfc02dca7 dissect_per_sequence_of needs a hf field of type FT_NONE and not FT_UINT32
Fix one instance of this bug and verify all other uses of dissect_per_sequence_of in h225.

Fix one ett field we forgot to initialize.

This fixes the problem reported with a crash earlier.
(ethereal still crashes but now inside the machinegenerated h235 dissector)

svn path=/trunk/; revision=11221
2004-06-24 04:51:12 +00:00
Guy Harris
fee2cf0d28 Add the HTML man pages to the "ignore these files" list.
svn path=/trunk/; revision=11220
2004-06-23 22:17:44 +00:00
Guy Harris
d1103e6d5c "g_malloc()" takes the number of bytes to allocate, not the number of
items to allocate.

svn path=/trunk/; revision=11219
2004-06-23 21:43:02 +00:00
Gilbert Ramirez
65d13f43cf Add paragraph about freeing tvbuffs.
svn path=/trunk/; revision=11218
2004-06-23 15:15:28 +00:00
Guy Harris
fc1023772c Build and install the HTMLized man pages on UN*X.
svn path=/trunk/; revision=11217
2004-06-23 08:39:07 +00:00
Guy Harris
aacb8bc9b6 Add "gtk/webbrowser.h" to declare functions from "gtk/webbrowser.c".
Rename "browser_open_program_file()" to "browser_open_data_file()", and
make it open files relative to the application's data directory, as
that's where data files such as HTMLized man pages would be put.  (That
happens to be the program directory on Windows, but it's a different
directory on UN*X - and you aren't guaranteed to be able to find the
program directory on UN*X by looking at argv[0] in any case.)  Move it
to "gtk/webbrowser.c".

Fix "filename2url()" to put "file://", not just "file:", in front of
pathnames on UN*X.

svn path=/trunk/; revision=11216
2004-06-23 01:38:39 +00:00
Guy Harris
fe40fa191e Mark some unused variables as such.
svn path=/trunk/; revision=11215
2004-06-22 21:51:55 +00:00
Guy Harris
56833f4288 To test whether we can build with OS X frameworks, try building with
those frameworks.

svn path=/trunk/; revision=11214
2004-06-22 21:15:41 +00:00
Ulf Lamping
eab0af6659 add functionality, to show html files from the local installation
svn path=/trunk/; revision=11213
2004-06-22 16:28:27 +00:00
Gerald Combs
00a2183711 Handle cases where PRI[doxu]64 is defined, but u_int64_t isn't. (Solaris 8
only defines uint64_t, for example).

svn path=/trunk/; revision=11212
2004-06-22 15:18:45 +00:00
Ulf Lamping
256f174ed4 add Henrik Brix Andersen as the original author of webbrowser.c
svn path=/trunk/; revision=11211
2004-06-22 05:45:59 +00:00
Guy Harris
11a2f11698 "Home page" is typically two words.
svn path=/trunk/; revision=11210
2004-06-22 01:11:14 +00:00
Guy Harris
26664e5665 Style tweaks, and finish an unfinished comment.
svn path=/trunk/; revision=11209
2004-06-22 01:00:02 +00:00
Guy Harris
9bb3e4cf9e On Mac OS X, use Launch Services to start a Web browser with a given URL.
svn path=/trunk/; revision=11208
2004-06-22 00:40:03 +00:00
Michael Tüxen
388af2fccb Change type of argument of dnd_open_file_cmd to get ethereal compiled.
svn path=/trunk/; revision=11207
2004-06-21 20:12:45 +00:00
Ulf Lamping
2a6da1361c Add experimental feature of opening a webbrowser, to show some of the
webpages from http://www.ethereal.com. This functionality is copied from
the Gimp.
Win32 will use ShellExecute to use the system registered webbrowser.
On unix builds, currently the mozilla browser is hardcoded, we still need a
preference setting for this (I will add this later).

svn path=/trunk/; revision=11206
2004-06-21 17:27:35 +00:00
Ulf Lamping
5c061e582e if more than one file is (drag and) dropped into the program,
merge them together into a new temporary file
(and notice the user by a simple_dialog about it)

svn path=/trunk/; revision=11205
2004-06-21 16:45:07 +00:00
Gerald Combs
c10d97d8e3 Change to GLib 2.4.2 and GTK+ 2.4.3.
svn path=/trunk/; revision=11204
2004-06-21 15:57:50 +00:00
Jörg Mayer
2a08db4349 Remove trailing comma at end of enum
svn path=/trunk/; revision=11203
2004-06-21 10:53:35 +00:00
Ulf Lamping
527ad5b35d use the "correct" resize function for the file selection dialog
svn path=/trunk/; revision=11202
2004-06-21 05:48:15 +00:00
Ulf Lamping
4ee816d884 add GTK2.4 and alike libs to the setup target,
depending on settings in config.nmake

svn path=/trunk/; revision=11201
2004-06-20 20:28:23 +00:00
Ulf Lamping
3e66de1895 add GTK2.4 and alike libs to the setup target,
depending on settings in config.nmake

svn path=/trunk/; revision=11200
2004-06-20 20:22:09 +00:00
Ulf Lamping
13280b6e38 bugfix: is using last_open_dir with GTK2.4 file chooser
gtk_file_chooser_set_current_folder() is very pedantic of it's parameter,
trim filename so it will be accepted.

svn path=/trunk/; revision=11199
2004-06-20 19:35:04 +00:00
Guy Harris
b4e1ad58fc In "show_fragment()", use common code to put the top-level entry into
the protocol tree for the fragment, regardless of whether the fragment
has any flags set or not, and, in that common code, handle fragments
with 0 bytes of data specially (at least in NDS, you can get zero-length
fragments - including the last fragment, so you can't just ignore those
fragments; the last fragment has to be added to finish off the
reassembly).

svn path=/trunk/; revision=11198
2004-06-20 19:20:55 +00:00
Ulf Lamping
2c59ab145d bugfix: handle NULL pointer correct,
if gtk_file_chooser_get_filename returned NULL

svn path=/trunk/; revision=11197
2004-06-20 18:36:16 +00:00
Ulf Lamping
c5bae1f7e3 preference setting, so "ask for unsaved capture files" can be switched off
svn path=/trunk/; revision=11196
2004-06-20 15:57:11 +00:00
Ulf Lamping
17ca623b0f preference setting for the option to "avoid" the capture info dialog
svn path=/trunk/; revision=11195
2004-06-20 14:48:24 +00:00
Ulf Lamping
7e8187df20 added an option to "avoid" the capture info dialog completely.
This matters for "update of list in real time" (sync_mode) only,
as in normal mode you wouldn't otherwise have the possibility
to stop the capture.

svn path=/trunk/; revision=11194
2004-06-20 13:39:44 +00:00
Ulf Lamping
a85e91903a add merge.obj to the linking of mergecap.exe
svn path=/trunk/; revision=11193
2004-06-20 09:49:36 +00:00
Ulf Lamping
f098b90832 preview: add 3 seconds timeout, and show the information got so far.
This will prevent getting the preview information take a lot of time for
*very* long capture files. However, on a Pentium-M 1.6 even a 35MB
capture file will not timeout in this 3 second interval.

svn path=/trunk/; revision=11192
2004-06-20 09:35:51 +00:00
Ulf Lamping
7812b42c24 bugfix: prefix for int64 output on win32 must be "I64" not "i64"
svn path=/trunk/; revision=11191
2004-06-20 09:31:48 +00:00
Guy Harris
1d2413f4a3 Include <string.h> to declare "strlen()".
Make "cf_name" a "const gchar *", as, at least in GTK+ 2.x, a "const
gchar *" is assigned to it.  (If it's just a "gchar *" being assigned to
it, declaring it a "const gchar *" does no harm.)

svn path=/trunk/; revision=11190
2004-06-20 07:28:02 +00:00
Guy Harris
894c4e445c Make the elapsed time value an "unsigned int" (if the stop time is
before the start time, due to packet time stamp bogosity, neither a
signed value nor an unsigned value will give a sensible answer, and it
doesn't need to be a "long" as the capture's unlikely to span more than
2^32-1 seconds, again modulo packet time stamp bogosity).  That
eliminates some format item vs. value warnings.

Make the packet count an "unsigned int" (it can't be negative, and we're
unlikely to have more than 2^32-1 packets - and, if we are, it should be
made a guint64).  That eliminates some more format item vs. value
warnings.

Initialize "start_time" and "stop_time" to 0, so that we handle files
with no packets (and so that we don't get uninitialized variable
warnings).

Display the file size with PRIu64, after casting it to "guint64" (that
way we handle file sizes if they're "unsigned int", "unsigned long", or
a 64-bit type on ILP64 platforms (it's 64 bits in BSDs derived from
4.4BSD, even on ILP64 platforms).

Mark the first argument to "file_open_entry_changed()" as unused.

Don't use G_CONST_RETURN, as it's not defined by GLib 1.2[.x].

Get rid of an unused variable.

Clean up white space.

svn path=/trunk/; revision=11189
2004-06-20 03:05:57 +00:00
Guy Harris
5b96828900 The sequence number in COTP packets is either unused (for TP0) or
relative to the beginning of the connection (for TP1-4).  They are *not*
relative to the first segment of a segmented TPDU, so the sequence
number can't be used in calls to "fragment_add_seq_check()".

For now, we assume that COTP packets are seen in order, and just use
"fragment_add_seq_next()" - that's unlikely to make anything worse (the
only time when "fragment_add_seq_check()" will work is when the first
segment has a sequence number of 0), and definitely fixes reassembly in
a number of cases.  In the long term, we might want to handle
out-of-order packets above the reassembly layer, so that it handles even
out-of-order unsegmented packets.

svn path=/trunk/; revision=11188
2004-06-20 01:05:07 +00:00
Ulf Lamping
915f02d0f5 add preview information to the open and merge dialog boxes
svn path=/trunk/; revision=11187
2004-06-19 10:48:06 +00:00
Guy Harris
b93965db56 From Dennis Lim: add routines used by dissectors for ONC RPC protocols
to the plugin API.

Add them to the list of routines exported from the libethereal DLL on
Windows as well.

svn path=/trunk/; revision=11186
2004-06-19 10:13:52 +00:00
Guy Harris
4c9a7c3c87 From Carles Kishimoto: add support for GMPLS extensions, as per the I-D
draft-ietf-ccamp-ospf-gmpls-extensions-12.

svn path=/trunk/; revision=11185
2004-06-19 09:48:49 +00:00
Guy Harris
7c1556c1fe If the user hasn't explicitly said they want to build with Heimdal,
don't *require* them to have "krb5.h" - if they don't have it, don't
build with Heimdal.

svn path=/trunk/; revision=11184
2004-06-19 04:12:56 +00:00
Guy Harris
f9dbc641e5 From Thomas Anders: display the Security Parameter Lifetime as a
relative time string rather than raw seconds.

svn path=/trunk/; revision=11183
2004-06-19 04:10:33 +00:00
Guy Harris
7002776572 Pick up the stuff I did for tcpdump to figure out the right strings to
use to format 64-bit integers.

Fix the RSVP dissector to use that rather than hardcoding "%ll" in.

Remove the "only if G_HAVE_GINT64 is defined" bit from the discussion of
64-bit integers - we're too dependent on having them to support
compilers that don't have a 64-bit integral data type.  Do, however,
note that neither "long" nor "long long" are acceptable, and also note
that you shouldn't assume "%ll" does the trick for printing them.

svn path=/trunk/; revision=11182
2004-06-19 00:07:23 +00:00
Guy Harris
641a9fbf47 "ti_time" is a "time_t", not a "long" ("time_t" isn't necessarily a
"long").

Make "elapsed_time" an "unsigned int" rather than an "unsigned long" -
2^32-1 seconds is about 136 years, so on LP64 machines that won't
matter, and on ILP32 machines it doesn't make any difference, but it
*does* generate compiler warnings from "%u" being used with "unsigned
long" values.

svn path=/trunk/; revision=11181
2004-06-18 20:23:10 +00:00
Jörg Mayer
e4a45b0a98 Add local MAC addresses for MS-Loadbalancing (not all, see comment in wka.tmpl)
Update manuf

svn path=/trunk/; revision=11180
2004-06-18 14:27:13 +00:00
Ulf Lamping
14a5228639 add timestamp of first and last packet to summary dialog
svn path=/trunk/; revision=11179
2004-06-18 14:11:09 +00:00
Jörg Mayer
4651530481 Add the kerberos linking options to the right magic variable
svn path=/trunk/; revision=11178
2004-06-18 12:19:24 +00:00
Jörg Mayer
a3b7664597 Fix compile errors on Suse 9.1:
- It's gboolean not boolean
Fix warning about extraneous , at end of enum.

svn path=/trunk/; revision=11177
2004-06-18 12:04:49 +00:00
Ulf Lamping
a43f7d1f88 merge: remove code duplication in merge.c and mergecap.c (put it in merge.c),
and doing some more code cleanup

svn path=/trunk/; revision=11176
2004-06-18 10:01:59 +00:00
Ulf Lamping
fa46f7a6db merge: bugfixes and code cleanup
svn path=/trunk/; revision=11175
2004-06-18 07:41:21 +00:00