Commit graph

22386 commits

Author SHA1 Message Date
Jeff Morriss
f563945bf8 (Try to) get tshark capturing working on *NIX (it works for me anyway):
We can simply block waiting for input from the child process because we are
in a CLI that does not need to worry about updating a GUI while we're waiting
for packets and so forth.

Before I realized that I wrote a working (for me) method using select() that
I've left in for now (#ifdef'd out).

svn path=/trunk/; revision=22999
2007-09-27 15:58:54 +00:00
Jeff Morriss
1790075951 As requested by Juan Wortley on -users: instead of allowing only 2 UDP ports to be dissected as NSIP, allow a range. Obsolete the old preferences.
svn path=/trunk/; revision=22998
2007-09-27 14:11:57 +00:00
Jörg Mayer
682332dcc0 Convert asn1/dap/
svn path=/trunk/; revision=22997
2007-09-27 09:24:38 +00:00
Tomas Kukosa
6055995bf1 revert changes in config.nmake committed by mistake and commit configure.in
svn path=/trunk/; revision=22996
2007-09-27 08:33:53 +00:00
Tomas Kukosa
7c241d83c2 add forgotten makefiles
svn path=/trunk/; revision=22995
2007-09-27 07:08:47 +00:00
Tomas Kukosa
706e13b44d put next few simple ASN.1 dissectors into the new makefile structure
svn path=/trunk/; revision=22994
2007-09-27 06:03:45 +00:00
Stig Bjørlykke
4b1457c9ef Added 1 min and 10 min tick intervals to the user guide.
svn path=/trunk/; revision=22993
2007-09-26 22:55:36 +00:00
Stig Bjørlykke
8745da6ed0 - Added Tick interval 1 min and 10 min.
- Draw an empty graph if no items in given tick interval.
- Initialize interval_delta so we don't get overlaping x-scale labels.
- Some whitespace cleanup.

svn path=/trunk/; revision=22992
2007-09-26 22:50:53 +00:00
Anders Broman
b70af70189 Fix unused functions.
svn path=/trunk/; revision=22991
2007-09-26 21:37:57 +00:00
Anders Broman
2e73f83c7e The unused pinfo strikes back (again).
svn path=/trunk/; revision=22990
2007-09-26 19:50:53 +00:00
Anders Broman
9920652ca5 Further IE dissection.
svn path=/trunk/; revision=22989
2007-09-26 19:01:29 +00:00
Anders Broman
4330218b15 Try to fix the U3 build.
svn path=/trunk/; revision=22988
2007-09-26 19:00:48 +00:00
Gerald Combs
23af5dbf9a Add the -E (encapsulation) flag.
svn path=/trunk/; revision=22987
2007-09-26 15:48:45 +00:00
Martin Mathieson
8e59e99b5c - show type (number) of unrecognised tlvs in the tlv root item
- also add this as an expert item
- tlv root item is now an FT_BYTES item (allowing filtering on whole tlv contents)

svn path=/trunk/; revision=22986
2007-09-26 14:47:22 +00:00
Jörg Mayer
8625cb7938 Decode role on shared link
svn path=/trunk/; revision=22985
2007-09-26 08:38:43 +00:00
Jörg Mayer
ec3d698c56 Beginnings of EAPS shared link packet dissection (EAPSv2)
svn path=/trunk/; revision=22984
2007-09-26 07:10:40 +00:00
Jörg Mayer
6bb9369681 "fix" some warnings about "might be used uninitialized" variables
svn path=/trunk/; revision=22983
2007-09-26 07:09:51 +00:00
Guy Harris
2d8cff8a03 Make the number of bytes just a guint, in the hopes that it'll squelch
some of the warnings.

svn path=/trunk/; revision=22982
2007-09-26 06:53:38 +00:00
Stephen Fisher
8f9655314a Move sync_pipe_write.c to WIRESHARK_COMMON_SRC since it is now also needed
by tshark as well as Wireshark to fix compilation on Unix platforms.
This is due to the introduction of capture_sync.c (which calls
sync_pipe_errmsg_to_parent) to tshark_SOURCES in SVN revision 22969.


svn path=/trunk/; revision=22981
2007-09-26 03:31:41 +00:00
Stephen Fisher
5775a1dca8 The dissector packet-dcp.c now fails to compile on MacOS X (gcc 4.0.1/Apple). Change G_INLINE_FUNC back to inline per GLib documentation (also remove recommendation in developer's guide to not use inline):
http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Macros.html#id2571572

G_INLINE_FUNC

#define             G_INLINE_FUNC
This macro is used to export function prototypes so they can be linked with an external version when no inlining is performed. The file which implements the functions should define G_IMPLEMENTS_INLINES before including the headers which contain G_INLINE_FUNC declarations. Since inlining is very compiler-dependent using these macros correctly is very difficult. Their use is strongly discouraged.

This macro is often mistaken for a replacement for the inline keyword; inline is already declared in a portable manner in the glib headers and can be used normally.


svn path=/trunk/; revision=22980
2007-09-26 03:05:42 +00:00
Guy Harris
8a0da81237 Squelch *another* "case M ... N:".
To quote doc/README.developer:

  Don't use "inline"; not all compilers support it.  If you want to have a
  function be an inline function if the compiler supports it, use
  G_INLINE_FUNC, which is declared by <glib.h>.

svn path=/trunk/; revision=22979
2007-09-26 02:36:22 +00:00
Guy Harris
109a510696 A guint8 can never be > 255.
svn path=/trunk/; revision=22978
2007-09-26 02:21:31 +00:00
Ulf Lamping
c703e7e18c the Ubuntu / OS X buildbots don't seem to like G_STATIC_MUTEX_INIT (for whatever reason), try to use g_static_mutex_init() instead
svn path=/trunk/; revision=22977
2007-09-26 00:44:47 +00:00
Guy Harris
cd4d203af2 Don't use
case N ... M:

as that's not supported by all compilers.

Say so in the Portability section of README.developer, in the hopes of
discouraging others from using that GCCism.

svn path=/trunk/; revision=22976
2007-09-26 00:41:00 +00:00
Ulf Lamping
a0adcc7e2c solve some more of the unix specific buildbot problems
svn path=/trunk/; revision=22975
2007-09-26 00:03:30 +00:00
Ulf Lamping
9194ddf399 add a dummy function, so unix/linux version should at least compile
svn path=/trunk/; revision=22974
2007-09-25 23:23:56 +00:00
Ulf Lamping
3fd5cf55b0 remove trailing backslash
svn path=/trunk/; revision=22973
2007-09-25 22:38:39 +00:00
Ulf Lamping
3ebfb3603e add a "build.0" configuration, MSVC 2005 wants to have it (for whatever reasons)
svn path=/trunk/; revision=22972
2007-09-25 21:59:19 +00:00
Ulf Lamping
2e813f272f add some more files
svn path=/trunk/; revision=22971
2007-09-25 21:57:25 +00:00
Ulf Lamping
33f27f437f slightly better summary of IODWriteRes and don't repeat AR info for each IODWriteRes_header
svn path=/trunk/; revision=22970
2007-09-25 21:56:43 +00:00
Ulf Lamping
879d656537 as "advertised" some days ago:
rewrite the tshark capture code almost completely, to use dumpcap instead of it's own pcap functionality.

This works on Win32 and should work on unix/linux (but I'm not sure here). Some stuff needs to be cleaned up, some more may need to be rewritten to specifically work with unix/win32. Futher work needs to be done at:

1. read filters (simply document current behaviour?)
2. event loop polling
3. privileges
4. code cleanup (e.g. in capture_loop.c)

Be prepared that tshark might not work as before / expected at least in the next days!

svn path=/trunk/; revision=22969
2007-09-25 21:55:06 +00:00
Ulf Lamping
35eb028ca4 clarify tshark -B (file format) option
svn path=/trunk/; revision=22968
2007-09-25 21:38:54 +00:00
Gerald Combs
67782546bb Add an item about the coloring rules crash fix.
svn path=/trunk/; revision=22967
2007-09-25 21:35:20 +00:00
Sake Blok
7edd24e5af This patch adds two new fields to the tcp-dissector:
tcp.time_relative ==> the time that has elapsed since the 
   first packet that was seen in the current TCP stream

tcp.time_delta ==> the time that has elapsed since the 
   last packet that was seen in the current TCP stream

Calculating these timestamps is turned off by default to not 
use the extra memory that is needed for the per-packet-data.
It can be turned on through the TCP protocol preferences


svn path=/trunk/; revision=22966
2007-09-25 20:37:13 +00:00
Bill Meier
90160079c0 Fix whitespace of newly added lines to match rest of file
svn path=/trunk/; revision=22965
2007-09-25 20:34:06 +00:00
Bill Meier
151a51d956 Add error checking for fwrites; replacement for one of patches provided in bug #1864
svn path=/trunk/; revision=22964
2007-09-25 19:59:50 +00:00
Ulf Lamping
4d4c9a4d34 fix a typo in the source files target, took me more than an hour to find it :-(((
svn path=/trunk/; revision=22963
2007-09-25 19:52:51 +00:00
Gerald Combs
e07ae47a02 Add the file encapsulation.
svn path=/trunk/; revision=22962
2007-09-25 19:52:19 +00:00
Jaap Keuter
9b5e0c99a3 From Gerrit Renker:
This is an update for the DCCP dissector and has previously been sent to
the DCCP dissector maintainer, Francesco Fondelli, who supplied
the Acked-by. I have been using it with profit for several weeks.

This patch provides the following extensions:
 * type-dependent decoding of feature-negotiation options (NN and SP types of
options, NN is a 1..6 byte value in network-byte-order, SP is always a list of
unsigned char)
 * decoding for CCID3 Send Loss Event Rate feature
 * some pretty-printing of options
 * decoding of CCID3-specific options
       - Loss Event Rate (receiver report)
       - Receive Rate (also reported by receiver)
 * there was a change in the spec - the NDP count at sometime `grew' from 3 to
6 bytes (it was the same in the kernel). I have updated the data type from uint32 to
uint64
 * utility function to decode from network-byte-order into host byte order with
variable length

svn path=/trunk/; revision=22961
2007-09-25 19:42:46 +00:00
Stig Bjørlykke
19e901df9a Highlight whole ethernet trailer in Packet Details View.
svn path=/trunk/; revision=22960
2007-09-25 19:30:26 +00:00
Ulf Lamping
4c3c4ab5ac also do a distclean when doing a clean for the all target
svn path=/trunk/; revision=22959
2007-09-25 19:22:31 +00:00
Jörg Mayer
548b224e28 Change some additional protocols to the new build system
svn path=/trunk/; revision=22958
2007-09-25 18:02:49 +00:00
Jörg Mayer
9ad70d3450 Convert acp133 to new build structure.
Update some svn:ignore files, remove no longer needed Makefiles

svn path=/trunk/; revision=22957
2007-09-25 17:09:01 +00:00
Anders Broman
6d1791db07 Fix:
packet-ldap-template.c(1330) : error C2220: warning treated as error - no object  file generated
packet-ldap-template.c(1330) : warning C4101: 'gss_len' : unreferenced local var iable NMAKE : fatal error U1077: 'cl' :

svn path=/trunk/; revision=22956
2007-09-25 16:51:49 +00:00
Anders Broman
6b4a7ba74d Use GTK+ 2.12
svn path=/trunk/; revision=22955
2007-09-25 16:09:58 +00:00
Jörg Mayer
81108a948b Small change about extreme EAPSv2 address and update manuf
svn path=/trunk/; revision=22954
2007-09-25 14:09:08 +00:00
Jörg Mayer
caaaf914d3 I forgot to commit the necessary change to configure.in,
so the distcheck failed. Fix that.


svn path=/trunk/; revision=22953
2007-09-25 14:07:53 +00:00
Tomas Kukosa
de7f9fde6c remove trailing backslash on the last line of list
svn path=/trunk/; revision=22952
2007-09-25 12:17:48 +00:00
Tomas Kukosa
30de0aadf2 put few simple ASN.1 dissectors into the new makefile structure
svn path=/trunk/; revision=22951
2007-09-25 11:58:35 +00:00
Jörg Mayer
3b3f182b99 - Rework the Makefile structure to generate external -cnf files
a protocol depends on.
- Make sure we need to add asn files to only 1 Makefile instead
   of 3 (Makefile, Makefile.nmake, ../Makefile.am)
- Change the Makefiles of the camel protocol to use the new structure.

svn path=/trunk/; revision=22950
2007-09-25 10:30:55 +00:00