Commit Graph

1567 Commits

Author SHA1 Message Date
Guy Harris 6e8ab029fc Note that capture filters don't work on Linux loopback devices with the
current version of libpcap.

svn path=/trunk/; revision=1592
2000-02-01 21:21:47 +00:00
Gilbert Ramirez 1c751dbe7b Move to version 0.8.3.
svn path=/trunk/; revision=1591
2000-02-01 14:12:20 +00:00
Gilbert Ramirez ac833a257b Remove libltdl sources.
svn path=/trunk/; revision=1590
2000-02-01 14:03:47 +00:00
Guy Harris 67c78197e3 Dissect packets to or from port 162 as SNMP packets - that's the port to
which SNMP traps are sent.  Thanks and a tip of the Hatlo Hat to Craig
Rodrigues for discovering this.

svn path=/trunk/; revision=1589
2000-02-01 04:13:47 +00:00
Olivier Abad fa8b170ac9 In init_plugins(), before scanning PLUGIN_DIR :
do a "stat" on PLUGIN_DIR, /usr/lib/ethereal/plugins/0.8 and
/usr/local/lib/ethereal/plugins/0.8 and compare st_dev and st_ino to be
sure that PLUGIN_DIR is different from the others (and not a symlink which
would cause a "plugin found in multiple directories" warning).

svn path=/trunk/; revision=1588
2000-01-31 19:50:58 +00:00
Gilbert Ramirez 7e49f55670 Add a semicolon in a win32 block of code.
svn path=/trunk/; revision=1587
2000-01-31 19:34:25 +00:00
Nathan Neulinger f44e0c9b9d added support for clicking capture window's close box to stop capture
svn path=/trunk/; revision=1586
2000-01-30 17:10:29 +00:00
Nathan Neulinger 53db0d5587 Added ethereal_static extra target in Makefile.am. Did not add the updates
to configure.in. This should allow someone to do 'make ethereal_static' and
get a staticly built copy of ethereal w/o plugin support on platforms that
support -Wl,-static for static linking.

svn path=/trunk/; revision=1585
2000-01-30 16:57:20 +00:00
Guy Harris 4494fa53a8 Dissect the user data of an incoming CALL REQUEST/INCOMING CALL packet
as per X.224 and X.264.

svn path=/trunk/; revision=1584
2000-01-30 05:58:02 +00:00
Guy Harris 31ff2ea5f1 Add a bunch of additional NLPIDs from ISO 9577.
svn path=/trunk/; revision=1583
2000-01-30 05:50:02 +00:00
Guy Harris 0c57cfd820 Just pass the return value of "getuid()" directly on to "getpwuid()";
don't stuff it into a variable.

svn path=/trunk/; revision=1582
2000-01-29 20:04:23 +00:00
Guy Harris 8e5f407346 Fix #ifndef line whose symbol had been omitted.
svn path=/trunk/; revision=1581
2000-01-29 19:08:12 +00:00
Guy Harris f292c583bf Don't put "get_home_dir()" inside #ifdef HAVE_LIBPCAP/#endif.
On UNIX, if "$HOME" isn't set, try getting the user ID and the password
entry for that user ID, and, if that succeeds, get the home directory
from the password entry, otherwise use "/tmp".  On NT, it may be
possible to do something similar (get the user name, and append that to
"C:\winnt\profiles\"); I'm not sure whether there's anything that can be
done on Windows 9x.

svn path=/trunk/; revision=1580
2000-01-29 19:06:59 +00:00
Gilbert Ramirez ea8136cd8e Remove instances of getenv("HOME") and provide a get_home_dir() function
which provides a default value if "HOME" is not set.

svn path=/trunk/; revision=1579
2000-01-29 16:41:28 +00:00
Gilbert Ramirez 18d8686647 I forgot to toggle the data_out_file "semaphore" (well, we us it like one)
at the end of follow_read_stream(), which causes a segfault if you change
the TCP Follow screen to EBCDIC, and then go back and select a TCP packet.

svn path=/trunk/; revision=1578
2000-01-29 13:30:08 +00:00
Guy Harris 1a9d19e2b0 The user data in an X.25 call request packet is - at least for IP and,
if I correctly read the Windows NT DDK documentation on WAN drivers, for
PPP as well - an ISO NLPID, so use the "nlpid.h" values where they
exist.

Currently doesn't treat NLPID_PPP as PPP, but if we get a PPP-over-X.25
capture, we may find that it should do so.

svn path=/trunk/; revision=1577
2000-01-29 09:19:02 +00:00
Gilbert Ramirez 65b4006f46 Support for NetXray 3.03 (the program version, not file version) PPP
traces. The trace we got from Tom Poe (tomp@intrex.net) contains PPP
data which NetXRay has transformed into looking like Ethernet frames.
The hardware addresses are the bytes for the ASCII reprsentation of
"SRC" and "DEST", with null pad bytes at the end. Interesting.

svn path=/trunk/; revision=1576
2000-01-29 05:10:06 +00:00
Gilbert Ramirez ecd8d95e09 Fix a bug in the extraction of the sequence number.
svn path=/trunk/; revision=1575
2000-01-29 04:47:34 +00:00
Gilbert Ramirez 15ccb155f8 If a file is opened, and then closed, the File|Open option doesn't
show up any more (nor does the Capture option). Fixed.

svn path=/trunk/; revision=1574
2000-01-27 09:53:50 +00:00
Guy Harris 4410e4274c TFTP Option Extension (RFC 2347) support, from Craig Newell.
svn path=/trunk/; revision=1573
2000-01-27 07:09:45 +00:00
Guy Harris ba520e3c93 In case the "ts" field of a libpcap per-packet header isn't a "struct
timeval" (if, say, it's a "struct bpf_timeval", with member sizes wired
to 32 bits, as it appears to be in SuSE 6.3 and will, I think, be in the
0.5 release of libpcap), copy the members of that field to the "ts"
field of the Wiretap per-packet header (which also lets us make it not a
"struct timeval" as well).

svn path=/trunk/; revision=1572
2000-01-26 23:09:21 +00:00
Guy Harris 9f458a52fc Always declare, and define, "file_seek()" to return a "long", as it's
supposed to look like "ftell()".

If you don't have zlib, just define "file_seek" as an alias for "fseek",
rather than defining it as a routine.

svn path=/trunk/; revision=1571
2000-01-26 19:22:04 +00:00
Uwe Girlich 0c64bc4400 Corrected a SEGFAULT in v2 readdir reply, v3 readdir reply, and v3 readdirplus
reply. It came in with the new dissect_rpc_string() with gives the string
back.

svn path=/trunk/; revision=1570
2000-01-26 09:52:42 +00:00
Olivier Abad 744ab22245 Add a debian subdirectory and the files needed to generate a debian package.
The files were created by Frederic Peters <fpeters@debian.org>, the maintainer
of the ethereal debian package.
I just modified `rules' to use autogen.sh when building from a CVS tree.
Building a debian package is now very easy :
- in debian/changelog : change the version number (and replace my name with
                        yours)
- dpkg-buildpackage -rfakeroot -us -uc

svn path=/trunk/; revision=1569
2000-01-26 07:00:26 +00:00
Guy Harris 408eddc7e7 Initialize per-dissection data structures before doing a capture, as
well as before reading a capture file - if the user didn't specify that
the capture should be saved to a file, it'll be dissected as it arrives.

svn path=/trunk/; revision=1568
2000-01-26 05:30:02 +00:00
Guy Harris 01e6fa1a24 In "dissect_clnp()", fill in "clnp" before looking at it.
svn path=/trunk/; revision=1567
2000-01-26 05:04:29 +00:00
Guy Harris 32ab13f9ed In Win32, treat both '/' and '\' as pathname separators.
svn path=/trunk/; revision=1566
2000-01-26 04:56:14 +00:00
Gilbert Ramirez b3ff562157 Credit fix, and fix for building editcap.1 with build dir != $(srcdir)
svn path=/trunk/; revision=1564
2000-01-26 03:42:28 +00:00
Guy Harris cded07171f Itojun did part of the BSD zlib fix.
svn path=/trunk/; revision=1563
2000-01-26 02:35:54 +00:00
Gilbert Ramirez 85a79e34eb Move version to 0.8.2, add Win32 to list of platforms in README.
svn path=/trunk/; revision=1562
2000-01-26 02:31:35 +00:00
Gilbert Ramirez 8897888b04 Fix the File|Open menu problem for builds w/o pcap (aka, win32 builds).
svn path=/trunk/; revision=1561
2000-01-25 17:57:31 +00:00
Gilbert Ramirez b8e2c9ece2 Add O_BINARY flag to open() for win32.
svn path=/trunk/; revision=1560
2000-01-25 17:51:11 +00:00
Gilbert Ramirez 55b37ca14d Add an include of "../menu.h" to fix a win32 build break.
svn path=/trunk/; revision=1559
2000-01-25 17:32:52 +00:00
Gilbert Ramirez 2d2505d558 Enable File|Open menu item when Ethereal is started with no "-r" option.
svn path=/trunk/; revision=1558
2000-01-25 13:44:39 +00:00
Gilbert Ramirez 479dd21121 Added additional manpages and binaries to RPM package. I don't
know if my changes work, or if anyone actually uses the spec file.

svn path=/trunk/; revision=1557
2000-01-25 11:14:48 +00:00
Jun-ichiro itojun Hagino f95500d623 parse multiple COMMUNITIES value.
svn path=/trunk/; revision=1556
2000-01-25 09:24:42 +00:00
Guy Harris d1aac3e35f Provide a "get_dirname()" routine, that takes a pathname and returns
either a pointer to the directory part of the pathname (after stomping
on the pathname separator with a '\0', so don't use this on pathnames
you plan to use afterwards), or NULL if the pathname contains no
directory part, and make it handle Win32 pathnames on Win32 systems.

Use it to get the containing directory of the currently open file, so
that the "chdir()" stuff we do to cause the "File:Open" dialog box to
show you files in the directory in which you last looked works on Win32
systems.

svn path=/trunk/; revision=1555
2000-01-25 05:48:47 +00:00
Guy Harris f71823a907 "gztell()" is also affected by the libz mess on platforms where "off_t"
is bigger than a "long"; this is itojun's fix for that, turning
"file_tell()" into a wrapper function in "file_wrappers.c", just like
"file_seek()".

svn path=/trunk/; revision=1554
2000-01-25 04:49:55 +00:00
Guy Harris 8192b89967 Use "get_basename()" rather than finding the last component of "argv[0]"
by hand.

svn path=/trunk/; revision=1553
2000-01-25 04:44:33 +00:00
Guy Harris 8e68faf22f Encapsulate the code to take a pointer to a pathname and return a
pointer to the name of the file to which it refers (i.e., to the last
component of the pathname) in a "get_basename()" routine, and have the
code in "file.c" call it.

svn path=/trunk/; revision=1552
2000-01-25 04:31:17 +00:00
Gerald Combs b7a9eca9ba If we open a file, and immediately try to open another file while the first
one is loading, we dump core.  Add the "Open..." menu item to the list of
items that we disable while a file is loading.

svn path=/trunk/; revision=1551
2000-01-25 03:48:16 +00:00
Gerald Combs ce6ccdeb1e Try to work around the undraw_cursor() bug in GTK+ 1.2.3 - 1.2.6. Setting
the text widget scroll bar adjustment to 0.0 appears to fix things (on my
system, at least).

svn path=/trunk/; revision=1550
2000-01-25 03:45:45 +00:00
Guy Harris ddbd2ee9ac Update with URLs for the Win32 port on both sides of the Atlantic, and
with notes about possible problems with the latest version.

svn path=/trunk/; revision=1549
2000-01-25 02:11:30 +00:00
Guy Harris 49feff26fb "If there aren't any packets to select" means "if there aren't any
packets displayed", not just "if there aren't any packets" - there may
be packets but no displayed packets if the display filter didn't find
any packets.

NULL out the pointers to the first and last displayed packet when
closing a capture file.

svn path=/trunk/; revision=1548
2000-01-25 01:05:06 +00:00
Guy Harris 4bd85b6d7e If there aren't any packets to select, don't try to select the first
packet; "select_packet()" gets peeved because it can't find the packet,
and panics.

svn path=/trunk/; revision=1547
2000-01-25 00:36:35 +00:00
Guy Harris 184bc12e7e Add support for Cisco ISL.
svn path=/trunk/; revision=1546
2000-01-25 00:18:26 +00:00
Guy Harris 59fcaf5c03 On Win32, when splitting file names into directory and last component,
search for '\' rather than '/'.

svn path=/trunk/; revision=1545
2000-01-25 00:17:01 +00:00
Guy Harris de51ae65a6 The CRC is at the end of the frame, not at the end of the captured data
in the frame.

svn path=/trunk/; revision=1544
2000-01-24 21:56:24 +00:00
Guy Harris a9ef5b8979 Add the CRC of the encapsulated frame to the ISL dissection.
Fix an error in the handling of non-Ethernet, non-Token Ring frames.

svn path=/trunk/; revision=1543
2000-01-24 21:49:39 +00:00
Gilbert Ramirez c11ba26785 Set a fixed-width font for win32.
svn path=/trunk/; revision=1542
2000-01-24 20:29:07 +00:00