Commit Graph

29803 Commits

Author SHA1 Message Date
Jeff Morriss 762af05327 Don't call PROTO_ITEM_SET_GENERATED(proto_tree_add[...]): that will end up adding the item to the tree multiple times.
svn path=/trunk/; revision=30635
2009-10-20 14:03:00 +00:00
Stig Bjørlykke d43aab714c From Jakub Zawadzki:
Make it compile without kerberos.

svn path=/trunk/; revision=30634
2009-10-20 10:20:14 +00:00
Stig Bjørlykke a34a6bee5e Extern declare hf_nt_cs_len and hf_nt_cs_size.
svn path=/trunk/; revision=30633
2009-10-20 10:03:55 +00:00
Stig Bjørlykke 39c732d8bf Removed some redundant prototypes and some shadowed variables.
svn path=/trunk/; revision=30632
2009-10-20 09:31:07 +00:00
Ronnie Sahlberg 3bb1c2cbd4 From Matthieu Patou
schannel decryption


svn path=/trunk/; revision=30631
2009-10-20 08:44:26 +00:00
Stig Bjørlykke 33987544f9 Removed some unused prototypes.
svn path=/trunk/; revision=30630
2009-10-20 08:27:25 +00:00
Anders Broman a85999a691 Fix higlight the correct hex value and add a value_string.
svn path=/trunk/; revision=30629
2009-10-20 07:42:27 +00:00
Anders Broman 923b04dd82 From Gerasimos Dimitriadis:
DTAP: Various enhancements.

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

svn path=/trunk/; revision=30628
2009-10-20 07:33:01 +00:00
Anders Broman 40447d1c12 Updated decoding of GMM Cause to V8.6.0, i.e. added cause code 0x19 - "Not authorized for this CSG". Changed to use a range_string.
Based on 
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4132

svn path=/trunk/; revision=30627
2009-10-20 03:13:56 +00:00
Jörg Mayer e678798057 Add packet-omron-fins.c
svn path=/trunk/; revision=30626
2009-10-20 00:44:08 +00:00
Bill Meier bd8bb405bd From Matt Watchinski: OMRON-FINS dissector
(with some restructuring and cleanup by me).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3226

svn path=/trunk/; revision=30625
2009-10-20 00:12:09 +00:00
Jeff Morriss ab13546f71 From Jakub Zawadzki via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4140 :
There is emem_header_t struct, so IMHO is better to use struct instead of
global variables.

Split emem_alloc() into two functions: emem_alloc_chunk and emem_alloc_glib.
Current allocator is available in emem_header_t.memory_alloc

It should be easier to develop new memory allocator and maintain current.
It might also give some speedup (we don't need to check mem->debug_use_chunks
every time :)

From me:

Initialize emem_header_t.trees.  Some indentation cleanup.

svn path=/trunk/; revision=30624
2009-10-19 22:31:08 +00:00
Jaap Keuter 288927bc46 Adding RFC 2228 FTP replies.
svn path=/trunk/; revision=30623
2009-10-19 21:22:23 +00:00
Jaap Keuter f55ec2aeff From Jouni Malinen:
WPS encodes Bool attributes as single-octet values. Selected Registrar
attribute is parsed correctly (packet-wps.c), but many of the other Bool
attributes are marked incorrectly to use two-octet fields. This results in
showing incorrect octets for some of the attributes and incorrectly marking
frames invalid if a Bool attribute is included as the last attribute in a WPS
IE.

svn path=/trunk/; revision=30622
2009-10-19 18:36:34 +00:00
Jeff Morriss 8f8eb40e9b Make it actually work with glib < 2.10
svn path=/trunk/; revision=30621
2009-10-19 14:52:15 +00:00
Stig Bjørlykke c6ef47cbb4 Made some functions static.
svn path=/trunk/; revision=30620
2009-10-19 14:45:10 +00:00
Stig Bjørlykke 2ac6a245e2 Removed redundant redeclaration of optind.
svn path=/trunk/; revision=30619
2009-10-19 14:44:37 +00:00
Stig Bjørlykke a52bf035b7 Removed redundant redeclaration of delete_avpl().
svn path=/trunk/; revision=30618
2009-10-19 14:42:10 +00:00
Stig Bjørlykke 8248955d7d Renamed tvb_new -> new_tvb to avoid name collision.
svn path=/trunk/; revision=30617
2009-10-19 14:36:26 +00:00
Stig Bjørlykke 2f199b9d96 Made some functions static.
svn path=/trunk/; revision=30616
2009-10-19 14:21:11 +00:00
Stig Bjørlykke 7b138b5455 Use unsigned int for flags to avoid another warning.
svn path=/trunk/; revision=30615
2009-10-19 13:29:01 +00:00
Stig Bjørlykke ce502fc59b Added cast to (void *) for pointers used in printf format %p.
svn path=/trunk/; revision=30614
2009-10-19 13:24:54 +00:00
Stig Bjørlykke 17aae178a9 Various code cleanup:
- Added standard copyright boiler plate
- Made all local functions static
- Added several checks for valid pointers
- Fixed some variable shadowing
- Fixed some printf formats (%p)
- Removed unused variables

svn path=/trunk/; revision=30613
2009-10-19 13:22:45 +00:00
Guy Harris 53a7a35e91 Neither num_registers nor max_registers in a dfilter_t are ever
negative; make them unsigned.

svn path=/trunk/; revision=30612
2009-10-18 23:25:33 +00:00
Jeff Morriss 46fc4eea81 new_octet_aligned_subset_bits(): call tvb_ensure_bytes_exist() before
attmepting to malloc memory to ensure we've been asked to decode a reasonable
number of bits (and thus are asking for a reasonable number of bytes from
malloc()).

That should fix the fuzz failure in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4138

Add a comment to new_octet_aligned_subset() asking why we're resetting the
length to tvb_length()--that means we'll never throw an exception.

svn path=/trunk/; revision=30611
2009-10-18 23:19:44 +00:00
Stig Bjørlykke 54fa8338b9 Fixed a data type and removed a shadowed variable.
svn path=/trunk/; revision=30610
2009-10-18 21:30:39 +00:00
Stig Bjørlykke 1f5b4f5864 Fixed data type for a buffer.
svn path=/trunk/; revision=30609
2009-10-18 21:29:44 +00:00
Stig Bjørlykke de88ead3bc Fixed data type for asciibuf.
svn path=/trunk/; revision=30608
2009-10-18 21:29:17 +00:00
Stig Bjørlykke f0cada596a Make it build on glib < 2.10.
svn path=/trunk/; revision=30607
2009-10-18 21:27:50 +00:00
Stig Bjørlykke 056c915e61 Removed unused argument in v2_attrval2str().
svn path=/trunk/; revision=30606
2009-10-18 21:15:37 +00:00
Stig Bjørlykke 53c447a3aa Remove a shadowed variable.
svn path=/trunk/; revision=30605
2009-10-18 21:14:35 +00:00
Stig Bjørlykke 3587a1acb1 Use %f for double in printf.
svn path=/trunk/; revision=30604
2009-10-18 21:13:53 +00:00
Stig Bjørlykke 0fcef72fc6 Use correct type for udp port preference.
svn path=/trunk/; revision=30603
2009-10-18 21:13:17 +00:00
Stig Bjørlykke c92177a771 Use %f for double in printf.
Made some functions static.

svn path=/trunk/; revision=30602
2009-10-18 20:14:04 +00:00
Jeff Morriss 6bbd17bcf9 Don't se_alloc() the conversation structure which contains pointers to two
g_hash_tables that we then try to free in ros_reinit().  Instead, g_malloc()
the conversation structure and free it (along with the hash tables) in the
reinit function.

svn path=/trunk/; revision=30601
2009-10-18 20:13:56 +00:00
Stig Bjørlykke 297cd83538 Made some functions static.
svn path=/trunk/; revision=30600
2009-10-18 20:13:06 +00:00
Jeff Morriss ea7d2deaeb dcerpc_fragment_key_copy(): don't se_alloc() the key:
- it contains pointers to a couple malloc()'d addresses
	- it is inserted in the fragment table (the contents of which are
	  g_free()'d in free_all_fragments())

Instead, do like fragment_key_copy() and use a g_slice or g_chunk, depending
on the glib version.

svn path=/trunk/; revision=30599
2009-10-18 19:46:46 +00:00
Gerald Combs 5d316381f1 [Automatic manuf and enterprise-numbers update for 2009-10-18]
svn path=/trunk/; revision=30596
2009-10-18 15:03:28 +00:00
Jeff Morriss 2d8acf2a74 Fix an off-by-one error (<= instead of <) that caused the dissector to
reference uninitialized memory, possibly leading to a crash (found by turning
memory scrubbing on).

svn path=/trunk/; revision=30595
2009-10-18 14:46:39 +00:00
Jaap Keuter 8809953430 From Kip McAtee:
Suppress spurious packet length error message for LCP or IPCP in PPPoE. 

svn path=/trunk/; revision=30594
2009-10-18 13:36:01 +00:00
Jaap Keuter 34f6f0d9e9 From Jouni Malinen:
IEEE 802.11k added a new Action frame category: Public Action. I'm proposing
some initial code to recognize this and to add a placeholder for switch
statement that can be used for processing vendor specific Public Action frames
(they are defined in IEEE 802.11w).  

svn path=/trunk/; revision=30593
2009-10-18 12:53:29 +00:00
Anders Broman 977e880afb Use gtk_combo_box in GTK v 2.4
svn path=/trunk/; revision=30592
2009-10-18 10:23:50 +00:00
Kovarththanan Rajaratnam ea9fca6f4b Default to number of CPUs available
svn path=/trunk/; revision=30591
2009-10-18 08:33:40 +00:00
Stig Bjørlykke 2b54a78378 Removed non-ASCII characters.
svn path=/trunk/; revision=30590
2009-10-18 08:02:28 +00:00
Bill Meier 5d68a812ab Fix memory leak: re-init defragmentation tables each time a capture file is (re) opened.
svn path=/trunk/; revision=30589
2009-10-17 21:42:51 +00:00
Stig Bjørlykke b7d116667f From Marton Nemeth:
Add the ability to open JPEG/JFIF files directly.

From me:
Some code cleanup + add new file to cmake.

svn path=/trunk/; revision=30588
2009-10-17 20:56:06 +00:00
Jaap Keuter 80424e5ced From Joe Eykholt:
It would be nice to have dissection of the Fibre-Channel FCP 
"Sequence retransmission request" (SRR) request.

This is like an FC ELS request, but it has FC type FCP, so it's 
a little strange.  It seemed like the best place to put it is in 
packet-fcp.c but a slight hook is needed in packet-fc.c to 
recognize that packet-fcp is the correct dissector.

svn path=/trunk/; revision=30587
2009-10-17 10:19:18 +00:00
Guy Harris 9c988fa854 Putting the AC_CANONICAL_xxx macro(s) *after* AC_INIT seems to work, and
could fix cross-compilation problems, according to Jeff Morriss, and
"make dist" seems to build a ustar archive after we do that, so give
that a try.  (I don't have any cross-compilers handy to test whether it
fixes cross-compilation or not.)

svn path=/trunk/; revision=30586
2009-10-16 22:28:25 +00:00
Jeff Morriss bba7f0977c Based on an issue presented in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4050 :
Add an item and an expert info (warning) if there's more data in the tvb than the length parameter indicates.

svn path=/trunk/; revision=30585
2009-10-16 22:15:58 +00:00
Bill Meier 81a03aca75 Another Oops: #include <stdio.h> *is* required .....
svn path=/trunk/; revision=30584
2009-10-16 22:12:40 +00:00