metze/wireshark/wip.git
14 years agoFrom Kovarththanan Rajaratnam via bug 3500:
Gerald Combs [Tue, 1 Jun 2010 22:20:15 +0000 (22:20 -0000)]
From Kovarththanan Rajaratnam via bug 3500:

Sébastien's initial commit [1] didn't contain support for embedding Python on
Windows.

[1] http://anonsvn.wireshark.org/viewvc?view=rev&revision=28529

From me:

Comment out PYTHON_EMBED for now.

Start a list of known Python+CRT versions.

Add get_wspython_dir to libwireshark.def.

svn path=/trunk/; revision=33036

14 years agoPer Jaap's suggestion on -dev list: remove "with new_packet_list" from
Stephen Fisher [Tue, 1 Jun 2010 18:33:16 +0000 (18:33 -0000)]
Per Jaap's suggestion on -dev list: remove "with new_packet_list" from
version output since it has been the default for a while now and show
"with old_packet_list" if compiled as such.

svn path=/trunk/; revision=33035

14 years agoThere's no need to assign numerical values to the enum values.
Stephen Fisher [Tue, 1 Jun 2010 18:32:03 +0000 (18:32 -0000)]
There's no need to assign numerical values to the enum values.

svn path=/trunk/; revision=33034

14 years agoFrom Herbert Lischka:
Jaap Keuter [Tue, 1 Jun 2010 18:10:21 +0000 (18:10 -0000)]
From Herbert Lischka:
Lori made a simple change to the bacapp.c file for segmentation parsing.
Basically all fragments have some common data in the APDU which is useful to
see parsed in the tree.

I added support for vendor numbers bigger than 255.

Corrected Info column for "message fragment" and "message reassembled"

svn path=/trunk/; revision=33033

14 years agoThe Permitted-Actions-Attribute is exported from ftam-exp.cnf as DISPLAY = BASE_HEX...
Graeme Lunt [Tue, 1 Jun 2010 09:25:51 +0000 (09:25 -0000)]
The Permitted-Actions-Attribute is exported from ftam-exp.cnf as DISPLAY = BASE_HEX. This causes a runtime error and so we override the definition here until we can find the correct fix.

svn path=/trunk/; revision=33032

14 years agoFixed a comment.
Stig Bjørlykke [Tue, 1 Jun 2010 07:31:10 +0000 (07:31 -0000)]
Fixed a comment.

svn path=/trunk/; revision=33031

14 years agoFrom Pascal Quantin:
Anders Broman [Tue, 1 Jun 2010 07:26:08 +0000 (07:26 -0000)]
From Pascal Quantin:
Decode the EIA0 (null integrity algorithm) bit in EMM messages. This was introduced in 3GPP 24.301 CR-0422 (Release 9.2) and is also used by the LTSI (LTE/SAE Trial Initiative) for interoperability tests between constructors (with Release 8 equipments). I also updated the description of EEA0 as stated in 24.302 release 9.2.

svn path=/trunk/; revision=33030

14 years agocapture() can, in some cases, return FALSE when the capture succeeds;
Guy Harris [Tue, 1 Jun 2010 03:37:51 +0000 (03:37 -0000)]
capture() can, in some cases, return FALSE when the capture succeeds;
back out the change to check its return value until we fix that.

Also back out the test suite changes to look for an error exit for
invalid capture filters and interfaces.

svn path=/trunk/; revision=33029

14 years agoWireshark requires routines from libm, such as ceil(), so link with it;
Guy Harris [Mon, 31 May 2010 19:37:26 +0000 (19:37 -0000)]
Wireshark requires routines from libm, such as ceil(), so link with it;
we shouldn't rely on getting it pulled in by other shared libraries, as

1) there's no guarantee that the other shared libraries we use
   are linked with it or will continue to be linked with it;

2) there's no guarantee that we're even linking dynamically;

3) it fails on Fedora 13 as part of a change to catch programs
   that implicitly (or explicitly) assume, in their build
   procedures, that they'll get libraries linked in as a result
   of linking with other libraries.

svn path=/trunk/; revision=33028

14 years agoFrom Ian Schorr:
Anders Broman [Mon, 31 May 2010 05:13:27 +0000 (05:13 -0000)]
From Ian Schorr:
NFS Dissector needs FH support for EMC Celerra.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4813

svn path=/trunk/; revision=33027

14 years agoFrom Chris Maynard:
Jaap Keuter [Sun, 30 May 2010 21:39:41 +0000 (21:39 -0000)]
From Chris Maynard:
Fix for bug 4810 so PPP/USB dissector registers for IF_CLASS_CDC_DATA
- in addition to IF_CLASS_UNKNOWN and IF_CLASS_VENDOR_SPECIFIC, for those rare
occasions that the right set of circumstances arise where PPP traffic will be
(correctly) encapsulated in a USB frame of that interface class.

svn path=/trunk/; revision=33026

14 years ago[Automatic manuf and enterprise-numbers update for 2010-05-30]
Gerald Combs [Sun, 30 May 2010 15:03:31 +0000 (15:03 -0000)]
[Automatic manuf and enterprise-numbers update for 2010-05-30]

svn path=/trunk/; revision=33023

14 years agoFrom Matteo Valdina
Jaap Keuter [Sun, 30 May 2010 10:51:44 +0000 (10:51 -0000)]
From Matteo Valdina
There are two typos in the RTCP TMMBR packets:
1. In the dissector of RTCP TMMBR is written "messured" instead of measured.
2. In the text title field is written TMMBN instead on TMMBR and vice-versa.

svn path=/trunk/; revision=33022

14 years agoFrom Chris Maynard:
Jaap Keuter [Sun, 30 May 2010 10:28:21 +0000 (10:28 -0000)]
From Chris Maynard:
Fix for bug 4807 to handle compressed (NULL) address and control bytes.

The problem seems to be that the address and control bytes are missing,
presumably because they are compressed per section 3.2 of
http://tools.ietf.org/html/rfc1662.  The attached patch tries to account for
that.

The patch also fixes another bug.  If the hdlc framing character, 0x7e, is not
present, but the address and control fields are, then the offset might need to
be 3 bytes instead of only 2 bytes if the control field is escaped.  Sometimes
it is escaped and sometimes it isn't, so we need to handle both cases.

svn path=/trunk/; revision=33021

14 years agoIncrease the base size to 100 000 we are using more than that.
Anders Broman [Sat, 29 May 2010 22:29:09 +0000 (22:29 -0000)]
Increase the base size to 100 000 we are using more than that.

svn path=/trunk/; revision=33020

14 years agoInclude glib.h (for g_snprintf).
Jeff Morriss [Sat, 29 May 2010 03:35:32 +0000 (03:35 -0000)]
Include glib.h (for g_snprintf).

svn path=/trunk/; revision=33019

14 years agoAdd braces to avoid an ambiguous else
Jeff Morriss [Sat, 29 May 2010 03:34:05 +0000 (03:34 -0000)]
Add braces to avoid an ambiguous else

svn path=/trunk/; revision=33018

14 years agoPut the optional objects in EXTRA..SOURCES instead of EXTRA_DIST.
Jeff Morriss [Sat, 29 May 2010 03:33:28 +0000 (03:33 -0000)]
Put the optional objects in EXTRA..SOURCES instead of EXTRA_DIST.

Put the optional objects in a _DEPENDENCIES rule so they actually get built
when needed.

Use libtool to make these objects.  Remove AC variables that are no longer
needed.

svn path=/trunk/; revision=33017

14 years agoMake inet_aton an optional object on *NIX again
Jeff Morriss [Sat, 29 May 2010 01:00:52 +0000 (01:00 -0000)]
Make inet_aton an optional object on *NIX again

svn path=/trunk/; revision=33016

14 years agoRemove a couple more references to the optional objects (that are now in wsutil)
Jeff Morriss [Sat, 29 May 2010 00:34:08 +0000 (00:34 -0000)]
Remove a couple more references to the optional objects (that are now in wsutil)

svn path=/trunk/; revision=33015

14 years agoFrom Karl Heinz Wolf via bug 3571 (with minor changes):
Gerald Combs [Fri, 28 May 2010 23:00:29 +0000 (23:00 -0000)]
From Karl Heinz Wolf via bug 3571 (with minor changes):

Patch for the SIP dissector: the raw SIP message can be shown with our without
the "\r\n". User may want to remove the \r\n for clarity (by selecting a
checkbox).

svn path=/trunk/; revision=33014

14 years agoAdd a missing variable from wsgetopt
Jeff Morriss [Fri, 28 May 2010 20:37:18 +0000 (20:37 -0000)]
Add a missing variable from wsgetopt

svn path=/trunk/; revision=33013

14 years agoMove some code (including the optional objects) into libwsutil
Jeff Morriss [Fri, 28 May 2010 20:19:55 +0000 (20:19 -0000)]
Move some code (including the optional objects) into libwsutil

svn path=/trunk/; revision=33012

14 years agoFrom Jakub Zawadzki via bug 4273:
Gerald Combs [Fri, 28 May 2010 18:04:56 +0000 (18:04 -0000)]
From Jakub Zawadzki via bug 4273:

After appending new record set packet_list->columnized to FALSE.

From me:

Use g_ptr_array_sort_with_data instead of g_qsort_with_data in case the
GPtrArray internals ever change.

svn path=/trunk/; revision=33011

14 years agoFix the Windows build
Jeff Morriss [Fri, 28 May 2010 13:09:12 +0000 (13:09 -0000)]
Fix the Windows build

svn path=/trunk/; revision=33010

14 years agoRemaining fixes for
Jörg Mayer [Fri, 28 May 2010 11:48:29 +0000 (11:48 -0000)]
Remaining fixes for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4788
- Compile the python code directly into epan - don't link it in as
  a static lib.
- Call make-init-lua.pl with the top level directory instead of the
  current directory. Change make-init-lua.pl accordingly.

svn path=/trunk/; revision=33009

14 years agoAdd proto_help.c to the list of files.
Jörg Mayer [Fri, 28 May 2010 11:18:04 +0000 (11:18 -0000)]
Add proto_help.c to the list of files.

svn path=/trunk/; revision=33008

14 years agoAdd svn:keywords & svn:eol-style properties
Bill Meier [Fri, 28 May 2010 01:37:32 +0000 (01:37 -0000)]
Add svn:keywords & svn:eol-style properties

svn path=/trunk/; revision=33007

14 years agoUse return rather than exit in main().
Guy Harris [Fri, 28 May 2010 01:09:28 +0000 (01:09 -0000)]
Use return rather than exit in main().

Return 2 for a capture error - we mainly use 1 for command-line syntax
errors (rather than, say, filter syntax errors or an invalid interface).

Now that TShark exits with an error status when given an invalid capture
filter or invalid interface, check for "error" rather than "success" as
an exit status.

svn path=/trunk/; revision=33006

14 years agoAdd cf_fake_continue_tail() which is called when real-time capture
Gerald Combs [Thu, 27 May 2010 23:55:04 +0000 (23:55 -0000)]
Add cf_fake_continue_tail() which is called when real-time capture
updates are off and which sets the capture file state to a value that
won't cause an assertion when the user stops capturing. Fixes bug 4035.

svn path=/trunk/; revision=33005

14 years agoFix bug #4735: tshark returns 0 on non-valid filter and interface.
Bill Meier [Thu, 27 May 2010 23:46:01 +0000 (23:46 -0000)]
Fix bug #4735: tshark returns 0 on non-valid filter and interface.
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4735

svn path=/trunk/; revision=33004

14 years agoFrom Steven McCoy:
Jaap Keuter [Thu, 27 May 2010 21:54:58 +0000 (21:54 -0000)]
From  Steven McCoy:
AFI fields are 2 bytes i.s.o. 1.

From me, several more size changes and decode cleanup.

svn path=/trunk/; revision=33003

14 years agofopen -> ws_fopen
Gerald Combs [Thu, 27 May 2010 21:17:55 +0000 (21:17 -0000)]
fopen -> ws_fopen

svn path=/trunk/; revision=33002

14 years agoProtocol Help requires GLib 2.6+. Add newlines. Fixup whitespace.
Gerald Combs [Thu, 27 May 2010 19:54:02 +0000 (19:54 -0000)]
Protocol Help requires GLib 2.6+. Add newlines. Fixup whitespace.

svn path=/trunk/; revision=33001

14 years agoCopy the (no longer Win32-specific) description of the -B option to the Wireshark...
Jeff Morriss [Thu, 27 May 2010 19:13:26 +0000 (19:13 -0000)]
Copy the (no longer Win32-specific) description of the -B option to the Wireshark man page.

svn path=/trunk/; revision=33000

14 years agoDocument the maximum number of files in a ring buffer, including a warning about...
Jeff Morriss [Thu, 27 May 2010 19:11:53 +0000 (19:11 -0000)]
Document the maximum number of files in a ring buffer, including a warning about using large numbers of files.

svn path=/trunk/; revision=32999

14 years agoSet RINGBUFFER_MAX_NUM_FILES to 100000. Use it to generate file names.
Gerald Combs [Thu, 27 May 2010 18:00:46 +0000 (18:00 -0000)]
Set RINGBUFFER_MAX_NUM_FILES to 100000. Use it to generate file names.
Add RINGBUFFER_WARN_NUM_FILES and use it to print a warning. Print
warnings when we change the number of ringbuffer files.

svn path=/trunk/; revision=32998

14 years agoAdd .11s to Sam Leffler's entry. We haven't used Alain Magloire's
Gerald Combs [Thu, 27 May 2010 17:57:10 +0000 (17:57 -0000)]
Add .11s to Sam Leffler's entry. We haven't used Alain Magloire's
snprintf.c for almost four years. Remove the entry.

svn path=/trunk/; revision=32997

14 years agoAdd string_replace to exported functions.
Anders Broman [Thu, 27 May 2010 16:24:44 +0000 (16:24 -0000)]
Add string_replace to exported functions.

svn path=/trunk/; revision=32996

14 years agoFrom Edgar Gladkich:
Gerald Combs [Thu, 27 May 2010 15:51:25 +0000 (15:51 -0000)]
From Edgar Gladkich:

This is an extension to the Wireshark context sensitive protocol help. Rows in
TreeView window are analyzed and suitable help file (as HTML) is opened in a
browser.

The help part (large file, 23 MB) of the Protocol Help can be downloaded under
www.inacon.com/dowload/stuff/protocol_help.tar.gz

This protocol help "light" provides descriptive content for the most frequently
used standard protocols, including IP, TCP or SMTP.

From me:

Changes:

Rename "ph_" in some function names to "proto_help_". Move the protocol
help code to its own module.

Make a bunch of functions static. Remove unused code.

Use browser_open_url() instead of a custom function.

Increase the logging levels. Don't clobber the normal log handler.

Update some Doxygen comments to match the format in the rest of the code
base.

Removed GTK version checks. We've been 2.x only for a while.

Move ph_replace_string to string_replace() in epan/strutil.[ch].

Fix a bunch of memory leaks.

Add a NULL pointer check.

Reformat the overview menu label.

Document the file format and locations.

Add Edgar to AUTHORS.

svn path=/trunk/; revision=32995

14 years agoReword two error messages as per Bug #4518.
Bill Meier [Thu, 27 May 2010 15:47:34 +0000 (15:47 -0000)]
Reword two error messages as per Bug #4518.
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4518

svn path=/trunk/; revision=32994

14 years agoFrom Pascal Quantin:
Anders Broman [Thu, 27 May 2010 14:05:20 +0000 (14:05 -0000)]
From Pascal Quantin:
 Prettify decoding of EPS NAS messages.

svn path=/trunk/; revision=32993

14 years agoFix for the LUA part of bug
Jörg Mayer [Thu, 27 May 2010 10:49:33 +0000 (10:49 -0000)]
Fix for the LUA part of bug
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4788

- Don't build the wslua stuff as a (static) library, build the
  stuff directly into epan instead.

The wspython remains to be done.

svn path=/trunk/; revision=32992

14 years agoFrom Tamás Regõs:
Anders Broman [Thu, 27 May 2010 08:12:58 +0000 (08:12 -0000)]
From Tamás Regõs:
Updated Experimental-Result-Code AVP 298.

svn path=/trunk/; revision=32991

14 years agoData frames, not management frames, can have a mesh header.
Guy Harris [Thu, 27 May 2010 06:11:28 +0000 (06:11 -0000)]
Data frames, not management frames, can have a mesh header.

svn path=/trunk/; revision=32990

14 years agoRemove a couple of items from the "known bugs" list.
Gerald Combs [Thu, 27 May 2010 03:24:04 +0000 (03:24 -0000)]
Remove a couple of items from the "known bugs" list.

svn path=/trunk/; revision=32989

14 years agoMake -q not a capture option again - it's used by tshark even when not
Guy Harris [Thu, 27 May 2010 01:13:49 +0000 (01:13 -0000)]
Make -q not a capture option again - it's used by tshark even when not
capturing, and thus even when we build without pcap.

svn path=/trunk/; revision=32988

14 years agoMake sure our prefix length is > 0 before lopping off the last
Gerald Combs [Thu, 27 May 2010 00:49:01 +0000 (00:49 -0000)]
Make sure our prefix length is > 0 before lopping off the last
character.  Fixes bug 4797.

svn path=/trunk/; revision=32987

14 years agoClean up the error reporting. An EOF from the sync pipe when capturing
Guy Harris [Thu, 27 May 2010 00:48:08 +0000 (00:48 -0000)]
Clean up the error reporting.  An EOF from the sync pipe when capturing
is just an indication that the capture child exited; don't treat it as
an error, unless the child process exits with an abnormal status.

As tshark sends a "stop capture" indication to the child when it's
^C'ed, the child will exit and we'll get an EOF from the capture pipe;
don't make SIGINT etc. interrupt system calls, so they don't cause reads
from the capture pipe to get EINTR errors.

svn path=/trunk/; revision=32986

14 years agoAnother attempt at bug 4669: Properly set the previous-displayed-packet
Gerald Combs [Wed, 26 May 2010 23:29:56 +0000 (23:29 -0000)]
Another attempt at bug 4669: Properly set the previous-displayed-packet
timestamp when we're recalculating reference times.

Remove an unused variable. Add whitespace & comment fixups.

svn path=/trunk/; revision=32985

14 years agoFrom Jakub Zawadzki:
Anders Broman [Wed, 26 May 2010 21:39:24 +0000 (21:39 -0000)]
From Jakub Zawadzki:
One more change from wtap_seek_read to cf_read_frame.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4666

svn path=/trunk/; revision=32984

14 years agoFrom Brian Woodard:
Jaap Keuter [Wed, 26 May 2010 21:23:45 +0000 (21:23 -0000)]
From Brian Woodard:
User Defined CIGI packets with a packet size greater than 127 bytes are
displayed as Malformed. Instead, treat size as unsigned integers.

svn path=/trunk/; revision=32983

14 years agoFrom Hadar Shoham:
Jaap Keuter [Wed, 26 May 2010 21:10:02 +0000 (21:10 -0000)]
From Hadar Shoham:
Change DHCPv6 option 17.8 to be the same as BOOTP option 43.8
CableLabs specs treat 43.8\17.8 inconsistently as either binary (3 byte)
or string (6 byte)

Additional cleanup and extension of interface ID presentation by me.

svn path=/trunk/; revision=32982

14 years agoHave new_packet_list_queue_draw() redraw the packet detail as well. Call
Gerald Combs [Wed, 26 May 2010 19:44:40 +0000 (19:44 -0000)]
Have new_packet_list_queue_draw() redraw the packet detail as well. Call
new_packet_list_queue_draw() whenever we mark/unmark frames. Fixes bug
4669.

svn path=/trunk/; revision=32981

14 years agoFrom Jakub Zawadzki:
Anders Broman [Wed, 26 May 2010 19:11:23 +0000 (19:11 -0000)]
From Jakub Zawadzki:
New functions: cf_read_frame_r, cf_read_frame

It's much easier to write:
 cf_read_frame (cf, fdata, &err, &err_info)
Than:
 wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd,
fdata->cap_len, &err, &err_info)

svn path=/trunk/; revision=32980

14 years agoUpdate name resolving description.
Jaap Keuter [Wed, 26 May 2010 19:06:17 +0000 (19:06 -0000)]
Update name resolving description.

svn path=/trunk/; revision=32979

14 years agoReference the 'interlink' plugin dir as an example (rather than agentx
Bill Meier [Wed, 26 May 2010 16:21:19 +0000 (16:21 -0000)]
Reference the 'interlink' plugin dir as an example (rather than agentx
  which is no longer a plugin).
Fix a typo.

svn path=/trunk/; revision=32978

14 years agoAdd a tooltip.
Martin Mathieson [Wed, 26 May 2010 15:51:47 +0000 (15:51 -0000)]
Add a tooltip.

svn path=/trunk/; revision=32977

14 years agoAdd some tooltips.
Martin Mathieson [Wed, 26 May 2010 15:20:10 +0000 (15:20 -0000)]
Add some tooltips.

svn path=/trunk/; revision=32976

14 years agoproto_registrar_dump_fields: output "" for blurb if blurb is a zero-length string.
Bill Meier [Wed, 26 May 2010 14:35:06 +0000 (14:35 -0000)]
proto_registrar_dump_fields: output "" for blurb if blurb is a zero-length string.

svn path=/trunk/; revision=32975

14 years agoExpert severity was still overlapping with bits length, so separate them.
Martin Mathieson [Wed, 26 May 2010 13:53:17 +0000 (13:53 -0000)]
Expert severity was still overlapping with bits length, so separate them.

svn path=/trunk/; revision=32974

14 years agoTry to optimize a bit.
Anders Broman [Wed, 26 May 2010 11:51:41 +0000 (11:51 -0000)]
Try to optimize a bit.

svn path=/trunk/; revision=32973

14 years agoFix indentation.
Anders Broman [Wed, 26 May 2010 11:51:07 +0000 (11:51 -0000)]
Fix indentation.

svn path=/trunk/; revision=32972

14 years agoExport value_string_ext related functions
Tomas Kukosa [Wed, 26 May 2010 07:39:03 +0000 (07:39 -0000)]
Export value_string_ext related functions

svn path=/trunk/; revision=32971

14 years agoUntabify.
Stig Bjørlykke [Wed, 26 May 2010 07:19:42 +0000 (07:19 -0000)]
Untabify.

svn path=/trunk/; revision=32970

14 years agoDon't report EINTR - it might be from a ^C.
Guy Harris [Wed, 26 May 2010 05:33:57 +0000 (05:33 -0000)]
Don't report EINTR - it might be from a ^C.

Do report the error string for other read errors, though.

svn path=/trunk/; revision=32969

14 years agoDon't send ^T output to the standard error if we're a capture child.
Guy Harris [Wed, 26 May 2010 04:29:36 +0000 (04:29 -0000)]
Don't send ^T output to the standard error if we're a capture child.

Make SIGINFO a restart-the-system-call signal, so reads etc. don't
return an error.

svn path=/trunk/; revision=32968

14 years agoRemember the default value of each protocol preference.
Jeff Morriss [Wed, 26 May 2010 03:31:30 +0000 (03:31 -0000)]
Remember the default value of each protocol preference.

If, when we're writing the preferences file, the current value of the
preference is the same as the default, write out the preference (since the
preference file is also the documentation for the preferences) but comment it
out (so that if, for example, you go back to an older version of Wireshark
you won't get warnings about non-existant preferences that you didn't
change--and thus probably don't care too much about).

It might be interesting to, in the future, add a UI to restore the default
values.

svn path=/trunk/; revision=32967

14 years agog_error -> expert_add_info_format. Fixup whitespace.
Gerald Combs [Wed, 26 May 2010 02:46:50 +0000 (02:46 -0000)]
g_error -> expert_add_info_format. Fixup whitespace.

svn path=/trunk/; revision=32966

14 years agoUse the right system call name.
Guy Harris [Wed, 26 May 2010 02:34:12 +0000 (02:34 -0000)]
Use the right system call name.

svn path=/trunk/; revision=32965

14 years agoIf dumpcap exits abnormally, report the error.
Guy Harris [Wed, 26 May 2010 02:32:19 +0000 (02:32 -0000)]
If dumpcap exits abnormally, report the error.

svn path=/trunk/; revision=32964

14 years agoMore <stdarg.h> cleanup; some are real bugs, some are just "don't do
Guy Harris [Wed, 26 May 2010 02:25:13 +0000 (02:25 -0000)]
More <stdarg.h> cleanup; some are real bugs, some are just "don't do
va_start and va_end unless you're actually going to use the va_list"
(those bring the va_start and va_end closer to the use point, which
makes it a little more obvious that we're using <stdarg.h> correctly and
makes it a little harder to use it incorrectly).

svn path=/trunk/; revision=32963

14 years agoPut in a warning about the <stdarg.h> problem that I just found and
Guy Harris [Wed, 26 May 2010 02:21:23 +0000 (02:21 -0000)]
Put in a warning about the <stdarg.h> problem that I just found and
fixed in one place (and am now fixing in some other places).

svn path=/trunk/; revision=32962

14 years agoOnce you've used a va_list, you can't use it again until you
Guy Harris [Wed, 26 May 2010 02:01:49 +0000 (02:01 -0000)]
Once you've used a va_list, you can't use it again until you
reinitialize it with va_start().  (Yes, there are platforms where
reusing the va_arg fails, e.g. Mac OS X on x86-64.)

svn path=/trunk/; revision=32961

14 years agoReindent a bit
Jeff Morriss [Wed, 26 May 2010 01:51:41 +0000 (01:51 -0000)]
Reindent a bit

svn path=/trunk/; revision=32960

14 years agoFix build without pcap.
Guy Harris [Wed, 26 May 2010 01:32:00 +0000 (01:32 -0000)]
Fix build without pcap.

svn path=/trunk/; revision=32959

14 years agoAdd a -q flag to dumpcap, to squelch its reporting of the packet count,
Guy Harris [Wed, 26 May 2010 00:19:27 +0000 (00:19 -0000)]
Add a -q flag to dumpcap, to squelch its reporting of the packet count,
and add support for SIGINFO, so, if your OS supports SIGINFO, you can
get the packet count by typing ^T.

svn path=/trunk/; revision=32958

14 years agor32323 broke packet detail tree expansion using the left/right keys on
Gerald Combs [Tue, 25 May 2010 23:55:33 +0000 (23:55 -0000)]
r32323 broke packet detail tree expansion using the left/right keys on
X11. Add back the removed code and add checks for expandable items.

svn path=/trunk/; revision=32957

14 years agoHandle lines ending in \r\n.
Bill Meier [Tue, 25 May 2010 22:27:00 +0000 (22:27 -0000)]
Handle lines ending in \r\n.
Fixes Bug #4780
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4780

svn path=/trunk/; revision=32956

14 years agoFrom Sam Leffler and Javier Cardona via email & bug 4793:
Gerald Combs [Tue, 25 May 2010 22:15:46 +0000 (22:15 -0000)]
From Sam Leffler and Javier Cardona via email & bug 4793:

Add 802.11s mesh support.

From me:

Merge all of the "#ifdef" and "#if 0" switches into "#ifdef
MESH_OVERRIDES"

Add Fast BSS Transition to the list of overridden tags.

Fix a couple of variable initialization errors.

svn path=/trunk/; revision=32955

14 years agoAdd a note about running autogen.sh.
Gerald Combs [Tue, 25 May 2010 22:11:00 +0000 (22:11 -0000)]
Add a note about running autogen.sh.

svn path=/trunk/; revision=32954

14 years agoRFC 4165 uses the same message/parameter formats as draft-12 did so let's
Jeff Morriss [Tue, 25 May 2010 21:12:43 +0000 (21:12 -0000)]
RFC 4165 uses the same message/parameter formats as draft-12 did so let's
call it RFC 4165.

svn path=/trunk/; revision=32953

14 years agoOnly try header reassembly for TCP.
Anders Broman [Tue, 25 May 2010 21:00:55 +0000 (21:00 -0000)]
Only try header reassembly for TCP.

svn path=/trunk/; revision=32952

14 years agoRemove find_val_for_string
Jeff Morriss [Tue, 25 May 2010 20:57:51 +0000 (20:57 -0000)]
Remove find_val_for_string

svn path=/trunk/; revision=32951

14 years agofind_val_for_string() is only used in prefs.c so remove the prototype
Jeff Morriss [Tue, 25 May 2010 20:57:14 +0000 (20:57 -0000)]
find_val_for_string() is only used in prefs.c so remove the prototype
and make it static.

When reading enum preferences, use the current value of the preference as the
default value of the preference instead of a hard-coded 1.  This way if we
couldn't find the appropriate value we'll don't end up changing the preference
to something that may or may not make sense.

svn path=/trunk/; revision=32950

14 years agoPull the big pile of code that handles the
Guy Harris [Tue, 25 May 2010 20:14:22 +0000 (20:14 -0000)]
Pull the big pile of code that handles the
capture-stopping/file-switching operation into a routine.  Move a few
variables into the loop_data structure so that routine can get at them.

svn path=/trunk/; revision=32949

14 years agoFrom Neil Piercy:
Anders Broman [Tue, 25 May 2010 19:29:23 +0000 (19:29 -0000)]
From Neil Piercy:
Fix  misleading PER Bit string display.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4789
(I Added bits display)

svn path=/trunk/; revision=32948

14 years agoFix for bug 4782:
Jaap Keuter [Tue, 25 May 2010 17:47:00 +0000 (17:47 -0000)]
Fix for bug 4782:
Use proper bitmask to test the "MATCH"-part.

svn path=/trunk/; revision=32947

14 years agoAdd a filter for DCT2000 error strings, and allow it be included in generated filters...
Martin Mathieson [Tue, 25 May 2010 14:02:17 +0000 (14:02 -0000)]
Add a filter for DCT2000 error strings, and allow it be included in generated filters from RLC status window.

svn path=/trunk/; revision=32946

14 years agoRe-organise which FI bits are used to store expert severity and event info, in order...
Martin Mathieson [Tue, 25 May 2010 11:21:51 +0000 (11:21 -0000)]
Re-organise which FI bits are used to store expert severity and event info, in order to avoid clash with bit offset and length as added in 4413 (Improve bitview display).

The event info values were (mostly) done as though they were flags rather than values, but as it doesn't really make sense to combine events I changed them to use contiguous values.  They now use the 8 m.s. bits, so there are now 9 unused bits available for new uses.

svn path=/trunk/; revision=32945

14 years agoSupport of value_string_ext in the asn2wrs using new directive #.USE_VALS_EXT
Tomas Kukosa [Tue, 25 May 2010 09:07:12 +0000 (09:07 -0000)]
Support of value_string_ext in the asn2wrs using new directive #.USE_VALS_EXT
Example usage in NBAP

svn path=/trunk/; revision=32944

14 years agoRemove faulty vendor from SIP AVP:s, update comments.
Anders Broman [Tue, 25 May 2010 08:42:24 +0000 (08:42 -0000)]
Remove faulty vendor from SIP AVP:s, update comments.

svn path=/trunk/; revision=32943

14 years agoFrom Jakub Ruzicka:
Anders Broman [Tue, 25 May 2010 05:48:36 +0000 (05:48 -0000)]
From Jakub Ruzicka:
Trunk packet support in IAX2 dissector
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4783

svn path=/trunk/; revision=32942

14 years agoFrom H.sivank: GtkOSXApplication support.
Guy Harris [Tue, 25 May 2010 00:35:44 +0000 (00:35 -0000)]
From H.sivank: GtkOSXApplication support.

Call the various flavors of OS X integration just "OS X integration",
not anything with "IGE" in it - it appears that, in some places,
"ige-mac-integration" refers only to the older Carbon-based functions,
although the library still appears to be called -ligemacintegration.

Update the URLs for the information about the OS X integration
libraries.

Clean up help message for --with-pcap-remote.

Clean up white space a bit.

Speaking of white space, it's "Mac OS X", not "MacOS X".

svn path=/trunk/; revision=32941

14 years agoMinor rewording; Also: add note to not use "" for a hf[] array blurb.
Bill Meier [Tue, 25 May 2010 00:00:58 +0000 (00:00 -0000)]
Minor rewording; Also: add note to not use "" for a hf[] array blurb.

svn path=/trunk/; revision=32940

14 years agoJose Pedro Oliveira <jpo@di.uminho.pt>
Jörg Mayer [Mon, 24 May 2010 23:41:21 +0000 (23:41 -0000)]
Jose Pedro Oliveira <jpo@di.uminho.pt>
(via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4786)

Add missing +INCLUDE(CheckVariableExists) to make the previous
commit work.

svn path=/trunk/; revision=32939

14 years agoAt least according to the CMake 2.6 documentation,
Guy Harris [Mon, 24 May 2010 22:50:30 +0000 (22:50 -0000)]
At least according to the CMake 2.6 documentation,
CHECK_VARIABLE_EXISTS() can be used to check for C variables; use that
to check for pcap_version.

svn path=/trunk/; revision=32938

14 years agoFix the value_string regexp so it doesn't match value_string_ext (which we don't...
Jeff Morriss [Mon, 24 May 2010 22:31:51 +0000 (22:31 -0000)]
Fix the value_string regexp so it doesn't match value_string_ext (which we don't have to check for NULL termination and the like)

svn path=/trunk/; revision=32937

14 years ago- Add a comment about the magic in the FindXXX.cmake filenames.
Jörg Mayer [Mon, 24 May 2010 21:59:29 +0000 (21:59 -0000)]
- Add a comment about the magic in the FindXXX.cmake filenames.
- Fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4786
  Define HAVE_PCAP_VERSION if HAVE_PCAP_LIB_VERSION is set.

svn path=/trunk/; revision=32936

14 years agoUse the new name for the last argument to proto_tree_add_item().
Guy Harris [Mon, 24 May 2010 17:39:03 +0000 (17:39 -0000)]
Use the new name for the last argument to proto_tree_add_item().

svn path=/trunk/; revision=32935