Commit graph

32734 commits

Author SHA1 Message Date
Jeff Morriss
000b99fc5f Free the err_str from capture_interface_list() even if the error isn't CANT_GET_INTERFACE_LIST.
svn path=/trunk/; revision=33866
2010-08-20 22:15:07 +00:00
Jeff Morriss
674a4c9285 When freeing the fileset entries, free the entry itself too.
svn path=/trunk/; revision=33865
2010-08-20 22:13:46 +00:00
Jeff Morriss
522c9b85b8 Don't leak the memory used by the original title when we're appending the version to it.
svn path=/trunk/; revision=33864
2010-08-20 22:12:55 +00:00
Jeff Morriss
7c9aac4d4a From Turney Cal as a followup to rev 33841 and bug 5038:
I tested your update ("wireshark -r foo.pcap" from a cmd window) and 
found that it did not use the current folder for the next Open dialog 
and didn't save the folder in recent.  The attached patch prepends the
filename with the current folder.

From me: don't leak memory when doing it.

svn path=/trunk/; revision=33863
2010-08-20 21:56:52 +00:00
Jeff Morriss
9d734bdea9 From Kirill A. Korinskiy via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5122:
I try use diameters XML files as sources for my XSL transform by xslt and found
some typos. I attach patch for fixing it.

svn path=/trunk/; revision=33862
2010-08-20 19:41:35 +00:00
Anders Broman
819f0ab85c Switch wlan_stat_dlg to use GUIManager step 2.
svn path=/trunk/; revision=33860
2010-08-20 14:19:06 +00:00
Stig Bjørlykke
4511d518b6 Use defined functions.
svn path=/trunk/; revision=33859
2010-08-20 12:05:44 +00:00
Anders Broman
9e6e00b9a5 Remove a comment.
svn path=/trunk/; revision=33858
2010-08-20 11:57:20 +00:00
Anders Broman
7b0709b3d5 Fix indentation.
svn path=/trunk/; revision=33857
2010-08-20 11:56:44 +00:00
Anders Broman
383d3d3da9 Switch wlan_stat_dlg to use GUIManager step 1.
svn path=/trunk/; revision=33856
2010-08-20 11:54:18 +00:00
Bill Meier
dac7978557 Minor cleanup of rtp graph:
- Display current value in combo boxes (pixels_per_tick, etc) to always
   match actual values being used to create graph;
 - yscale combo box entries: 
    show values >= 1 sec as sec (not s000 ms);
 - Determine max yscale label width properly as the largest of the
   top or middle label lengths;
 - Cleanup some indentation.

svn path=/trunk/; revision=33855
2010-08-19 22:04:37 +00:00
Bill Meier
d5471f6a3d Fix two bugs related to use of the graph Y-Axis Scale combo-box:
1. Incorrect specification of units: Should be ms & s not us and ms;
   Bug introduced in SVN #33834.
2. Selecting 50ms as the yscale actually used 50us as the scale;
   Bug introduced in SVN #30543.

svn path=/trunk/; revision=33854
2010-08-19 21:51:35 +00:00
Stig Bjørlykke
ec08ecd6fe Fixed the popup menu table:
- Added missing NULL initializers
- Fixed some typos in the menu items

svn path=/trunk/; revision=33853
2010-08-19 20:11:28 +00:00
Anders Broman
4f0a8b5bec Use better naming.
svn path=/trunk/; revision=33852
2010-08-19 19:05:56 +00:00
Anders Broman
ee96dd5c00 Switch over to use the GUIManager(can be turned of by a #define).
svn path=/trunk/; revision=33851
2010-08-19 19:05:11 +00:00
Bill Meier
b662825831 Fix gcc compile errors....
svn path=/trunk/; revision=33850
2010-08-19 15:22:03 +00:00
Bill Meier
3911b90cde Use proper signatures for event callback functions:
EG: Non-event signal callback functions shouldn't
   be directly used as event callback functions.
Replace use of deprecated "GtkSignalFunc";
Whitespace cleanup.

svn path=/trunk/; revision=33849
2010-08-19 15:02:23 +00:00
Jeff Morriss
1fcaf7fb3f Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5114 (infinite loop in
bootp dissector when dissecting packetcable MTA capabilities).

Limit the tlv_len to G_MAXUINT16 to prevent an integer overflow from causing us to
increment the working offset by 0 (thus causing us to loop).

svn path=/trunk/; revision=33846
2010-08-19 02:17:01 +00:00
Guy Harris
89c43c1832 Add placeholder items for ^Z as Edit->Undo, shift-^Z as Edit->Redo,
and ^A as Edit->Select All.

Add more details about implementing Undo/Redo/Cut/Copy/Paste/Select All
in the comment for the placeholder items.

svn path=/trunk/; revision=33845
2010-08-19 00:14:07 +00:00
Bill Meier
5ff36b1a2a Use correct signature for "button-press-event" callback function;
Whitespace cleanup;
Use gboolean as appropriate; 

svn path=/trunk/; revision=33844
2010-08-19 00:09:56 +00:00
Bill Meier
fac1cfc492 Various minor cleanup:
- Non-event signal callback functions should return void;
 - Event signal callback had missing 'user_data' arg;
 - Rename various symbols for clarity;
 - Rename local functions with names of form gtk_...;
 - Use gboolean where appropriate;
 - Remove all 'exit(10)' statements;
 - Whitespace;
 - ...

svn path=/trunk/; revision=33843
2010-08-18 22:20:01 +00:00
Gerasimos Dimitriadis
296be75cb8 Fix for Bug 5052:
Good ZigBee Beacon detected as malformed

In ZigBee 2006 the Tx-Offset is optional, while in the 2007 and
later versions, the Tx-Offset is a required value. Since both 2006 and
and 2007 versions have the same protocol version (2), we should treat
the Tx-Offset as well as the update ID as optional elements

svn path=/trunk/; revision=33842
2010-08-18 21:12:26 +00:00
Jeff Morriss
323c282897 main_cf_cb_file_read_finished(): use get_dirname() to get the directory of the
current file name.

This fixes a crash after failing to allocate some massive number of bytes if
the file name did not contain a path--which is the case when doing
"wireshark -r myfile.pcap".

svn path=/trunk/; revision=33841
2010-08-18 19:11:07 +00:00
Martin Mathieson
b7158c4e2d Fix ipprim IPv6 port number offsets.
svn path=/trunk/; revision=33840
2010-08-18 10:47:21 +00:00
Martin Mathieson
75af18e3a8 Show IPv6 addresses in ipprim summary line.
svn path=/trunk/; revision=33839
2010-08-18 10:33:54 +00:00
Anders Broman
1b9da2fcf0 Fix indentation.
svn path=/trunk/; revision=33838
2010-08-18 08:09:37 +00:00
Anders Broman
d5460f420d From Cal Turney:
Restores Mark All Displayed item when all packets are displayed.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5115

svn path=/trunk/; revision=33836
2010-08-18 07:48:37 +00:00
Bill Meier
b0fcd85278 Various minor cleanups....
svn path=/trunk/; revision=33835
2010-08-18 01:01:06 +00:00
Bill Meier
d97116bd7a Minor cleanup of iax2 graph:
- Display current value in combo boxes (pixels_per_tick, etc) to always
  match actual values being used to create graph;
- yscale combo box entries: 
   show ms values as ms (not x000 usecs);
   show us values with unit "us" (not "ms");
- Determine max yscale label width properly as the largest of the
  top or middle label lengths;
- Cleanup some indentation.

svn path=/trunk/; revision=33834
2010-08-18 00:04:53 +00:00
Gerasimos Dimitriadis
6ebc2acff4 Updates due to ITU Operational Bulletins 956 and 957
svn path=/trunk/; revision=33833
2010-08-17 22:48:39 +00:00
Gerasimos Dimitriadis
27b4dfa426 The Mobile Status msg in BSSAP+ has IMSI as first possible IE
svn path=/trunk/; revision=33832
2010-08-17 21:35:26 +00:00
Martin Mathieson
a0387bbbc6 Change a channel type #define to be contiguous with others.
svn path=/trunk/; revision=33831
2010-08-17 16:12:29 +00:00
Bill Meier
d00be24b23 (Trivial) Reword comments about callback function signatures.
svn path=/trunk/; revision=33830
2010-08-17 14:01:33 +00:00
Bill Meier
1b0339247f (Trivial) window_delete_event_cb() 'user_data' arg is unused ...
svn path=/trunk/; revision=33829
2010-08-17 13:59:15 +00:00
Bill Meier
8fe3afba29 Minor changes related to signal callback functions:
- all: filter_te_syntax_check_cb should have an (unused) 'gpointer user_data' arg;
- filter_dlg.c: filter_sel_list_cb user_data arg is unused;

svn path=/trunk/; revision=33828
2010-08-17 13:44:12 +00:00
Jörg Mayer
90b105c5e6 Commit 33815 renamed packet-nt-sonmp.c to packet-ndp.c
svn path=/trunk/; revision=33827
2010-08-17 07:00:58 +00:00
Guy Harris
cdf1196e58 Discourage people from stealing <control> keystrokes that have somewhat
standard meanings for anything other than those standard purposes.

svn path=/trunk/; revision=33826
2010-08-17 01:36:53 +00:00
Bill Meier
09e845ba03 Fix two typos/bugs (introduced by me in the previous commit).
svn path=/trunk/; revision=33825
2010-08-17 01:01:48 +00:00
Bill Meier
3398f73455 From Tom Hughes: FastCGI dissector.
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5067

From me: - Fix one bug;
         - Add a comment about some code which doesn't display info
            in COL_INFO as intended due to what seems to be a Wireshark bug in 
            tcp_dissect_pdus() when there are multiple records in a 
            TCP frame.

svn path=/trunk/; revision=33824
2010-08-17 00:51:44 +00:00
Guy Harris
37dbda5b82 No need to have the same separator line twice, once with the new packet
list and once with the old packet list.

Have Boolean variables for some of the predicates in
set_menus_for_selected_packet(), to clarify what they're testing.

Clean up indentation.

Add some comments for various issues.

(FYI, what "Restore the functionality of <Ctrl>A and <Ctrl>X to the
filter textbox." means, in the comment for the previous checkin, "don't
use <Ctrl>A or <Ctrl>X for our own purposes, so they work the same way
they do in other applications using GTK+"; the checkin changed some menu
items not to use <Ctrl>A and <Ctrl>X as accelerators.)

svn path=/trunk/; revision=33823
2010-08-16 23:26:36 +00:00
Stephen Fisher
139d2e3af2 Clarify that the "Sequence number" is given in big endian representation and the "Sequence number (LE)" is little endian.
svn path=/trunk/; revision=33822
2010-08-16 22:28:23 +00:00
Stephen Fisher
62a058ef5d Change the protocol name from "Nortel NDP" to "Nortel Discovery Protocol" in the protocol registration.
svn path=/trunk/; revision=33821
2010-08-16 22:01:12 +00:00
Stephen Fisher
67aa3ba7d1 Fix display of Client's FQDN and clear up the confusion with the S, O and N bits from the RFC descriptions.
svn path=/trunk/; revision=33820
2010-08-16 21:41:29 +00:00
Gerald Combs
366d3cf473 Fix an include.
svn path=/trunk/; revision=33819
2010-08-16 18:58:24 +00:00
Gerald Combs
303030f5c1 Fix compilation on Windows.
svn path=/trunk/; revision=33818
2010-08-16 18:32:27 +00:00
Anders Broman
46cd4a8507 From Cal Turney:
1. Restore the functionality of <Ctrl>A and <Ctrl>X to the filter textbox.  
2. Assign intuitive shortcuts without consuming any new shortcut letters.  
3. Add 'Un-Time Reference All Packets' to the menu.
4. Disallow the marking or ignoring of all packets in the capture.  
5. Make the Mark/Ignore/Time Reference-related menu items context sensitive. 
6. Add 'ref_time_count' to the capture_file structure
7. Utilize marked/ignored/ref_time_count vars to prevent needless looping thru
   the entire packet list by exiting the loop when it becomes zero.

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

svn path=/trunk/; revision=33817
2010-08-16 18:17:45 +00:00
Gerald Combs
6ef98db3bb Don't drop characters in the middle of a UTF-8 sequence. Fixes bug 5066.
Use an ellipsis character instead of three dots.

svn path=/trunk/; revision=33816
2010-08-16 17:53:43 +00:00
Stephen Fisher
a81a8dd250 Modernize the SONMP ("SynOptics Network Management Protocol") dissector by renaming it to NDP ("Nortel Discovery Protocol") and do some basic cleanup.
svn path=/trunk/; revision=33815
2010-08-16 17:19:42 +00:00
Guy Harris
cd67ad0047 Clean up indentation.
svn path=/trunk/; revision=33814
2010-08-16 17:19:15 +00:00
Anders Broman
9da9ac87d3 Typo - wrong IE code for APN aggregate maximum bit rate in message
Activate default EPS bearer context request.

svn path=/trunk/; revision=33813
2010-08-16 15:31:13 +00:00