Commit Graph

2465 Commits

Author SHA1 Message Date
Guy Harris fc1ed4cd4b Do checks for platform-specific compiler flags in the libethereal and
wiretap configure scripts as well as in the main configure script.

svn path=/trunk/; revision=2501
2000-10-17 07:30:35 +00:00
Guy Harris 81c030d01a Wiretap no longer works with "GLib 1.0[.x]" (the version that came
bundled with GTK+ 1.0[.x]), it works only with 1.2[.x] and later, so we
no longer need to check for 1.0[.x] and define HAVE_GLIB10.

svn path=/trunk/; revision=2500
2000-10-17 00:09:43 +00:00
Guy Harris 65102add6c Make the top-level configure script descend into epan to run the
configure script there, now that libethereal has its own configure
script.

svn path=/trunk/; revision=2499
2000-10-16 23:50:02 +00:00
Guy Harris cba377df3c Give libethereal its own configuration file, and have that configuration
file, rather than the top-level Ethereal configuration file, check for
"inet_aton()", "inet_pton()", and "inet_ntop()".  Then make its
Makefile.am include the appropriate object files if necessary.
Otherwise, they don't get built and put into libethereal, and therefore
attempts to link with anything in libethereal that uses them fail on
platforms that lack ethem, causing the build to fail.

That means a bunch of things need to be fixed to cope with libethereal
having its own "config.h" file; this means removing the include of
"config.h" from some libethereal header files.  Move the definitions of
the path names used only by "resolv.c" to "resolv.c" from "resolv.h" (so
"resolv.h" doesn't need "config.h", define HAVE_PLUGINS in the configure
script (so we don't have to include it in "plugins.h" to check whether
HAVE_DLFCN_H is defined).

Unfortunately, stuff outside libethereal needs to know PLUGIN_DIR; for
now, define that in the top-level configuration file, and have Ethereal
and Tethereal pass it as an argument to "epan_init()" - that should be
cleaned up at some point.

Remove from the top-level configure script checks for things used only
in libethereal.

svn path=/trunk/; revision=2498
2000-10-16 23:18:05 +00:00
Gilbert Ramirez cb0a63c8e7 Complete the COPS dissector. Heikki Vatiainen <hessu@cs.tut.fi>
svn path=/trunk/; revision=2497
2000-10-16 14:05:08 +00:00
Guy Harris 8916192b86 At least on UNIX/X, make the wildcard pattern that's the initial
fixed-width font preference match only ISO 8859/1 fonts, so that we
don't match ISO 10646 fonts (as happens on some systems).  Users will
have to select a font with the appropriate character set encoding if
they don't want stuff displayed as 8859/1 (note that making the widgets
that use the fixed-width font handle arbitrary character sets is
probably a non-trivial task, given that the *dissectors* will also have
to handle arbitrary character sets, and that the character set used in a
given packet isn't necessarily the character set in the user's locale).

svn path=/trunk/; revision=2496
2000-10-15 08:46:18 +00:00
Gilbert Ramirez 3762a64fce Fix for inet*.[ch] move.
svn path=/trunk/; revision=2495
2000-10-14 05:11:11 +00:00
Gilbert Ramirez 26bda31ed9 Move inet_*.[ch] files to epan.
svn path=/trunk/; revision=2494
2000-10-14 04:31:26 +00:00
Gilbert Ramirez b3f64359bb Check for python before configuring CVS sources.
svn path=/trunk/; revision=2493
2000-10-14 04:09:04 +00:00
Gilbert Ramirez aff507ff0a While keeping the directory named 'epan' and the symbols in the library
starting with "epan_", change the name of the library from libepan.a to
libethereal.a, and from libepan.lib to ethereal.lib.

svn path=/trunk/; revision=2492
2000-10-14 03:53:25 +00:00
Gilbert Ramirez 96f2111b11 Look for gmodule*.lib in a directory "gmodule" in the glib distribution.
svn path=/trunk/; revision=2491
2000-10-14 03:20:55 +00:00
Gilbert Ramirez cfe9eb12ad Give Ulrich Kiermayr credit for his ECN addition.
svn path=/trunk/; revision=2490
2000-10-12 15:05:27 +00:00
Gilbert Ramirez 8ff757bcac Don't loop infinitely on options with zero length.
From Santeri Paavolainen.

svn path=/trunk/; revision=2489
2000-10-12 14:58:02 +00:00
Guy Harris faf70584f2 Fix it to build on Windows.
svn path=/trunk/; revision=2488
2000-10-11 07:35:02 +00:00
Guy Harris 54ecbe2d4e Santeri Paavolainen's patch to add a "Capture->Stop" menu item to let
you stop an "Update list of packets in real time" capture from the main
window as well as from the capture statistics dialog.

svn path=/trunk/; revision=2487
2000-10-11 06:01:16 +00:00
Guy Harris 788a6283ff DNS updates from Brian Wellington.
svn path=/trunk/; revision=2486
2000-10-11 04:12:06 +00:00
Guy Harris 677abe54e1 Add support for modal message boxes ("simple dialog").
Make the message boxes popped up for errors when selecting a font modal,
so that the user has to say "yes, I know, I'll do better next time"
before hitting "OK" again, so that you don't get a pile of message
boxes.

svn path=/trunk/; revision=2485
2000-10-09 06:38:36 +00:00
Guy Harris fedb22f414 It appears there's no guarantee that you'll actually get a font name
from a font selection dialog box; check for a null pointer and, if so,
let the user know and don't dismiss the font selection dialog.

svn path=/trunk/; revision=2484
2000-10-09 06:28:49 +00:00
Richard Sharpe aa72e65a19 Adding a small attribution to Invisible Worlds and Collab.Net as the
sponsors of the BXXP dissector ...

svn path=/trunk/; revision=2483
2000-10-09 03:36:15 +00:00
Gerald Combs 893db6fd12 Update documentation URLs.
svn path=/trunk/; revision=2482
2000-10-09 03:10:01 +00:00
Gerald Combs e61373a7c1 Change addresses from ethereal.zing.org to www.ethereal.com.
svn path=/trunk/; revision=2481
2000-10-08 17:16:29 +00:00
Guy Harris f9daf4932d Patch from Jack Keane to keep the dissector from looping infintely on
malformed packets.

svn path=/trunk/; revision=2480
2000-10-07 06:58:39 +00:00
Richard Sharpe 11f7f66515 Squash one more little bug where I wasn't handling the MIME header
properly if a BXXP message occurrect after a SEQ but in the same segment.

svn path=/trunk/; revision=2479
2000-10-07 04:48:40 +00:00
Gilbert Ramirez e69b5278aa Implement epan_dissect_new() and epan_dissect_free(). These are the
"top-level" dissectors that libepan-users call, instead of dissect_packet().
The epan_dissect_t holds the tvbuff after dissection so that the tvbuff's
memory is not cleared until after the proto_tree is freed. (I might stuff
the proto_tree into the epan_dissect_t, too).

What remains of dissect_packet() in packet.c handles the tvbuff initialiation.
The real meat of dissect_packet() is now in dissect_frame(), in packet-frame.c
This means that "packet.c" is no longer a dissector, os it is no longer
passed to make-reg-dotc.

Once dissect_fddi() gets two wrapper functions (dissect_fddi_swapped()
and dissect_fddi_nonswapped()), the a dissector handoff routine could
be used instead of the switch statement in dissect_frame(). I'd register
a field like "wtap.encap"

svn path=/trunk/; revision=2478
2000-10-06 10:11:40 +00:00
Richard Sharpe e735d485ae Added further state keeping so I can distinguish the first message from
continuations, as only the first has a MIME header.

svn path=/trunk/; revision=2477
2000-10-05 13:13:49 +00:00
Guy Harris 19a14b9e67 Assignments for SHA2 and AES encryption and data integrity schemes, from
Yaniv Kaul.

svn path=/trunk/; revision=2476
2000-10-03 22:49:46 +00:00
Richard Sharpe 2f6a09a1f0 Updates to allow CR and LF to be used (incorrectly) as terminators and to
be flagged as incorrect terminators. These allow people who are developing
implementations of the protocol to see where they have gone wrong.

svn path=/trunk/; revision=2475
2000-10-03 10:59:10 +00:00
Gilbert Ramirez 6b006c76a4 Don't trust data in packet.
svn path=/trunk/; revision=2474
2000-10-02 18:38:50 +00:00
Guy Harris 7df9d99be6 A6 and DNAME resource record support, and RFC 2673 bitstring label
support, from Per Flock.

svn path=/trunk/; revision=2473
2000-10-02 17:42:38 +00:00
Richard Sharpe 91ef04abdf Add some clean up to the bxxp dissector and really handle all packets on
the first pass.

This got to be really ugly, as I now push the test for a tree all the way
down into a lot of routines and parse the messages, but only add things to
the protocol tree if we were passed a protocol tree.

svn path=/trunk/; revision=2472
2000-10-02 01:44:58 +00:00
Olivier Abad 22031f399d - HAVE_PLUGINS is defined in plugins.h so it must be included here.
- get rid of the "epan" argument for init_plugins()

svn path=/trunk/; revision=2471
2000-09-30 10:19:01 +00:00
Guy Harris 807cadc059 Don't put any "\r" and/or "\n" at the end of an RTSP request or reply
into the "Info" column.

svn path=/trunk/; revision=2470
2000-09-30 05:46:27 +00:00
Guy Harris 213e7d9360 If a line consists *solely* of an LF, set "*eol" to point to the LF.
svn path=/trunk/; revision=2469
2000-09-30 05:44:48 +00:00
Guy Harris 041981783b Don't put any "\r" and/or "\n" at the end of an HTTP request or reply
into the "Info" column.

svn path=/trunk/; revision=2468
2000-09-30 05:37:07 +00:00
Guy Harris 691b2f0244 When displaying Telnet data, split it into lines (perhaps not ideal if
you're doing full-screen stuff or binary data, but splitting it based on
"\r" and/or "\n" probably necessarily make things worse, and it
definitely makes things better if you're doing line-at-a-time text).

svn path=/trunk/; revision=2467
2000-09-29 19:06:12 +00:00
Guy Harris bdca198efb Dynamically grow the buffer used by "format_text()", rather than cutting
the text off at 62 characters.

svn path=/trunk/; revision=2466
2000-09-29 19:02:37 +00:00
Guy Harris a77f7b812d Make it clearer what it means for the glib and gtk DLLs to be in your
path, so that users don't think they should add the pathnames of the
DLLs to their path, but should add the pathnames of the directories in
which those DLLs live to their path.

svn path=/trunk/; revision=2465
2000-09-29 06:30:31 +00:00
Gilbert Ramirez e942fe5f31 Add string representation for WTAP_ENCAP_PPP_WITH_PHDR
svn path=/trunk/; revision=2464
2000-09-28 04:19:09 +00:00
Gilbert Ramirez 0efe324371 Simple code movement.
svn path=/trunk/; revision=2463
2000-09-28 03:52:12 +00:00
Gilbert Ramirez df710d82c7 Simple code movement to epan.
svn path=/trunk/; revision=2462
2000-09-28 03:28:54 +00:00
Gilbert Ramirez 9d9850f209 More EPAN-related code movements. Get rid of usage of #include "globals.h"
and #include "util.h" from epan code. Move get_home_dir() into epan/filesystem.c
as it's used by plugins.c.

svn path=/trunk/; revision=2461
2000-09-28 03:16:29 +00:00
Gilbert Ramirez cba2930d6b Move packet.[ch] to epan
svn path=/trunk/; revision=2460
2000-09-27 05:18:06 +00:00
Gilbert Ramirez 137fa6c00e Fix for bug in lex command.
svn path=/trunk/; revision=2459
2000-09-27 05:05:32 +00:00
Gilbert Ramirez 83ec54675c First step in moving core Ethereal routines to libepan.
svn path=/trunk/; revision=2458
2000-09-27 04:55:05 +00:00
Guy Harris f881e13932 Windows Sniffers appear to write out ATM traces with a network type of
8, which is NDIS's ATM type.  At least one capture appears to have
LLC-encapsulated frames in it; for now, we'll map it to
WTAP_ENCAP_ATM_RFC1483 - and make Ethereal dissect
WTAP_ENCAP_ATM_RFC1483 by handing the frames to "dissect_llc()".

While we're at it, we'll have Ethereal panic if handed a Wiretap packet
type it doesn't dissect, rather than giving you a rather blank
dissection.

svn path=/trunk/; revision=2457
2000-09-23 05:58:26 +00:00
Gilbert Ramirez 28ac31a634 Move #included C code from an *.h file to an *.inc file.
svn path=/trunk/; revision=2456
2000-09-22 16:37:50 +00:00
Gilbert Ramirez c312f69abc Make sure to pass the sent/received direction from pppdump.c in
pseudo_header.
Use generic "p2p_phdr" instead of "lapd_phdr". Modify toshiba.c and
packet-lapd.c to take that into account.
Add frame.p2p_dir, a filterable field, 0=sent, 1=recvd
Make p2p_dir available in packe_info, as I think it will be needed
in VJ COMP and UNCOMP dissection.

Rename WTAP_ENCAP_TR to WTAP_ENCAP_TOKEN_RING.

Mention pppd-log support in man page.
Mention atmsnoop in README.

svn path=/trunk/; revision=2455
2000-09-21 04:41:37 +00:00
Guy Harris 66752e74e9 In "dissect_tcp()", compute the payload length of a TCP segment and use
that value later, rather than computing it several times.

svn path=/trunk/; revision=2454
2000-09-21 00:55:02 +00:00
Guy Harris 1231440943 If I ever again have to compute the sequence number of the first byte
after a TCP segment, so I can see what stuff some other segment is
ACKing, I'll go crazy.  Add a "Next sequence number" field to the TCP
dissection, giving exactly that (well, giving exactly that unless the
TCP segment is in a fragmented IP datagram, but hopefully those are
rare; when we support IP fragment reassembly, we can fix that).

svn path=/trunk/; revision=2453
2000-09-21 00:44:09 +00:00
Gilbert Ramirez 565a28497a Mention support for reading pppd log files.
svn path=/trunk/; revision=2452
2000-09-20 12:09:52 +00:00