Commit Graph

37015 Commits

Author SHA1 Message Date
Guy Harris f16a746c63 Set eth.fcs_len in the pseudo-header for Ethernet packets.
Set the pseudo-header when doing the sequential read as well as when
doing random reads.

When writing packets to a CommView file, use a slightly less contorted
way to get the year/month/day/hour/minute/second values.

commview_dump() uses the pseudo_header argument; don't mark it as
unused.

svn path=/trunk/; revision=38833
2011-09-01 04:14:54 +00:00
Guy Harris da2d6c8d77 If we're running from the build directory, check the WIRESHARK_SRC_DIR
environment variable, and, if it's set, use it rather than the build
directory as the data file directory.  This is to handle
out-of-source-tree builds.

svn path=/trunk/; revision=38832
2011-09-01 02:35:46 +00:00
Gerald Combs 187919723f Fix the format of the services file. The output from make-services.pl is
still uglier than a box of YouTube comments but transport name
resolution seems to work now. Fixes bug 6274.

svn path=/trunk/; revision=38829
2011-08-31 23:07:12 +00:00
Guy Harris 30ec5387fa Not ideal, but OK for now - alignbytes, at that point, is < 8, so we
know it'll fit in a gint16.  (alignbytes really shouldn't need to be 64
bits, as if we have 2^63-1 bytes of alignment, We Have A Problem; fixing
that may involve calculating it differently earlier in that routine.)

svn path=/trunk/; revision=38828
2011-08-31 22:22:40 +00:00
Stig Bjørlykke ff32408b0a Try using gint64 for alignbytes.
svn path=/trunk/; revision=38827
2011-08-31 21:16:18 +00:00
Stig Bjørlykke 141a830b9f From Andrew Kampjes via bug 6260:
Added support for saving ERF files.

From me:
Use crc routines from libwsutil.

svn path=/trunk/; revision=38826
2011-08-31 20:50:15 +00:00
Bill Meier 1acf9a4d24 Add svn:keywords & svn:eol-style properties
svn path=/trunk/; revision=38825
2011-08-31 17:02:54 +00:00
Bill Meier 63a3bfd210 Fix build (automake) error: WIRESHARK_CUSTOM_HEADERS is ng but WIRESHARK_CUSTOM_HDRS is OK ??
svn path=/trunk/; revision=38824
2011-08-31 16:34:14 +00:00
Anders Broman 649213f0c5 COPY as CSV to clipboard from RTP stream analysis only copies 1st line many times.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6279

svn path=/trunk/; revision=38823
2011-08-31 14:03:34 +00:00
Anders Broman da889b66ec gtk/Makefile_custom.common:8: blank line following trailing backslash
svn path=/trunk/; revision=38822
2011-08-31 13:59:39 +00:00
Anders Broman 007c788f05 Make it possible to add custom tap/GUI files
svn path=/trunk/; revision=38821
2011-08-31 13:44:43 +00:00
Martin Mathieson 1cf5a9ce5a Add another DL CRC error - Duplicate NonZero RV.
svn path=/trunk/; revision=38820
2011-08-31 12:39:59 +00:00
Stig Bjørlykke 1ced4079c5 Lookup in correct tables. Document functions.
svn path=/trunk/; revision=38819
2011-08-31 12:03:18 +00:00
Stig Bjørlykke 582a75cb97 Add the new functions; crc32c_table_lookup and crc32_ccitt_table_lookup.
svn path=/trunk/; revision=38818
2011-08-31 11:53:20 +00:00
Stig Bjørlykke 84b3c5da84 Make lookup functions for accessing crc32c_table and crc32_ccitt_table.
svn path=/trunk/; revision=38817
2011-08-31 11:47:27 +00:00
Anders Broman 5198e05412 Remove the obsolete files fom the installer
svn path=/trunk/; revision=38816
2011-08-31 10:25:57 +00:00
Stig Bjørlykke fb215b5fa5 Remove tree-view-ui.xml and bytes-view-ui.xml
svn path=/trunk/; revision=38815
2011-08-31 10:01:45 +00:00
Stig Bjørlykke 8b0361b62e Try declaring tables with WS_VAR_IMPORT.
svn path=/trunk/; revision=38814
2011-08-31 09:56:25 +00:00
Stig Bjørlykke cd5cb315d5 And fix distclean and maintainer-clean.
svn path=/trunk/; revision=38813
2011-08-31 09:27:25 +00:00
Stig Bjørlykke 464d135ef2 Add missing crc16_plain_update and crc_drm.
svn path=/trunk/; revision=38812
2011-08-31 09:22:40 +00:00
Stig Bjørlykke e1e7ec4b33 Fixed clean rule after crc move.
svn path=/trunk/; revision=38811
2011-08-31 09:11:16 +00:00
Stig Bjørlykke 5359494b1f Second try to move crc routines to libwsutil.
This time keep the tvb routines in epan.

Now we can use common crc routines outside epan.

svn path=/trunk/; revision=38810
2011-08-31 09:00:54 +00:00
Anders Broman 48221f4dfd Only load the menubar UI description from file.
Perhaps the treeview popup UI description should be loaded from file as well but currently I don't see the benefit.
Feel free to ad back that code :-)

The byte view UI description is so small so that's no use to load from file in my opinion.

svn path=/trunk/; revision=38809
2011-08-31 08:59:09 +00:00
Michael Tüxen 9deb732370 Improve the display of addresses in the Edit Interface Settings dialog
box.

Patch provided by Irene Ruengeler.

svn path=/trunk/; revision=38808
2011-08-30 21:46:17 +00:00
Anders Broman a0b2954bc7 From Lei Chen:
fix the wrong display of CSN_BIT under CSN_UNION.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6287

svn path=/trunk/; revision=38807
2011-08-30 18:34:19 +00:00
Gerald Combs b71a332fe8 crc directory restoration step 2 of 2: Make a copy of epan/crc@38799.
svn path=/trunk/; revision=38806
2011-08-30 16:39:38 +00:00
Gerald Combs 74974d25d0 crc directory restoration step 1 of 2: Delete the existing directory.
svn path=/trunk/; revision=38805
2011-08-30 16:37:32 +00:00
Anders Broman 04345b4bb8 How copy-paste can ruin your day;
Use the right ui manager with the right description file.
handle LUA not present.

svn path=/trunk/; revision=38804
2011-08-30 14:55:52 +00:00
Stig Bjørlykke 71f903b956 Revert r38800, as the crc routines contains some tvb functions.
svn path=/trunk/; revision=38803
2011-08-30 14:17:40 +00:00
Jörg Mayer ebb63d8a7f Get rid of the last crc stuff
svn path=/trunk/; revision=38802
2011-08-30 14:04:37 +00:00
Stig Bjørlykke f01bc10f45 Remove the empty epan/crc directory.
svn path=/trunk/; revision=38801
2011-08-30 13:47:40 +00:00
Stig Bjørlykke 4132d40e50 Move all crc routines to libwsutil.
This way we can use the crc routines in wiretap.

svn path=/trunk/; revision=38800
2011-08-30 13:46:42 +00:00
Jörg Mayer bb67b92a14 No need to make an almost empty column extra wide.
svn path=/trunk/; revision=38799
2011-08-30 12:47:24 +00:00
Martin Mathieson 23612366ef Add a #ifdef NEW_MENU_CODE around a static function that is only used on that path.
svn path=/trunk/; revision=38798
2011-08-30 12:09:07 +00:00
Jörg Mayer eae0703984 Current status of gtk2/gtk3
svn path=/trunk/; revision=38797
2011-08-30 11:46:40 +00:00
Anders Broman 9c746dccce Get the path right when running from build environment.
gui from file currently broken.

svn path=/trunk/; revision=38796
2011-08-30 11:44:24 +00:00
Jörg Mayer 3a48ef3e02 Make it possible to disable building with libpcap.
svn path=/trunk/; revision=38795
2011-08-30 11:44:21 +00:00
Anders Broman ad05335043 I don't know...perhaps this will satisfy the OS X buildbot
svn path=/trunk/; revision=38794
2011-08-30 10:25:58 +00:00
Anders Broman 61b150caf9 Make the capture_if callbacks HAVE_LIBPCAP agnostic.
svn path=/trunk/; revision=38793
2011-08-30 09:00:31 +00:00
Guy Harris 9756ac2904 Handle multiple extension headers when calculating the pseudo-header
length, and actually write out the extension headers when writing out
the pseudo-header.

Fixes bug 6265.

svn path=/trunk/; revision=38792
2011-08-30 08:09:40 +00:00
Anders Broman f2e7cc9518 Do as the comment says - move the variable to gtkglobals.
svn path=/trunk/; revision=38791
2011-08-30 07:33:24 +00:00
Guy Harris 4486bb9d85 A zero snaplen means "snaplen unknown", as in "the file format from
which we read the data to be written doesn't record the snapshot
length".  A snapshot length of 0 in a pcap or pcap-ng file is not
handled well by many programs reading those files; for pcap files, we
write out WTAP_MAX_PACKET_SIZE as the snapshot length in that case, so
do so for pcap-ng files as well.

svn path=/trunk/; revision=38790
2011-08-30 06:01:44 +00:00
Anders Broman 0cf099392c Path from Joerg Mayer, I'm committing it as I think the right thing to do is to have all menus defined in the GUI and then hide the ones
not available/usable and thuss get rid of a lot of #ifdefs.

As for the icons we should load all of them even if some are not needed in all configurations.

svn path=/trunk/; revision=38789
2011-08-30 05:20:37 +00:00
Guy Harris a6fcf8cd45 Endace ERF channelisation and "New BFS" extension header support, from
Andrew Kampjes.

svn path=/trunk/; revision=38788
2011-08-30 03:58:12 +00:00
Guy Harris d6798876d6 I'm not sure -Q/WIRESHARK_QUIT_AFTER_CAPTURE is actually useful in batch
mode; in batch mode, you probably want to use TShark or dumpcap.

svn path=/trunk/; revision=38787
2011-08-29 23:25:29 +00:00
Gerald Combs 9efd73b9ef -Q → WIRESHARK_QUIT_AFTER_CAPTURE.
svn path=/trunk/; revision=38786
2011-08-29 23:16:57 +00:00
Stephen Fisher dc3c5c8b63 Attempt to fix coverity id 1212: MISSING_BREAK by inserting "FALLTHROUGH"
comment.


svn path=/trunk/; revision=38785
2011-08-29 21:36:48 +00:00
Gerald Combs db240c2b5e Replace "-Q" with "WIRESHARK_QUIT_AFTER_CAPTURE" as discussed in bug 6256.
svn path=/trunk/; revision=38784
2011-08-29 21:16:29 +00:00
Stephen Fisher df5fdf9e63 From Juliusz Chroboczek via bug #6273:
IANA has reallocated the Babel port; it is now 6696.  The attached patch makes
wireshark grok both the old and new ports.


svn path=/trunk/; revision=38783
2011-08-29 19:56:11 +00:00
Stephen Fisher f2c42f578b Fix compilation when compiling without libpcap (configure script parameter
"--without-pcap")

Note: Generates run-time warnings still:

(wireshark:66065): Gtk-WARNING **: CaptureFilters: missing action /Capture/CaptureFilters

(wireshark:66065): Gtk-WARNING **: Interfaces: missing action /Capture/Interfaces

(wireshark:66065): Gtk-WARNING **: Options: missing action /Capture/Options

(wireshark:66065): Gtk-WARNING **: Start: missing action /Capture/Start

(wireshark:66065): Gtk-WARNING **: Stop: missing action /Capture/Stop

(wireshark:66065): Gtk-WARNING **: Restart: missing action /Capture/Restart 


svn path=/trunk/; revision=38782
2011-08-29 19:47:50 +00:00