Commit Graph

2598 Commits

Author SHA1 Message Date
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
Guy Harris 2ef47f9ccb Give Tethereal a "-l" flag, as tcpdump has, to make the standard output
line-buffered.

svn path=/trunk/; revision=2451
2000-09-20 08:28:54 +00:00
Gilbert Ramirez e0139fc43b Oh well, get rid of the debug printf's.
svn path=/trunk/; revision=2450
2000-09-19 17:35:08 +00:00
Gilbert Ramirez 8fa85bbd2f Add pppdump.obj to win32 makefile.
svn path=/trunk/; revision=2449
2000-09-19 17:27:08 +00:00
Gilbert Ramirez e191760a7b Add support for reading pppd log files in wiretap.
svn path=/trunk/; revision=2448
2000-09-19 17:22:11 +00:00
Guy Harris 706bd5e1fc Shomiti Surveyor 3.x appears to have changed the version number in the
file header to 4; fortunately, as they appear to put their extensions to
snoop into the padding at the end of the record, all their capture files
look alike to programs such as snoop and Ethereal that ignore the
padding, so we can just treat version 4 just like version 2 (unless and
until Brent decides a new snoop format is called for, changes the record
header, and picks a version number that's the same as one used by
Shomiti).

svn path=/trunk/; revision=2447
2000-09-19 05:12:11 +00:00
Gilbert Ramirez 348ee93844 Move the dlclose() of libsnmp_handle into the libsnmp_handle != NULL
block.

svn path=/trunk/; revision=2446
2000-09-19 02:25:17 +00:00
Guy Harris 67983abe66 The correct way to check for an error (rather than an EOF) from a failed
attempt to read from a capture file is to check whether the error
returned was 0 - if it is, it's an EOF.  We no longer guarantee that the
data offset supplied will be negative on an error and 0 on an EOF.

svn path=/trunk/; revision=2445
2000-09-17 07:58:39 +00:00
Guy Harris 726da14b05 Close the handle for the SNMP library after we're done with it - shared
objects are reference-counted so that won't make it disappear if
Ethereal is also linked with it as a shared SNMP library.

svn path=/trunk/; revision=2444
2000-09-17 07:50:35 +00:00
Guy Harris b3bffc4741 Close the handle for the SNMP library after we're done with it - shared
objects are reference-counted so that won't make it disappear if
Ethereal is also linked with it as a shared SNMP library.

svn path=/trunk/; revision=2443
2000-09-17 07:23:44 +00:00
Guy Harris d0caa40dec libpcap unconditionally includes <net/if.h> on UNIX systems, as that is,
as far as I know, the only way to get IFF_UP, IFF_LOOPBACK, "struct
ifreq", and "struct ifconf" defined, and those are required in order to
get, via SIOCGIFCONF, the interface list, and to exclude interfaces that
aren't up and handle loopback interfaces differently from other
interfaces.

If we're on UNIX and have libpcap, we should do the same; that way, if
the system doesn't have <net/if.h> installed, the compile will fail with
an "I can't find <net/if.h>" error, rather than the configure indicating
that <net/if.h> can't be found, causing "util.c" not to include it,
causing it to fail with complaints about IFF_UP, IFF_LOOPBACK, and
various structures not being defined - the former tells you the root
cause, the latter doesn't.

svn path=/trunk/; revision=2442
2000-09-17 03:20:05 +00:00
Richard Sharpe 7924dd26fa Apply the patch for ECN in the IP header from
Ulrich Kiermayr <kie@thp.univie.ac.at>

svn path=/trunk/; revision=2441
2000-09-16 00:48:43 +00:00
Guy Harris 6eccd35505 Code to read capture files from some version of tcpdump from some sort
of Nokia box (firewall) - yep, it's yet *another* mutant libpcap format
that didn't change the magic number, sigh....

svn path=/trunk/; revision=2440
2000-09-15 07:52:43 +00:00
Guy Harris 00b4224ee0 Add a "-p" command-line option, and a checkbox in the "Capture
Preferences" dialog box, to control whether to put the interface in
promiscuous mode or not; Debian bug #34376 asked for this.

svn path=/trunk/; revision=2439
2000-09-15 05:32:49 +00:00
Graham Bloice f30b84ce23 Corrected startup // shutdown of windows sockets to allow name resolution to work
svn path=/trunk/; revision=2438
2000-09-14 22:59:08 +00:00
Gilbert Ramirez d25fec74f4 Show CWR and ECN flags in TCP. Ulrich Kiermayr <kie@thp.univie.ac.at>
svn path=/trunk/; revision=2437
2000-09-14 21:58:48 +00:00
Gilbert Ramirez 7471b7daae TVBUFF_SUBSET constructor shouldn't die when cleaning up after
a thrown ReportedBoundsError.

svn path=/trunk/; revision=2436
2000-09-14 16:04:28 +00:00
Gilbert Ramirez 65a619fb19 Move BSWAP32 definition from packet-null.c to pint.h. Add more
macros (from wiretap) to pint.h

svn path=/trunk/; revision=2435
2000-09-14 11:50:59 +00:00