Commit Graph

41616 Commits

Author SHA1 Message Date
Martin Kaiser 048fcbdf2f initialize required interface_t components of a newly created interface
this should fix crashes in the interface list handling when the
interface list contains pipes initliazed by scan_local_interfaces() or
add_pipe_cb()

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7511

svn path=/trunk/; revision=43922
2012-07-22 22:09:46 +00:00
Evan Huus 10c9e21812 Only initialize fields in the print_args that are actually used.
This prevents a memory leak where we were allocating for print_args.range
but never freeing.

svn path=/trunk/; revision=43921
2012-07-22 22:01:10 +00:00
Evan Huus daa0ff3ac8 The XMPP dissector was allocating a new parser for every packet and never
freeing them. This was slow and leaked gobs of memory.

Be like XML: allocate one parser during set-up and share it around.

svn path=/trunk/; revision=43920
2012-07-22 21:48:51 +00:00
Jakub Zawadzki 5c75ecd424 Continuation of r43338, value stored in record->col_text_len always fit in gushort.
svn path=/trunk/; revision=43919
2012-07-22 21:12:16 +00:00
Jakub Zawadzki ac46b9cf5b Fix some memory leaks of returned string from gtk_combo_box_text_get_active_text()
gtk_combo_box_text_get_active_text() and gtk_combo_box_get_active_text() [from old-gtk-compat.h]
returns *newly allocated string (...) must be freed with g_free().*

svn path=/trunk/; revision=43918
2012-07-22 21:06:46 +00:00
Anders Broman 01e69df536 Get rid of not needed includes
svn path=/trunk/; revision=43917
2012-07-22 16:48:52 +00:00
Michael Tüxen 830283048b Get rid of a GTK warning showing up when wireshark is started.
svn path=/trunk/; revision=43916
2012-07-22 16:41:59 +00:00
Evan Huus afec796598 Two little cleanups from cppcheck:
- unused variable
= don't trust GTK_IS_PROGRESS_BAR to provide the necessary parentheses

svn path=/trunk/; revision=43915
2012-07-22 15:58:36 +00:00
Gerald Combs 79dd3fc264 [Automatic manuf, services and enterprise-numbers update for 2012-07-22]
svn path=/trunk/; revision=43911
2012-07-22 14:03:34 +00:00
Martin Mathieson 21f096d984 Fix horizontal line that gets drawn from the last ACK to the r.h. edge
of the graph (when the last SN hasn't been acknowledged).

svn path=/trunk/; revision=43910
2012-07-22 05:13:49 +00:00
Martin Mathieson c86f69801f Delete stray debug printf() call left in last commit.
svn path=/trunk/; revision=43909
2012-07-22 04:45:14 +00:00
Martin Mathieson 7abae04478 Calling tvb_format_text() for binary data segments (c1400 bytes) was
*very* slow (in a profiled run where FTP data is carried over LTE
MAC/RLC/PDCP/IP/TCP, this one function call was 20% of overall runtime).

Have limited to call to ITEM_LABEL_LENGTH, as that is all that
will be displayed anyway.  As per comment, I'm not convinced that doing
this for binary FTP data segments is worthwhile at all.  It doesn't
even display as hex.

svn path=/trunk/; revision=43908
2012-07-22 04:44:16 +00:00
Michael Mann 0d4eafb04d Update display filter names per Bug 2794. Part 1 of many.
svn path=/trunk/; revision=43907
2012-07-22 03:06:37 +00:00
Bill Meier 45f9935f04 Additional cleanup:
packet-sdp.c:
  Init 'proto_sprt' in proto_reg_handof..()
    [instead of using a registered init fcn];

packet-sprt.c:
  Fix some typos;
  Comment out dissect_sprt_heur() since it doesn't
   really do any dissection. Add an XXX comment re same.

packet-v150fw.c:
  Remove unused 'v150fw_handle' and thus unneeded proto_reg_handoff...();
  Add an XXX comment re the (commented out) dissect_v150fw() not actually
   doing any dissection.


svn path=/trunk/; revision=43902
2012-07-21 22:06:17 +00:00
Evan Huus 700524155d Fix mis-allocated key size as caught by valgrind.
We have to divide the 'length' field to work with guint32 pointer arithmetic,
but we still want to allocate and memcpy the original length value, since
both of those operate in raw bytes, not blocks of sizeof(guint32).

svn path=/trunk/; revision=43901
2012-07-21 19:18:12 +00:00
Martin Mathieson 7b7ab4c70e Don't scale sequence numbers back to 0 (like TCP does). I want to see
the real sequence number.  TODO: show the absolute time...

svn path=/trunk/; revision=43900
2012-07-21 17:21:19 +00:00
Evan Huus 4ddb02f6c1 Don't throw an assertion if we can't find certain XMPP attributes when
trying to track sessions for iq, jabber, et al. Just return, so we can
dissect whatever attributes we can find. An expert info already gets added
later on.

The other part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7509


svn path=/trunk/; revision=43899
2012-07-21 16:29:48 +00:00
Evan Huus 2949d44b74 The se_tree_* functions are destructive to the key, so save and restore
the key around each call.

Fixes part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7509

svn path=/trunk/; revision=43898
2012-07-21 16:10:16 +00:00
Bill Meier 67e3f64476 Move 99.9 % of packet-sprt.h to packet-sprt.c since it's used only there.
Convert "4 space tabs" to spaces (missed in previous commit).

svn path=/trunk/; revision=43897
2012-07-21 15:32:36 +00:00
Evan Huus f9ec58ae1d Because storing the address of a stack variable seemed like such
a good idea at the time...

Allocate seasonal memory for it instead.

svn path=/trunk/; revision=43896
2012-07-21 15:31:35 +00:00
Martin Mathieson 8a8adffcf5 Initialise ext_len to avoid an "uninitialised use" error.
svn path=/trunk/; revision=43895
2012-07-21 15:21:43 +00:00
Pascal Quantin f865ece795 Fix a typo in r43893
svn path=/trunk/; revision=43894
2012-07-21 14:45:44 +00:00
Pascal Quantin 1cba729222 Fix a few encoding arguments
svn path=/trunk/; revision=43893
2012-07-21 14:43:36 +00:00
Bill Meier 15e42f38d7 Remove unneeded #includes;
Convert "4 space tabs" to spaces;
Remove trailing whitespace;
Change hf[] entry blurbs from "" to NULL;
Add svn:id and svn:eol-style properties.

svn path=/trunk/; revision=43892
2012-07-21 14:14:07 +00:00
Bill Meier 918f05baa8 Calls to col_...() and expert...() functions should not be under 'if (tree)';
Remove unneeded #include;
Convert "4 space tabs" to spaces;
Remove trailing whitespace;
Add svn:id and svn:eol-style properties.

svn path=/trunk/; revision=43891
2012-07-21 14:03:46 +00:00
Evan Huus 6ed0c79956 Fix GCC build.
I'm not exactly sure what's up with the v150fw dissector, since
it defines a heuristic which is never used and registers in no tables.
The comments indicate it's carried over rtp, but rtp doesn't have a
heuristic table. Revision 43887 caused rtp to load a handle to v150fw,
but I've done a quick scan and I don't think it ever actually does anything
with the handle.

For now, #if 0 out the heuristic function to avoid compile errors. A better
fix is needed though.

svn path=/trunk/; revision=43890
2012-07-21 13:51:51 +00:00
Evan Huus 897d72c358 Fix some of the GCC build errors, more to come.
svn path=/trunk/; revision=43889
2012-07-21 13:25:14 +00:00
Bill Meier f701cc63e5 Add svn:keywords and svn:eol-style properties
Convert "4 space tabs" to spaces.

svn path=/trunk/; revision=43888
2012-07-21 13:18:36 +00:00
Michael Mann 3d502b97f1 Updated patch from https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3507
svn path=/trunk/; revision=43887
2012-07-21 12:38:59 +00:00
Pascal Quantin 996e2f58b8 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7508 :
Display snmp.contextName as FT_STRING

svn path=/trunk/; revision=43883
2012-07-21 08:50:32 +00:00
Evan Huus e70e0e6bfc Enhancements to the cppcheck script:
- Take command-line arguments of files to check. In this case make output
  GCC-like, as it's much more human-readable than the HTML.
- If there are no arguments, provide HTML output for the entire current
  directory like before, for use with build-bot integration.
- Don't hack with the CWD to try and get include-paths to work. Cppcheck
  will warn already if it can't find them, and since a lot of the checks
  still work in any case, a warning is more appropriate than an error or
  a hack.

svn path=/trunk/; revision=43882
2012-07-21 02:43:10 +00:00
Guy Harris bddb918dc4 The 32-bit-key tree code assumes that the pointer to the key can be cast
to a pointer to a guint32 and dereferenced.  On some platforms, such as
SPARC, this requires that the pointer be aligned on a 4-byte boundary;
there is no guarantee that the data field of an address structure is
aligned on a 4-byte boundary, so allocate a buffer for a copy of that
data and copy the data into it, and free it when we're done with it.

Should fix bug 7501.

svn path=/trunk/; revision=43880
2012-07-21 01:24:54 +00:00
Gerald Combs d6533eb467 Add display filter and name resolution controls to the standard Qt open
file dialog. We still need to add a preview.

svn path=/trunk/; revision=43879
2012-07-21 01:21:41 +00:00
Gerald Combs 75564d57c1 Remove the filename from the GTK+ open file preview.
svn path=/trunk/; revision=43878
2012-07-21 01:18:57 +00:00
Gerald Combs b0a562b82d Remove the filename from the Win32 file dialog preview. It's already
shown in two places and there's no reason to show it in a third.

Use CommDlg_OpenSave_GetFilePath instead of CommDlg_OpenSave_GetSpec so
that previews work properly for folders.

svn path=/trunk/; revision=43877
2012-07-21 01:14:08 +00:00
Guy Harris c0506eda4a simple_message_box() does not expect Pango markup, so escaping is
not necessary, and just messes up the display.

Fixes bug 7489.

#BACKPORT

svn path=/trunk/; revision=43875
2012-07-21 00:12:21 +00:00
Jakub Zawadzki 73b0691fd8 gtk_container_add() -> gtk_box_pack_start() [bug #7377]
svn path=/trunk/; revision=43874
2012-07-20 21:35:45 +00:00
Jakub Zawadzki e4b07c11d4 Decode as: Don't add notebook twice to hbox (fix r43825)
svn path=/trunk/; revision=43873
2012-07-20 21:34:23 +00:00
Bill Meier 7eb2b89e71 From Lori Tribble:
Attached is a patch which corrects the string construction issue in the
PropertyStates method.  This patch also corrects a spelling error for
'utcTimeSyncronization' and adds decode support for this property.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6475#c8

svn path=/trunk/; revision=43868
2012-07-20 19:09:05 +00:00
Gerald Combs 69b1c2dd84 Add a comment.
svn path=/trunk/; revision=43866
2012-07-20 18:04:00 +00:00
Gerald Combs 6b04299ae4 According to
http://blogs.msdn.com/b/astebner/archive/2010/10/20/10078468.aspx

and bug 7507 the Visual C++ 2010 redistributable installer might want
to reboot the system. Tell it not to do that and request a reboot at
the end of the installation process if needed.

svn path=/trunk/; revision=43864
2012-07-20 17:56:16 +00:00
Pascal Quantin 40e08c936d Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7435 :
Check available length before trying to dissect SSL packet when desegmentation is not activated

svn path=/trunk/; revision=43862
2012-07-20 15:37:45 +00:00
Jakub Zawadzki d1500622fc Fix bug #7377 for:
- UAT
 - Packet in new window
 - Supported protocols dialog.

svn path=/trunk/; revision=43861
2012-07-20 15:21:40 +00:00
Jakub Zawadzki 5eee82d32f For all recent changes (r43820...r43829) from gtk_container_add() to gtk_box_pack_start() set expand parameter to TRUE.
svn path=/trunk/; revision=43860
2012-07-20 15:08:27 +00:00
Jakub Zawadzki 5b7e9a9152 BytesView: use "view" class (GtkTextView) instead of "entry" (GtkEntry) one.
Cheat a little and always make BytesView focused to make render blue-highlight instead of grey /inactive/ one.

XXX, we should have our own BytesView class and allow user define his own style in css.

svn path=/trunk/; revision=43859
2012-07-20 13:59:57 +00:00
Jörg Mayer 6ac0c92fb4 Order alphabetically
svn path=/trunk/; revision=43858
2012-07-20 12:00:37 +00:00
Jörg Mayer 964008c959 Add qtshark_de.ts
svn path=/trunk/; revision=43857
2012-07-20 11:59:25 +00:00
Jakub Zawadzki 642861a4e1 Fix bug #7502
In gtk3 upper value of adjustment can't be smaller than page_size.
Otherwise strange things happens ;-)

svn path=/trunk/; revision=43856
2012-07-20 11:59:20 +00:00
Jörg Mayer 0441109c33 Beginnings of a German translation (review/improvements welcome)
svn path=/trunk/; revision=43855
2012-07-20 11:58:16 +00:00
Jakub Zawadzki 98c2390515 Fix some clang warnings: implicit conversion from enumeration type 'GtkStateType' to different enumeration type 'GtkStateFlags' [-Werror,-Wconversion]
GTK_STATE_NORMAL and GTK_STATE_FLAG_NORMAL are both 0.

svn path=/trunk/; revision=43854
2012-07-20 11:10:29 +00:00