Commit graph

26944 commits

Author SHA1 Message Date
Bill Meier
460957c687 From Jakub Zawadzki: g_gnprintf & etc: Use size of buffer [not size -1];
From me:
   - As suggested by Jakub actually use sizeof(...) rather than a numeric constant
      in various places;
   - Use #if 0 rather than /* */ to comment out code;
   - Fix indentation to be consistent.


svn path=/trunk/; revision=27773
2009-03-18 15:25:19 +00:00
Bill Meier
4f34bb9b15 From Jakub Zawadzki: g_gnprintf & etc: Use size of buffer [not size -1];
- As suggested actually use sizeof(...) rather than a numeric constant.
  - g_snprintf() and g_vsnprintf() since glib 1.3.12 do not return -1.

svn path=/trunk/; revision=27772
2009-03-18 15:03:46 +00:00
Bill Meier
734ec176e1 From Jakub Zawadzki: Use size of buffer [not size -1];
Also: as suggested actually use sizeof() rather than a constant.
From me:
 -Rework hostlist_port_to_str slightly to be simpler and
   more efficient;
 -Fix indentation to be consistent. 

svn path=/trunk/; revision=27771
2009-03-18 14:44:15 +00:00
Anders Broman
bd72a48963 From Munenori Ohuchi:
Enhacement to support 'WiMAX Forum/3GPP2 Proxy Mobile IPv4'.

svn path=/trunk/; revision=27770
2009-03-18 07:36:53 +00:00
Anders Broman
85b8227311 From Bjørn Mork:
Decode ipv6prefix attributes in packet-radius.

svn path=/trunk/; revision=27769
2009-03-18 07:31:35 +00:00
Anders Broman
26e5b929fa From Patrick A Baldwin:
Enhancements for CCSDS Dissectors.

svn path=/trunk/; revision=27768
2009-03-18 07:29:36 +00:00
Gerald Combs
2d24475011 Move to 1.1.4.
svn path=/trunk/; revision=27767
2009-03-18 05:42:03 +00:00
Bill Meier
0095250d83 From Jakub Zawadzki: Glib2 g_snprintf doesn't return -1;
Also: from me: fix an "off by 1" issue in inet_ntop_4
   which could result in a trailing character of the
   output string being truncated rather than an ENOSPC
   error being reported.
   

svn path=/trunk/; revision=27766
2009-03-18 00:03:41 +00:00
Gerald Combs
86ea84d2e4 Build 1.1.3.
svn path=/trunk/; revision=27765
2009-03-17 23:26:55 +00:00
Anders Broman
e7ccbd26d1 Revert the changes, it blows up when resizeing windows...
svn path=/trunk/; revision=27764
2009-03-17 21:33:15 +00:00
Anders Broman
2b4be62f25 Yet another typo..
*sigh

svn path=/trunk/; revision=27763
2009-03-17 20:32:19 +00:00
Anders Broman
2a6752e050 Use GTK 2.16 and glib 2.20.
svn path=/trunk/; revision=27762
2009-03-17 20:21:16 +00:00
Anders Broman
9fd55bf111 Fix a typo.
svn path=/trunk/; revision=27761
2009-03-17 20:20:36 +00:00
Guy Harris
5ccab9cbcb Clean up indentation.
Cast the num_msus and num_bytes values to double before dividing them by
the appropriate divisor, to make sure the division is done in floating
point; that's only necessary in one case (when dividing by an integer),
but we do it in all cases for regularity.

g_strdup_printf() g_mallocs the string; use g_strdup() for the
zero-divisor case, so that the string is g_mallocated in all cases. 
Note in a comment that they need to be freed.

Make the array to which the strings in question are allocated arrays of
"char *" rather than "const char *", to catch cases where a constant
string is assigned to them.

svn path=/trunk/; revision=27760
2009-03-17 19:37:10 +00:00
Bill Meier
a993847667 (Minor): Remove some unneccessary code; Fix a typo;
svn path=/trunk/; revision=27759
2009-03-17 19:30:58 +00:00
Bill Meier
4f01ce929b Add a comment about the way g_snprintf is used.
svn path=/trunk/; revision=27758
2009-03-17 19:28:05 +00:00
Anders Broman
7a9ca393fb Get rid of another Clist.
svn path=/trunk/; revision=27757
2009-03-17 18:36:00 +00:00
Bill Meier
a213345be2 Add a comment about the way g_snprintf() is used.
svn path=/trunk/; revision=27756
2009-03-17 18:13:44 +00:00
Gerald Combs
06b9cdf93f Don't compile with -WX for flex-generated output, similar to what we do in
wiretap/Makefile.nmake.

svn path=/trunk/; revision=27755
2009-03-17 16:05:07 +00:00
Bill Meier
b3f428acb4 Do checkAPIs for wireshark_SOURCES
svn path=/trunk/; revision=27754
2009-03-17 15:39:07 +00:00
Bill Meier
793fcdd849 Use smiFree for libsmi >= v 0.4.8; Also: sprintf->g_snprintf
svn path=/trunk/; revision=27753
2009-03-17 15:34:18 +00:00
Anders Broman
5a7b5889f6 Commited by mistake, reverting.
svn path=/trunk/; revision=27752
2009-03-17 05:56:59 +00:00
Bill Meier
1321c9981b sprintf --> g_snprintf
svn path=/trunk/; revision=27751
2009-03-17 01:47:20 +00:00
Guy Harris
fa703af333 Update the comment about Ross Williams' paper.
svn path=/trunk/; revision=27750
2009-03-17 00:13:59 +00:00
Ulf Lamping
870e139576 fix type
svn path=/trunk/; revision=27749
2009-03-16 22:36:34 +00:00
Ulf Lamping
dcdda03610 update to the latest PROTINET changes:
- add SubFrameBlock dissection
- add subframe heuristics and dissection
- update frame id "layout"
- raise plugin version to 0.2.4

crc16 algorithm copied from Linux sources (GPL V2 only!)

svn path=/trunk/; revision=27748
2009-03-16 21:40:00 +00:00
Guy Harris
adfaba2cb4 Fix syntax error.
svn path=/trunk/; revision=27747
2009-03-16 21:17:53 +00:00
Bill Meier
af0ee98880 Replace use of unneccessary (and deprecated) GtkCtree.
svn path=/trunk/; revision=27746
2009-03-16 19:43:45 +00:00
Bill Meier
77310e2bb0 Hack toprevent checkAPIs complaining about use of 'free'
svn path=/trunk/; revision=27745
2009-03-16 19:34:02 +00:00
Bill Meier
55905b97a8 strcpy-->g-strlcpy; Also: Add $Id$
svn path=/trunk/; revision=27744
2009-03-16 19:30:25 +00:00
Bill Meier
151a1f4361 [Trivial] fix some wording in a comment
svn path=/trunk/; revision=27743
2009-03-16 19:02:18 +00:00
Michael Tüxen
8df5f2a33e Fix compilation: Mark unused arg as _U_.
svn path=/trunk/; revision=27742
2009-03-16 18:26:37 +00:00
Anders Broman
3c2eddf646 Get rid of Clists, move a comment, move display as hex to gui_utils.
svn path=/trunk/; revision=27741
2009-03-16 18:01:25 +00:00
Guy Harris
f0c55f2856 Get rid of unused routine (which gets errors when compiled on Win64).
svn path=/trunk/; revision=27740
2009-03-16 16:49:47 +00:00
Martin Mathieson
c3265c9fdf Add a ReTX count (resends being caused by HARQ NACKs).
svn path=/trunk/; revision=27739
2009-03-16 15:39:52 +00:00
Bill Meier
247337bad7 Use g_malloc instead of malloc.
svn path=/trunk/; revision=27738
2009-03-16 14:32:01 +00:00
Bill Meier
2b63715879 Remove some non-ascii characters.
svn path=/trunk/; revision=27737
2009-03-16 13:58:40 +00:00
Stig Bjørlykke
a2cf3593bb Removed some non-ASCII characters.
svn path=/trunk/; revision=27736
2009-03-16 10:14:44 +00:00
Guy Harris
14c88fa8a4 Clean up some P64 issues; we assume that no strings in UATs are bigger
than 2^31-1 (if they are, truncating the length to 32 bits is probably
the least of our problems).

svn path=/trunk/; revision=27735
2009-03-16 06:11:30 +00:00
Gerald Combs
be943c8419 Go a little deeper into the Win64 rabbit-hole. Add tools/native-nmake.cmd
and use it as a wrapper to compile a native version of lemon.
Untested on Win32.

svn path=/trunk/; revision=27734
2009-03-15 22:40:29 +00:00
Stig Bjørlykke
26d30411b6 Adjusted my name to use only ASCII characters.
svn path=/trunk/; revision=27733
2009-03-15 21:13:27 +00:00
Bill Meier
510a52b128 Treat any usage of functions in the 'deprecated' group an an Error.
There's no longer any Wireshark usage of these functions.

svn path=/trunk/; revision=27732
2009-03-15 20:50:33 +00:00
Bill Meier
0defd072f5 Fix perror, calloc usage so checkAPIs doesn't complain.
(The usage is inside an #ifdef REMOVED so it's 
 just commented out so checkAPIs.pl doesn't see it).

svn path=/trunk/; revision=27731
2009-03-15 20:47:12 +00:00
Bill Meier
edc59eb340 Add checkapi for deprecated Gtk APIs for which Wireshark is currently clean.
checkapi will Error if any of these APIs are seen. 

svn path=/trunk/; revision=27730
2009-03-15 20:20:54 +00:00
Bill Meier
34515ab429 Add complete list of deprecated GTK API's (as of GTK 2.14.7).
Group 'deprecated-gtk' lists all deprecated GTK APIs which
  are not currently used in Wireshark.
  -g deprecated-gtk will 'Error';

 Group 'deprecated-gtk-todo' lists the deprecated GTK APIs
  which are still used in Wireshark (ie: not yet fixed).
  -g deprecated-gtk-todo will 'Warn'.

Also: two new options added:
 -M: -g output is one line per function per file;
 -s summary-group: gives a count of the usage of each function in that group
    [currently: any group used in -s must also be specified with -g option].
   

svn path=/trunk/; revision=27729
2009-03-15 20:09:25 +00:00
Stig Bjørlykke
0258be0b05 From Jakub Zawadzki:
More remove checking for NULL before g_free().

svn path=/trunk/; revision=27728
2009-03-15 18:08:46 +00:00
Bill Meier
0f9f5caf9d As suggested by Jakub Zawadzki: g_free() is NULL safe, so we don't need check against it.
Also (from me): Clean up spacing

svn path=/trunk/; revision=27727
2009-03-15 15:40:55 +00:00
Bill Meier
691a5cbed2 As suggested by Jakub Zawadzki: g_free() is NULL safe, so we don't need check against it
(This change is to the currently unused asn1/kerberos/packet-kerberos-template.c).

svn path=/trunk/; revision=27726
2009-03-15 15:28:00 +00:00
Gerald Combs
34c410795b [Automatic manuf update for 2009-03-15]
svn path=/trunk/; revision=27724
2009-03-15 15:03:44 +00:00
Bill Meier
091c4a0009 Fix non-ascii characters
svn path=/trunk/; revision=27723
2009-03-15 15:02:24 +00:00