Commit Graph

19883 Commits

Author SHA1 Message Date
Ulf Lamping e31d777279 fix a warning
svn path=/trunk/; revision=20436
2007-01-15 04:22:10 +00:00
Ulf Lamping d131445196 SHGetFolderPath is not available on MSVC 6 without a Platform SDK, use SHGetSpecialFolderPath instead
svn path=/trunk/; revision=20435
2007-01-15 03:53:20 +00:00
Ulf Lamping 16ac7832b4 minor bugfix of file loading: don't update the packet list if loading a smaller file, the update takes longer than the file to load.
svn path=/trunk/; revision=20434
2007-01-15 00:17:32 +00:00
Ulf Lamping 3e1344fd4b fix #301: Windows file dialog should:
- initially show the "My Documents" folder
- don't use the "open folder" preference setting on save and alike dialogs (we don't do it in the GTK versions either)



svn path=/trunk/; revision=20433
2007-01-14 23:28:35 +00:00
Ulf Lamping 7a9beb8945 fix a bug when freeing newpath - don't g_free(NULL)
svn path=/trunk/; revision=20432
2007-01-14 22:45:43 +00:00
Ulf Lamping 47aaf7d9b7 on my way to fix #301:
add a function get_persdatafile_dir() that will return the users personal default data dir Win32:"My Documents" UNIX:"" (for the current dir)

svn path=/trunk/; revision=20431
2007-01-14 22:25:22 +00:00
Anders Broman d1db2cb464 If a OCTET STRING has zero length a zero length tvb will be returned - handle that case
and add pretifications by Graeme Lunt.

svn path=/trunk/; revision=20430
2007-01-14 22:20:02 +00:00
Anders Broman c16c8a9bee From Graeme Lunt:
The problem was that when dissecting the set, if a sub-dissector didn't consume any bytes it was assumed that the correct field hadn't been matched.
This fix matches the field if the sub-dissector consumes no bytes and we know that the length of the field is zero. This is only allowed on the first pass when we are not matching ANYs.
I think this is a fairly safe fix - I've tried it with some other ASN.1

I've also changed dissect_ber_octet_string() to show the zero length fields in the dissection. This shows the fields as "<MISSING>" which is not quite the right explanation as the field is definitely present. Something like "<EMPTY>" or "<ZERO LENGTH>" may be better - but I'm not sure of the reasoning behind "<MISSING>".

svn path=/trunk/; revision=20429
2007-01-14 20:54:39 +00:00
Luis Ontanon 631ae12e4a taking a look at it the name_str var is unnecessary
svn path=/trunk/; revision=20428
2007-01-14 20:19:00 +00:00
Luis Ontanon c2ea79024a As pointed out by Sebastien Tandel a buffer is allocated unconditionally when it might not be necessary.
svn path=/trunk/; revision=20427
2007-01-14 20:17:13 +00:00
Anders Broman 2aa94bbcd9 Dissect cdma2000HandoffInvokeIOSData and response data
(Missing .cnf file in previous checkin) add BCD decoded items to Digits type item.

svn path=/trunk/; revision=20426
2007-01-14 15:29:29 +00:00
Jaap Keuter 96fbec58b6 Trying to get buildbot Ubuntu-5.10-x86 distcheck to build again.
svn path=/trunk/; revision=20425
2007-01-14 13:44:40 +00:00
Luis Ontanon e648b5c77b fix Bug 1301
do not let the ascend_open() read more than 256K without finding the first packet.


svn path=/trunk/; revision=20424
2007-01-14 06:13:07 +00:00
Ulf Lamping 76bd9d18a7 bugfix: show the "placesbar" (the one with e.g. "My Documents" button) for the various win32 file dialogs.
As a nice side effect, the dir/file part of the dialogs is bigger now, which makes handling of the dialogs much nicer/faster. Yes, it still fits into 800*600 screen resolution.

Needs testing, I might have placed a g_free() call at the wrong place ...

svn path=/trunk/; revision=20423
2007-01-14 05:18:07 +00:00
Anders Broman ff5d1745e3 Handle the case ehere TCAP identifier isn't present.
svn path=/trunk/; revision=20421
2007-01-13 23:02:06 +00:00
Anders Broman 623ca476f1 - Correct Tag numbering and marking of OPTIONAL.
- Add some variants of Digits dissection.
 - Correct the DMH-RedirectionIndicator.
- Add reserved bits.

svn path=/trunk/; revision=20420
2007-01-13 19:18:46 +00:00
Graeme Lunt 2995e44354 Tidyups:
* clean up more things
* better directory creation
* README update


svn path=/trunk/; revision=20419
2007-01-13 17:01:43 +00:00
Anders Broman 2ddd0fdf0a Handle zero length invokes and some asn1 fixes.
svn path=/trunk/; revision=20418
2007-01-13 16:08:30 +00:00
Graeme Lunt 6fd190ecec U3 support for "recent" files.
When the "recent" file is written, any references to files on the U3 device itself are modified to have the drive replace with "$U3_DEVICE_PATH". Similarly, when the recent file is read, "$U3_DEVICE_PATH" is replaced with the current U3 device path.

This ensures that if/when the U3 device path changes when inserting it into different machines, recent captures on the U3 device itself can still be opened from the recent menu.


svn path=/trunk/; revision=20417
2007-01-13 16:06:28 +00:00
Graeme Lunt 7d3a4e9264 New protocol dissector for PKCS#12 - Personal Information Exchange Syntax.
Generally found within a file (.p12 or .pfx) or as a directory attribute (userPKCS12 from iNetOrgPerson).

Wiki page and sample file to follow.


svn path=/trunk/; revision=20416
2007-01-13 15:26:13 +00:00
Ulf Lamping d3a85fae38 far from being complete:
as mentioned on the devel list, this is a very first start of implementing the Wireshark update/version check feature

think of it as a backup / discussion base only - it's not even added to the Makefiles yet

svn path=/trunk/; revision=20415
2007-01-13 14:33:46 +00:00
Graeme Lunt 2fd7d2c620 New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER).
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()). 
Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax(). 

A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate".


svn path=/trunk/; revision=20414
2007-01-13 12:59:27 +00:00
Ulf Lamping 13a095e055 no, we're still not using MSVC2005 as default :-(
should fix the Win32 buildbot ...

svn path=/trunk/; revision=20413
2007-01-13 04:28:26 +00:00
Stephen Fisher ccdd637311 Remove "advertising clause" from BSD license per:
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

July 22, 1999

To All Licensees, Distributors of Any Version of BSD:

As you know, certain of the Berkeley Software Distribution ("BSD") source
code files require that further distributions of products containing all or
portions of the software, acknowledge within their advertising materials
that such products contain software developed by UC Berkeley and its
contributors.

Specifically, the provision reads:

"     * 3. All advertising materials mentioning features or use of this software
      *    must display the following acknowledgement:
      *    This product includes software developed by the University of
      *    California, Berkeley and its contributors."

Effective immediately, licensees and distributors are no longer required to
include the acknowledgement within advertising materials.  Accordingly, the
foregoing paragraph of those BSD Unix files containing it is hereby deleted
in its entirety.

William Hoskins
Director, Office of Technology Licensing
University of California, Berkeley 


svn path=/trunk/; revision=20412
2007-01-13 03:16:07 +00:00
Ulf Lamping 19bd3956a2 fix some remaining MSVC != V6 issues:
- add redistributables (msvcr*.dll) to the NSIS installer (depending on MSVC_VARIANT)
- split MSVC2006 and MSVC2006EE (Express Edition) settings in config.nmake, as redistributable settings for NSIS are different
- remove Platform SDK setting from config.nmake, it's not needed

svn path=/trunk/; revision=20411
2007-01-13 00:59:39 +00:00
Guy Harris bbdb2dd733 Automake variables ending with _LDFLAGS are special:
http://sources.redhat.com/ml/automake/2001-08/msg00046.html

so call it LDFLAGS_SHAREDLIB rather than SHAREDLIB_LDFLAGS.

svn path=/trunk/; revision=20410
2007-01-12 21:04:33 +00:00
Anders Broman 69238439c4 Dissect cdma2000HandoffInvokeIOSData.
svn path=/trunk/; revision=20409
2007-01-12 17:50:20 +00:00
Tomas Kukosa 61b7428ae5 update ssl-dlg.c in accordance with changes in SSL dissector
svn path=/trunk/; revision=20408
2007-01-12 13:02:49 +00:00
Anders Broman 844abae29a Dissect CDMAServiceOption.
svn path=/trunk/; revision=20407
2007-01-12 12:05:56 +00:00
Tomas Kukosa b926302330 ignore ssl_desegment_app_data preference till desegmentation is implemented well
svn path=/trunk/; revision=20406
2007-01-12 12:03:31 +00:00
Tomas Kukosa 51fc862945 prepare SSL dissector for similar desegmentation as is in the TCP as current one does not work well in many cases
svn path=/trunk/; revision=20405
2007-01-12 10:25:03 +00:00
Tomas Kukosa 92d8d4e9b4 do not ignore invisible tree, it can break tree creation for coloring/filtering
svn path=/trunk/; revision=20404
2007-01-12 10:21:02 +00:00
Ulf Lamping f3235a259f second try for file_util.c ... (at least OS X didn't liked it)
svn path=/trunk/; revision=20403
2007-01-12 05:47:12 +00:00
Ulf Lamping 2cbce84d41 Win32: MSVC > 6 doesn't work well with Unicode filenames!
fix this, by providing required functions in the new file file_util.c - it's mostly copied from GLib (g_open alike - that take UTF8 as filename format but don't use msvcrt.dll V6 for this as the glib files do) 

"link" to these functions in file_util.h: #define eth_open eth_stdio_open

revert changes (from SVN 20282) throughout the code related to these file functions which were introduced with the first tries of MSVC 2005 ...

Hopefully I've done everything right with the new file_util.c ...

svn path=/trunk/; revision=20402
2007-01-12 03:05:28 +00:00
Gerald Combs ba4a327704 Add copyright attributions and licenses. License each derived work
according to its pedigree.

svn path=/trunk/; revision=20401
2007-01-12 00:54:13 +00:00
Luis Ontanon 961ae4a558 add snmp decryption
svn path=/trunk/; revision=20400
2007-01-12 00:48:09 +00:00
Gerald Combs f67fdf4865 Move sha1.[ch] to epan/crypt/crypt-sha1.[ch]. Remove duplicate code.
svn path=/trunk/; revision=20399
2007-01-12 00:33:32 +00:00
Anders Broman dd5a89ec49 Add dissection of cdmaChannelData and only add Opcode to hastable once.
svn path=/trunk/; revision=20398
2007-01-11 22:26:15 +00:00
Gerald Combs def1f435fc Fix compilation problems under Windows. In the GTK code, convert SSIDs
to GByteArrays.  Add format_uri() to strutil, which formats a byte string
with percent-escapes.  Fixup whitespace and indentation.

svn path=/trunk/; revision=20397
2007-01-11 22:12:33 +00:00
Ulf Lamping 2b15cb0156 don't generate zlib1.dll over and over again
svn path=/trunk/; revision=20396
2007-01-11 22:05:59 +00:00
Anders Broman a2e3afd76b load_snmp_users_file.c needs to be rebuilt after distclean to make tarballs work on Windows.
svn path=/trunk/; revision=20395
2007-01-11 20:05:05 +00:00
Stephen Fisher cbe42b8a24 Fix for bug #1140: Filtering messes up packet list sort order
svn path=/trunk/; revision=20394
2007-01-11 19:50:19 +00:00
Luis Ontanon efa6338231 warn the user if the decrypted data doesn't look like a ScopedPDU instead of dissecting it.
svn path=/trunk/; revision=20393
2007-01-11 17:39:16 +00:00
Tomas Kukosa c5a0dfda69 make SIP TCP/TLS ports configurable via preferences
svn path=/trunk/; revision=20392
2007-01-11 10:10:03 +00:00
Tomas Kukosa 084bbf692c make airpcap_loader.c compileable and linkable under Windows
svn path=/trunk/; revision=20391
2007-01-11 07:56:37 +00:00
Ulf Lamping ab31b4fa4d add the ".NET Framework SDK V1.0" to the list of working MSVC_VARIANTS :-)
svn path=/trunk/; revision=20390
2007-01-11 07:53:01 +00:00
Stephen Fisher 1f42c23012 Fix for bug #1196: packet detail & packet bytes windows not updated under
certain circumstances when applying a display filter that does not include
the currently selected packet.


svn path=/trunk/; revision=20389
2007-01-11 06:36:14 +00:00
Gerald Combs 983f496f69 Add uri_str_to_bytes(), byte_array_dup(), and byte_array_equal()
functions to strutil.  Use GByteArrays to store SSIDs for decryption,
and let the user specify arbitrary byte strings using percent-encoded
strings.  We should probably add percent encoding for pass phrases as
well, so you can escape the ":" character.

Move the key struct key conversion utilities to airpdcap.c, and remove
duplicate code from packet-ieee80211.c.  Fix a lot of indentation.

svn path=/trunk/; revision=20388
2007-01-11 02:42:34 +00:00
Luis Ontanon 5223c8dfa6 - allow use of * as any-engine-id
- automatic localization of usertable entries with no engine-id
- remove last remains of debug code


svn path=/trunk/; revision=20387
2007-01-11 00:29:50 +00:00
Anders Broman c9bbf1b510 Packet-ber:
Handle the following type of construct
CDMATargetMAHOInformation ::= SEQUENCE {
	targetCellID			[3] IMPLICIT TargetCellID,
	cdmaPilotStrength		[65] IMPLICIT CDMAPilotStrength,
	cdmaTargetOneWayDelay	[61] IMPLICIT CDMATargetOneWayDelay
	}

CDMATargetMAHOList ::= SEQUENCE OF [135] IMPLICIT CDMATargetMAHOInformation

ansi_map:
- Correct an Enummeration
- add Missing OPTIONAL to Tags
- Handle parameter if it's one or two octets long.

svn path=/trunk/; revision=20386
2007-01-10 22:59:40 +00:00