Commit Graph

2465 Commits

Author SHA1 Message Date
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
Gilbert Ramirez ca78ae622c Change #include "wtap-int.h" to #include "wtap.h"
svn path=/trunk/; revision=2434
2000-09-14 11:49:40 +00:00
Gilbert Ramirez e0ec85c1a9 Move to version 0.8.12
svn path=/trunk/; revision=2432
2000-09-14 10:03:51 +00:00
Graham Bloice a4112701ef Added to ignore Win32 detritus
svn path=/trunk/; revision=2431
2000-09-13 22:16:10 +00:00
Graham Bloice 0ae9cce784 Updated to ignore Win32 detritus
svn path=/trunk/; revision=2430
2000-09-13 22:03:52 +00:00
Gilbert Ramirez 2825d16166 Don't put hf_text_only into the tree of filter-able protocols and fields.
svn path=/trunk/; revision=2429
2000-09-13 20:30:48 +00:00
Gilbert Ramirez 89cfd643ff Use another cleanup function to avoid compiler warning.
svn path=/trunk/; revision=2428
2000-09-13 20:30:06 +00:00
Gilbert Ramirez 9b82e16a3c Throw ReportedBoundsError instead of asserting if reported_length < -1.
svn path=/trunk/; revision=2427
2000-09-13 20:17:23 +00:00
Guy Harris a32a960d08 Add an item for Craig Metz's OSPF patches.
svn path=/trunk/; revision=2426
2000-09-13 07:50:13 +00:00
Guy Harris ed185bcdfc Changes from Craig Metz to:
decode type 7 LSAs (NSSA AS external);

	print the LS checksum as a four digit hexadecimal number.

svn path=/trunk/; revision=2425
2000-09-13 07:47:21 +00:00
Guy Harris 6a6c346426 Expand on the item about G_HAVE_GINT64.
svn path=/trunk/; revision=2424
2000-09-12 23:02:09 +00:00
Guy Harris e4fd931dde Add support for NetBSD DLT_PPP_SERIAL, which has the value 50, and which
is, for now, handled as WTAP_ENCAP_PPP (although we may have to split
WTAP_ENCAP_PPP into more than one type at some point).

svn path=/trunk/; revision=2423
2000-09-12 18:35:47 +00:00
Guy Harris cdbb13b070 NULL may be defined as something such as "(void *)0", rather than just
as 0, so don't use it in a ":" operator where the other arm of the
conditional is integral.

svn path=/trunk/; revision=2422
2000-09-12 08:38:44 +00:00
Richard Sharpe fd5db0e98d Add a col_get_writable in case there are any deeply embedded
dissectors that need to change the writable status and restore the
original status.

svn path=/trunk/; revision=2421
2000-09-12 07:04:30 +00:00
Guy Harris 32e939e126 Oops, I left off one "-*" in the XLFD description for the font that is
6x13 on most UNIXes (frankly, I think XLFD should have been hidden very
deeply in the bowels of most X toolkits, and not even exposed to most
programmers, much less to users).

svn path=/trunk/; revision=2420
2000-09-12 06:41:56 +00:00
Guy Harris 0640b5f2ed Include <unistd.h> to declare "close()" and "unlink()".
svn path=/trunk/; revision=2419
2000-09-12 06:28:02 +00:00
Guy Harris 5abf8771fc Fix typos and give more detail on some changes.
svn path=/trunk/; revision=2418
2000-09-12 03:45:03 +00:00
Guy Harris 2cb0b44e1f It's "GSList", not "GSlist".
svn path=/trunk/; revision=2417
2000-09-12 03:28:34 +00:00
Guy Harris 0ea9639f65 Also free the GSLists for per-frame data on frames we haven't
re-dissected on a rescan.

svn path=/trunk/; revision=2416
2000-09-12 03:27:00 +00:00
Gilbert Ramirez b25eafbe00 Add news for upcoming 0.8.12
svn path=/trunk/; revision=2415
2000-09-12 02:56:51 +00:00
Richard Sharpe 5760eb199d This completes the tvbuffication of packet-bxxp.c, in that all the cruft is gone, I think.
I also now handle a lot more of the BXXP protocol, and can handle multiple
messages within a TCP segment. However, captures from the Linux loopback
device confuse things awfully.

svn path=/trunk/; revision=2414
2000-09-12 02:24:19 +00:00
Guy Harris 172638d477 On some UNIX platforms, you need to include <sys/types.h> to get
"u_char" defined.

svn path=/trunk/; revision=2413
2000-09-11 23:31:05 +00:00
Richard Sharpe bf8e6e763f Fix the problem with resetting per-frame state info problems that there
seemed to be ...

svn path=/trunk/; revision=2412
2000-09-11 22:43:02 +00:00
Gilbert Ramirez a85cf466ce Fix build on Win32.
svn path=/trunk/; revision=2411
2000-09-11 20:05:13 +00:00
Gilbert Ramirez 6ddd66e6cf Added #include "strutil.h"
svn path=/trunk/; revision=2410
2000-09-11 16:24:09 +00:00
Gilbert Ramirez 9941aabd64 Move format_text(), get_token_len(), and fine_line_end(), into strutil.c
This keeps tvbuff.c generic; it doesn't have to pull in packet.h and all
of it's included files.

svn path=/trunk/; revision=2409
2000-09-11 16:16:13 +00:00
Richard Sharpe bf98417be0 We have to free up the per-frame data when we rescan, because we have
called packet_init_proto, which blows away the items the list points to.

svn path=/trunk/; revision=2408
2000-09-11 07:33:56 +00:00
Guy Harris 332d5715e8 Compute and display negative relative and delta time stamps correctly,
just in case time goes backwards (yes, it sometimes does happen in
captures).

svn path=/trunk/; revision=2407
2000-09-10 06:44:39 +00:00
Laurent Deniel 6755d16641 Small changes in help windows:
- update overview.
- add a note if packet capture is not available.

svn path=/trunk/; revision=2406
2000-09-09 15:00:36 +00:00
Guy Harris c1b76aa400 In the callback for the "OK" button in the font selection dialog, check
to make sure we can load the font the user selected *and* the font that
would, in theory, be the boldface version of that font; if not, pop up
an error dialog, and don't nuke the font selection dialog (i.e., the
user either has to pick fonts that work, or give up in disgust and click
"Cancel").

Don't set "prefs.gui_font_name" until the "fetch" function is called -
stuff the name in a static variable when the user clicks "OK" in the
font selection dialog.

svn path=/trunk/; revision=2405
2000-09-09 10:35:53 +00:00
Guy Harris f0efbd1a02 "redraw_hex_dump()" can't use "cfile.pd" or "cfile.current_frame", as it
may be redrawing a packet window that displays a frame other than the
current frame; give it arguments to specify the raw frame data and
"frame_data" structure for the frame.

This requires that each packet window have, associated with it, a
pointer to the "frame_data" structure; that replaces the "cap_len" and
"encoding" fields in a "PacketWinData" structure, as those are just
copies of fields from the frame's "frame_data" structure.

"packet_hex_print()" needn't be passed both the start and length values
from a "field_info" structure - just pass it a pointer to that
structure, or NULL for "no field is selected in the packet".  It also
needn't, any longer, be passed the "cap_len" and "flags.encoding" fields
of a "frame_data" structure - just pass it a pointer to that structure.

In "redraw_hex_dump_all()", don't redraw the hex dump pane of the main
window if there is no current frame.

svn path=/trunk/; revision=2404
2000-09-09 10:26:58 +00:00
Guy Harris 6e04ac48f9 Explain why "stream_prefs_apply()" doesn't do anything.
svn path=/trunk/; revision=2403
2000-09-09 10:04:53 +00:00
Guy Harris a11b619f2a "#if 0" out the code that puts "Cut", "Copy", and "Paste" items into the
"Edit" menu, pending the implementation of cut/copy/paste, so that users
don't think that there's something they can do (other than implementing
cut/copy/paste :-)) to be able to use those functions.

svn path=/trunk/; revision=2402
2000-09-09 08:17:51 +00:00
Guy Harris e91341e3c3 Redraw:
the text in all "Follow TCP Stream" windows;

	the text in the help window if we have one up;

	all hex dump windows;

when GUI preference changes are to be applied, so that font changes and
"Follow TCP Stream" color changes show up.

Update both the Roman and bold font when the font is changed.

Don't decrement the reference counts on the old Roman and bold fonts
until that's all done.

svn path=/trunk/; revision=2401
2000-09-08 10:59:21 +00:00