Commit graph

4552 commits

Author SHA1 Message Date
Ronnie Sahlberg
5bb268fa7c add dissection of VERIFY6 cdb
dissect SPACE6/16 code field using a value_string


svn path=/trunk/; revision=20772
2007-02-10 21:26:38 +00:00
Ronnie Sahlberg
8d3413ef55 add dissection of the SSC READREVERSE6 cdb
svn path=/trunk/; revision=20771
2007-02-10 20:55:37 +00:00
Ronnie Sahlberg
62e27d2ce3 change all SSC2 into SSC to indicate this is an SSC dissector and not specific to SSC v2
svn path=/trunk/; revision=20770
2007-02-10 20:38:59 +00:00
Ronnie Sahlberg
c6a7dc376a add dissection of the WRITE16 and the WRITEFILEMARKS16 cdbs
svn path=/trunk/; revision=20769
2007-02-10 20:31:01 +00:00
Ronnie Sahlberg
38fef4967b add dissection of SSC VERIFY16 cdb
svn path=/trunk/; revision=20768
2007-02-10 20:23:38 +00:00
Ronnie Sahlberg
2661699e01 add dissection of SSC READREVERSE16 cdb
svn path=/trunk/; revision=20767
2007-02-10 20:13:03 +00:00
Ronnie Sahlberg
5f7321abae add dissewction of the SSC READ16 cdb
svn path=/trunk/; revision=20766
2007-02-10 20:06:01 +00:00
Ronnie Sahlberg
462a5a9358 prettify READ6 and dissect the flags bits properly instead of using a proto_tree_add_text()
svn path=/trunk/; revision=20765
2007-02-10 19:56:41 +00:00
Ulf Lamping
5fef4e745b add STATUS_STACK_OVERFLOW to the possible Win32 exception codes - unfortunately, this exception seems to corrupt the stack at least in a way that the TRY / CATCH pair later causes an access violation ...
svn path=/trunk/; revision=20764
2007-02-10 10:28:59 +00:00
Michael Tüxen
fc753d3f70 Provide a correct argument to g_hash_table_foreach_remove.
svn path=/trunk/; revision=20761
2007-02-09 23:29:57 +00:00
Michael Tüxen
63ff1f4bc1 Fix whitespaces.
svn path=/trunk/; revision=20760
2007-02-09 23:14:15 +00:00
Ronnie Sahlberg
f4fcbc9e14 use se_alloc() instead of g_malloc() to allocate storage for the key to the hash table.
this allows us to use g_hash_table_new() instead of g_hash_table_new_full() and thus make it compileable under gtk1.2


this should probably be completely converted into se_tree's and se_alloc to completely remove the hashtable altogether



svn path=/trunk/; revision=20758
2007-02-09 21:03:41 +00:00
Michael Tüxen
f20299ba4b Add support for SCTP reassembly from Robin Seggelmann.
You must enable this feature via Edit/Preferences/Protocols/SCTP

svn path=/trunk/; revision=20756
2007-02-09 16:38:57 +00:00
Luis Ontanon
7c57c05ed5 * Add a Submenu (/Views/User Tables) where UATs can be accessed.
* Remove macros_dlg, the DFMacros UAT goes in the menu with all the rest
* in packet-user_encap.c WTAP_ENCAP=XXX has become useless information for the user leave just the DLT#



svn path=/trunk/; revision=20753
2007-02-09 03:11:14 +00:00
Luis Ontanon
7432291121 From: Kriang Lerdsuwanakij
In the attached patch, the K12 wiretap now saves the content of record
after captured packet data. The K12 dissector then could extract them and provide
useful information to properly dissect FP frames (user plane of UTRAN Iub
interface).



svn path=/trunk/; revision=20749
2007-02-08 17:35:03 +00:00
Graeme Lunt
53f97b16aa This patch adds some expert info in DMP when:
- Checksum failure
- Decoding of SIC failure
- Negative ACK response
- Unsupported DMP version
- Error uncompressing content

http://www.wireshark.org/lists/wireshark-dev/200702/msg00358.html


svn path=/trunk/; revision=20748
2007-02-08 17:17:36 +00:00
Graeme Lunt
835fd8749e This patch adds some expert info in P_Mul when:
- Checksum failure
- Missing sequence numbers

http://www.wireshark.org/lists/wireshark-dev/200702/msg00357.html


svn path=/trunk/; revision=20747
2007-02-08 17:15:45 +00:00
Graeme Lunt
4a6b87d35e This patch adds some expert info in CDT when:
- Unable to get compressed content
- Unable to uncompress content

http://www.wireshark.org/lists/wireshark-dev/200702/msg00356.html


svn path=/trunk/; revision=20746
2007-02-08 17:12:38 +00:00
Graeme Lunt
06e7801472 This patch adds support for decoding BER-encoded files as "X.411 Message".
http://www.wireshark.org/lists/wireshark-dev/200702/msg00355.html


svn path=/trunk/; revision=20745
2007-02-08 17:09:15 +00:00
Guy Harris
49808356a3 The length of the UDP packet, according to IP, is the reported length,
not the data length (the packet might've been cut short by a snapshot
length).

Fetch the reported length with an accessor.

svn path=/trunk/; revision=20743
2007-02-08 10:26:15 +00:00
Luis Ontanon
4e55e354bb Have the windows buildot compiling again.
svn path=/trunk/; revision=20742
2007-02-08 10:15:04 +00:00
Luis Ontanon
9422dfd084 UAT: filed definitions for proto (a dissector hanlde obtained by name)
UATify user-DLTs


svn path=/trunk/; revision=20740
2007-02-07 20:45:14 +00:00
Luis Ontanon
b08d8470e7 Oddly enough MSVC cannot compile this one.
svn path=/trunk/; revision=20738
2007-02-07 18:51:44 +00:00
Luis Ontanon
2006fac500 * Add a category param to the uat.
* UATify SNMP Users


svn path=/trunk/; revision=20736
2007-02-07 14:54:35 +00:00
Luis Ontanon
92fd73681d From: Gisle Vanem
The file epan/dissectors/packet-k12.c uses the function
strcasestr() which is not available on e.g. Windows. So I cooked
up a patch to epan/strutil.c to add epan_strcasestr() (is there a more
suited place for such a function?)





svn path=/trunk/; revision=20734
2007-02-07 13:45:28 +00:00
Jeff Morriss
0a9304dc6f Fix for bug 1350: Add return value for
dissect_ansi_map_sms_originationrestrictions()

Also close a couple of comments, remove one /* embedded in a comment,
remove a couple unused variables (still lots of unused params in there),
and fix indentation of some proto_item and proto_tree variable declarations.

svn path=/trunk/; revision=20730
2007-02-07 02:41:10 +00:00
Ronnie Sahlberg
8f3630cfb7 fixup LOCATE10 and LOCATE16
replace a few proto_tree_add_text() with proper dissection of the partition byte


svn path=/trunk/; revision=20729
2007-02-06 21:19:17 +00:00
Anders Broman
951cb6ee63 Fix a copy error.
svn path=/trunk/; revision=20728
2007-02-06 07:59:24 +00:00
Gerald Combs
41c66690fc From Clay Jones:
This patch adds decodes for 802.11n information elements.  Since 802.11n
isn't a formal standard yet they are not using the final packet
structures or ie type numbers.  But there are already 802.11n pre
release devices out there and these decodes do seem to correctly decode
the IEs that they use.

svn path=/trunk/; revision=20725
2007-02-06 01:59:50 +00:00
Ulf Lamping
0f7e40945e dissector changes:
- new: ICBALogicalDevice2::PBAddressInfo
- enhanced: GROUPERRORDEF

simplify ett registration
add a callback for SAFEARRAY data dissection

svn path=/trunk/; revision=20723
2007-02-06 01:33:39 +00:00
Jaap Keuter
352f0eeb68 From Andrej Mikus:
Wireshark complains about bogus udp length when processing last fragment of UDP data.
It compares length field from UDP header with payload size of last fragment.
Attached is my attempt to fix this by referring to tvp->length instead of pinfo->iplen - pinfo->iphdrlen.

Also set some items attribute to generated.

svn path=/trunk/; revision=20722
2007-02-05 21:42:41 +00:00
Ronnie Sahlberg
a99fb4ebb7 add the remaining TAPE ALERT log flags from ssc3r01c
svn path=/trunk/; revision=20719
2007-02-05 11:31:21 +00:00
Ronnie Sahlberg
059f550b16 add some infrastructure to enable us to dissect the content of LOG SENSE pages and parameters
dissect the READ WARNING flag in the TAPE-ALERT log page as an example


svn path=/trunk/; revision=20718
2007-02-05 09:39:36 +00:00
Luis Ontanon
2b22bcb1a3 * Add a help facility for UATs
* export help_topic_html()


svn path=/trunk/; revision=20717
2007-02-05 05:06:21 +00:00
Stephen Fisher
6c56afbed4 From Sebastien Tandel:
Execute permission should be changed [removed] on files 
packet-fmp.[c,h] and packet-fmp_notify.[c,h].


svn path=/trunk/; revision=20713
2007-02-04 19:16:24 +00:00
Graeme Lunt
74fa87ddb2 Small fix for incorrect column use when dissecting a BER file.
svn path=/trunk/; revision=20709
2007-02-04 12:00:25 +00:00
Luis Ontanon
96f517647a UATify k12 configuration
svn path=/trunk/; revision=20707
2007-02-04 02:30:59 +00:00
Ronnie Sahlberg
c1ccab43aa update the LOG SELECT dissector slightly and harmonize the hf fields so both LOG SELECT and LOG SENSE use the same variables
svn path=/trunk/; revision=20703
2007-02-03 22:03:39 +00:00
Jaap Keuter
b536022566 From J. Bruce Fields:
Fix an obvious error in the nfs4 stateid parsing.  The stateid is used in a number of common operations (such as open and setattr), so this caused a lot of misparsing.

svn path=/trunk/; revision=20700
2007-02-03 20:31:40 +00:00
Ronnie Sahlberg
b06f81f4b4 updates to the LOG SELECT CDB decoding
svn path=/trunk/; revision=20696
2007-02-03 16:21:21 +00:00
Graham Bloice
9cc5985cec Corrected handling of udp messages, don't call tcp_dissect_pdus for udp fragments
svn path=/trunk/; revision=20683
2007-02-02 10:21:43 +00:00
Ronnie Sahlberg
78042d4e77 replace a rotating buffer for the udp header structure with ep allocated memory
svn path=/trunk/; revision=20682
2007-02-02 08:47:43 +00:00
Ronnie Sahlberg
5f521f725b Ian Schorr <ian.schorr@gmail.com>
Wed, Jan 31, 2007 at 7:24 PM 
To: wireshark-dev@wireshark.org 


Hello,

Please consider for checkin the following new dissectors, for the FMP protocol.

FMP (File Mapping Protocol) is the network protocol basis for EMC's HighRoad (MPFS) technology.  Highroad is used to allow multiple clients to share access to NAS-shared files while allowing clients to directly access data volumes (via, for example, Fibre Channel or iSCSI).  EMC currently uses this technology in our Celerra NAS servers, and we're currently in the process of open sourcing portions of the technology. 

FMP actually consists of two ONC/RPC-based protocols - the core FMP protocol, and FMP/Notify.  The latter is used as an asynchronous callback to inform clients of status changes, such as lock revocation.

We'd like to offer these dissectors to Wireshark users for help in debugging or otherwise troubleshooting MPFS-related problems.  There are still a few minor changes that need to be made ( i.e. a handful of fields that aren't decoded) but the dissector is overall fairly complete and very usable.

Let me know if there are questions or feedback, or otherwise if other info is needed (like sample captures, which I don't want to send out to the mailing list). 

Thanks,
Ian Schorr
EMC Corporation
 


svn path=/trunk/; revision=20679
2007-02-01 20:56:36 +00:00
Anders Broman
f2b23aaffb Don't call subdissector for dynamic PT based on PT number if conversation info exists.
svn path=/trunk/; revision=20678
2007-02-01 20:49:34 +00:00
Ronnie Sahlberg
9a0b5c4d4a use the correct offset to access the service action in PERSISTENT RESERVE IN
svn path=/trunk/; revision=20672
2007-02-01 20:10:51 +00:00
Ronnie Sahlberg
a8699793aa logoncontrol2 response is a Win32 error code not an nt status code
svn path=/trunk/; revision=20666
2007-02-01 10:10:15 +00:00
Jeff Morriss
088ef0165a From Abhik Sarkar: support for decoding SS7 MSUs embedded in a syslog message
(as generated by the Cisco ITP packet logging facility).


svn path=/trunk/; revision=20665
2007-02-01 09:55:52 +00:00
Anders Broman
5541864c73 Extend the events valuestring with Bearer Modification Support Event.
svn path=/trunk/; revision=20657
2007-01-31 22:59:41 +00:00
Martin Mathieson
899c936d3f Add some missing RFC references to header long text.
svn path=/trunk/; revision=20652
2007-01-31 17:42:45 +00:00
Graham Bloice
773a04c9e4 Major upgrades to dissector: Added defragmentation of tcp pdus, fixed defragmention of application layer fragments, many more object types decoded thanks to Chris Bontje
svn path=/trunk/; revision=20651
2007-01-31 13:58:55 +00:00
Martin Mathieson
a9c08b914e Fix bug 1332 properly.
svn path=/trunk/; revision=20650
2007-01-31 10:57:54 +00:00
Luis Ontanon
5ea201cacf Merge Anders' and my own fixes to some bugs
- most paramaters have data set to NULL, have them added to the tree
- avoid the context tracing mecanism bailing out if a ContextList appears in the packet.
- in q9150 do not attempt to dissect sdp unless we believe it is sdp
    (BTW we need heuristics for sdp and other potential payloads of this parameter..)


svn path=/trunk/; revision=20649
2007-01-31 09:30:08 +00:00
Anders Broman
c9ea62712c Fix bug 1328 and related bugs found when examining the trace.
svn path=/trunk/; revision=20634
2007-01-30 22:52:09 +00:00
Stephen Fisher
750e036e4c Add descriptions to radiotap fields. Fix some formatting. Add an extra
linebreak between hf field definitions for readability.


svn path=/trunk/; revision=20633
2007-01-30 20:57:51 +00:00
Guy Harris
9633ac8fee From Paolo Abeni: update to support the new DLT_USB_LINUX format header.
Modified to support the header as a pseudo_header rather than as part of
the packet data.

Fixed some calls that fetch data from the USB packet to fetch it in
little-endian byte order.

Got rid of redundant code to get conversation-specific data (the
get_usb_conv_info() call already does that).

For control packets, only parse the setup information if setup_flag is
0.

Don't interpret a control packet as a standard request unless the setup
type is "Standard".

svn path=/trunk/; revision=20632
2007-01-30 20:07:55 +00:00
Stephen Fisher
7317125c33 From Patrick vd Lageweg:
The PERSISTENT REVERVE OUT dissectors uses the table of the PERSISTENT REVERVE
IN command to decode the Service Action field which is obviously not correct.
This patch fixes the problem.


svn path=/trunk/; revision=20631
2007-01-30 19:43:29 +00:00
Martin Mathieson
4f6e3c9930 Size passed to IP address fields is now fixed (reported AVP size includes 2 bytes of padding), causing assertion reported in bug 1332.
svn path=/trunk/; revision=20623
2007-01-30 13:39:58 +00:00
Anders Broman
43e6ba8b9f Fix bug 1328 (Still Malformed packet) update some of the other packages.
svn path=/trunk/; revision=20621
2007-01-30 06:16:39 +00:00
Gerald Combs
063621f11b Fix potential buffer overruns in address_to_str_buf() found by Andrej
Mikus.  Add a buf_len parameter to ip_to_str_buf(), and make sure it's 
enforced.  Copy the release notes over from the 0.99.5 trunk and add a
note about the ISUP dissector (which is affected by the overrun).

svn path=/trunk/; revision=20607
2007-01-29 20:25:26 +00:00
Jaap Keuter
54f4d487f4 From Francesco Fondelli:
Gerrit Renker fixed a bug in DCCP dissector about long timestamps. (bad offsets)
He wrote:
> attached is a patch which updates the offsets of the timestamps.
> I have verified this against [RFC 4342, sec. 13] and it seems correct.

Also fixed file properties

svn path=/trunk/; revision=20606
2007-01-29 18:06:45 +00:00
Graeme Lunt
c4b562e988 Support for SMIMECapabilities and KeyPreference attributes.
ContentInfo syntax for .p7s, .p7c and .p7m files.


svn path=/trunk/; revision=20585
2007-01-28 10:20:51 +00:00
Graeme Lunt
7edc7aea68 Definition of a per-recipient extension to prevent failure of dissection.
(Don't know what the extension actually is.)


svn path=/trunk/; revision=20584
2007-01-28 10:15:46 +00:00
Graeme Lunt
428435dcd8 Fix for per-domain-bilateral-information (bilateral-information field wasn't handled).
svn path=/trunk/; revision=20583
2007-01-28 10:12:51 +00:00
Luis Ontanon
c6009ed5ab From Kriang Lerdsuwanakij:
1 Add ALCAP and NBAP as subdissectors of SSCOP. Previously it only
 knows about SSCF-NNI and data. (Changes in packet-sscop.c,
 packet-sscop.h)

2 Add capability for lower layer to force SSCOP to choose a particular
 dissector. It is passed as "subdissector" field of SSCOP protocol
 data. This is required because different payload protocol is
 distinguished by different VPI/VCI. There is no protocol field inside
 SSCOP frame. (Changes in packet-sscop.c, packet-sscop.h)

3 Make K12xx configuration file supporting the following syntax:
   C:\k1297\stacks\umts_iub\umts_iub_aal2l3.stk sscop:alcap
 This says dissect with SSCOP first and then pass to ALCAP.
 The change is made general, so it supports arbitrary number of
 protocol, like "proto1:proto2:proto3". Using ":" as separator
 allow us to expand the syntax further to support parameters like
 "proto1 param1:proto2 param2 param3". (Changes in packet-k12.c)

With above 3 changes together, dissecting Iub traces are correct for
control and signaling planes. I am still investigating user plane
frames because writing UMTS RLC/MAC protocol dissector is required.
The patch and sample .rf file (same as my previous patch) is in the
attachment.

plus:
Add Kriang to the AUTHORS list (and once at it upate my own record)


svn path=/trunk/; revision=20580
2007-01-28 01:41:58 +00:00
Gerald Combs
f9e2736d7c Add support for "wildcard" WPA keys in the form "wpa:passphrase" (note
the lack of SSID).  Wildcarding combines the passphrase with the last
seen SSID and attempts decryption.  The last-seen stack is only one
element tall, which means it may get clobbered on busy and diverse
networks.  We can expand it if needed.

Make internal functions static in airpdcap.c.  Rearrange the
AIRPDCAP_KEY_ITEM struct so that the passphrase and SSID don't get
clobbered when we set our PSK.

svn path=/trunk/; revision=20572
2007-01-26 21:54:59 +00:00
Jaap Keuter
f8be165898 From Patrick vd Lageweg:
This patch fixes three problems with the SCSI persistent reserve in command:
- The Additional length starts at offset 4 and not 0
- The len field contains the length used by the keys and doesn't include the header length. 
  So don't substract the header length from the length.
- The key list is traversed from the beginning to end end and not the other way around.

svn path=/trunk/; revision=20568
2007-01-26 17:06:17 +00:00
Martin Mathieson
b731274da6 Use previously unused hf_cops_obj_c_type (cops.c_type) field
svn path=/trunk/; revision=20566
2007-01-26 12:14:06 +00:00
Tomas Kukosa
9c332d6799 TLS 1.0/1.1 just ignores unknown records - RFC 2246 chapter 6. The TLS Record Protocol
(some implementations use it like "keepalive")

svn path=/trunk/; revision=20565
2007-01-26 12:08:45 +00:00
Martin Mathieson
ebb948cd3c Make COPS dissector findable by name
svn path=/trunk/; revision=20564
2007-01-26 11:31:51 +00:00
Jörg Mayer
7280702537 If there is just a tftp response without a prior request,
dissection would fail with dissector assert.

svn path=/trunk/; revision=20562
2007-01-26 08:09:20 +00:00
Bill Meier
09f508b57b A few more ethereal --> wireshark
svn path=/trunk/; revision=20559
2007-01-26 01:34:29 +00:00
Gerald Combs
c5a181d425 Remove dead code. Fixes Coverity CID 228. Squelch various compiler warnings.
svn path=/trunk/; revision=20553
2007-01-25 07:06:47 +00:00
Gerald Combs
e7bda1efe4 Attempt to squelch Coverity CID 222.
svn path=/trunk/; revision=20551
2007-01-25 06:45:09 +00:00
Gerald Combs
2664012ca6 Fix a key preference crash bug. Improve WPA passphrase and SSID length
handling.  Free a byte array.  Squelch a compiler warning.  Fix a URI
string parsing bug.

svn path=/trunk/; revision=20549
2007-01-25 01:24:14 +00:00
Gerald Combs
cd60c73163 Fix Coverity CID 230: Make sure we handle a negative tvb_length_remaining()
value correctly.  Fix up indentation.

svn path=/trunk/; revision=20546
2007-01-24 19:22:13 +00:00
Luis Ontanon
4011d754c6 dissect SDP encapsulated inside an Q1950 annex A.7 paramenter of H248
svn path=/trunk/; revision=20545
2007-01-24 17:19:44 +00:00
Stephen Fisher
3061189d6f Fix for bug #1308: tacacs decoding fails. Introduce TCP desegmentation for
data after the fixed length header as some implementations may not send
the header and payload in the same segment.


svn path=/trunk/; revision=20544
2007-01-24 04:57:32 +00:00
Ronnie Sahlberg
6a45dab11b add the obsolete RESERVE10/RELEASE10 to the sbc dissector
svn path=/trunk/; revision=20537
2007-01-23 20:59:50 +00:00
Ronnie Sahlberg
ec38ca7190 some iscsi/scsi initiators still use the ancient sbc1 commandset so add RESERVE6/RELEASE6 to the SBC dissector
svn path=/trunk/; revision=20536
2007-01-23 20:49:57 +00:00
Ronnie Sahlberg
39b2dd897d if DataSegmentLength is non zero for iscsi async messages the data segment contains
scsi sense information potentially followed by iscsi event data.

this is used by a target to tell an initiator (among other things) that the lun configuration has changed and now is a good time to rescan the target for lun changes.


svn path=/trunk/; revision=20531
2007-01-23 09:38:41 +00:00
Stephen Fisher
62c148c1d5 From Tobias Witek:
I found a rare situation in which the BSSAP dissector seems to wrongly
assume a packet.

When a RANAP DirectTransfer message contains the GSM Supplementary
Service 'Call Confirmed' this seems to yield a message that the BSSAP
dissector recognizes as a BSSMAP BLOCK message (and from the perspective
of BSSAP, this is perfectly correct).

My patch includes code that checks this very special case.


svn path=/trunk/; revision=20520
2007-01-21 23:36:53 +00:00
Stephen Fisher
597faab3c6 Change frame dissector to show "frame" instead of "packet" for all fields
for consistency.  The frame.pkt_len filter is now deprecated, but still
supported as a hidden field for an easy transition.  The new field name is
frame.len.


svn path=/trunk/; revision=20519
2007-01-21 23:02:07 +00:00
Anders Broman
1e61c642e5 Update some value strings.
svn path=/trunk/; revision=20511
2007-01-20 21:45:38 +00:00
Jaap Keuter
fce186d76a From Graeme Hewson:
The attached patch adds Homeplug to the table of ethernet types.

svn path=/trunk/; revision=20509
2007-01-20 16:46:42 +00:00
Jaap Keuter
15648712d9 From Paul Moore:
This patch adds support for the IPv4 Commercial IP Security Option (CIPSO) as
defined in the IETF draft, draft-ietf-cipso-ipsecurity-01.txt.  While this
draft has long since expired, it has become a de-facto standard for labeled
networking with support from several commercial Multi-Level Security (MLS)
operating systems such as HP-UX CMW and Trusted Solaris; in addition, Linux
Kernels 2.6.19 and later provide support for CIPSO in conjunction with
SELinux.

Copies of the expired CIPSO draft can be found at the NetLabel project page:
 * http://netlabel.sf.net

svn path=/trunk/; revision=20506
2007-01-19 23:56:42 +00:00
Jeff Morriss
1a9420702e Fix the SCCP dissector so it doesn't show non-segmented DT1 messages as
having been reassembled.

Fix the comments in reassembly.c and reassembly.h regarding what the reassembly
routines actually return in the 802.11 and no-sequence-number cases when they
are given the first and last packet (that is, a non-segmented packet): in
particular the routines return a pointer to a list containing just the one
fragment.

svn path=/trunk/; revision=20505
2007-01-19 23:27:24 +00:00
Jeff Morriss
cb8d14bd5e Reindent pretty heavily. It's still not 100% consistent but at least all the
code in each function is consistent (previously there were some sections of
code indented, oh, about 10 indentations too far).  At the same time, remove
trailing white space and change spaces to tabs.

Remove one duplicated call to sccp_assoc() and s/isup_apm/sccp/g in the hf[]
array (apparently when the XUDT reassembly was put in it was copied from ISUP
but the filter names weren't changed).


svn path=/trunk/; revision=20502
2007-01-19 17:25:13 +00:00
Jeff Morriss
4c178e287e Add a preference (defaulted to off) to have the MTP3 dissector show the priority (which is a national option in ITU) of MSUs.
svn path=/trunk/; revision=20490
2007-01-18 22:06:56 +00:00
Guy Harris
cba9c4efa8 guint32 requires %[doxu], not %l[doxu]. (We don't support ILP16
platforms, just ILP32, LP64, and LLP64.)

svn path=/trunk/; revision=20484
2007-01-18 18:41:46 +00:00
Martin Mathieson
c301ac5ce6 Filled in missing hf entries.
svn path=/trunk/; revision=20479
2007-01-18 14:41:59 +00:00
Martin Mathieson
997e5415f9 Add separate union entries to fvalue.value for signed and unsigned
32-bit numbers.  Separate signed and unsigned accessors have been
added and used where appropriate.

Definitely not for 0.99.5.

svn path=/trunk/; revision=20472
2007-01-18 11:02:26 +00:00
Jaap Keuter
b99ce1a967 From Patrick vd Lageweg:
The "NUMBER OF BLOCKS" field in the SCSI MODE SENSE return data is 24 bits and not 32 bits. This patch fixes that.

svn path=/trunk/; revision=20462
2007-01-17 17:11:09 +00:00
Jeff Morriss
0656a77020 Oops, set properties on the new file
svn path=/trunk/; revision=20461
2007-01-17 16:41:40 +00:00
Jeff Morriss
7d5b55679e From Sebastien Tandel: Support for the dissection of the Intellon homeplug powerline protocol based on INT51X1 specification.
svn path=/trunk/; revision=20459
2007-01-17 16:34:11 +00:00
Anders Broman
4e448c3cf9 Dissekt ControlChannelData.
svn path=/trunk/; revision=20458
2007-01-16 22:51:08 +00:00
Jaap Keuter
dd98f8bd4a From Gisle Vanem:
* <epan/crypt/crypt-md5.h> must come after <glib.h> because of
  'guint8' etc.
* Include <wiretap/file_util.h> because of eth_fopen().

svn path=/trunk/; revision=20456
2007-01-16 19:27:25 +00:00
Jaap Keuter
3e2faba8b4 From Steve Karg:
I added some text for enumerations that were added with addenda recently approved for the BACnet standard. 

svn path=/trunk/; revision=20453
2007-01-16 16:53:01 +00:00
Tomas Kukosa
9a36b34d03 fix registration H.225 over TLS
svn path=/trunk/; revision=20449
2007-01-16 07:53:46 +00:00
Anders Broman
2cea2d7034 Dissect SMS-OriginationRestrictions.
svn path=/trunk/; revision=20444
2007-01-15 21:07:36 +00:00
Anders Broman
165354a3f5 Handle the case where the same TransactionID is used for two different
destinations.

svn path=/trunk/; revision=20440
2007-01-15 14:01:04 +00:00
Anders Broman
de009c280a Dissect sms-BearerData also in responce messages if service code seen in Invoke.
Pretify a bunch of DigitsType parameters.

svn path=/trunk/; revision=20439
2007-01-15 10:19:50 +00:00
Ulf Lamping
e3330fd922 instead of simply doing an assert when running out of memory in emem, throw a new OutOfMemoryError Exception, so file.c can show at least a better explanation to the user before Wireshark terminates
XXX - to prevent a busy wait, I need a portable way to wait for a short time period, like Sleep() for Windows

svn path=/trunk/; revision=20437
2007-01-15 05:16:13 +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
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
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
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
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
Anders Broman
69238439c4 Dissect cdma2000HandoffInvokeIOSData.
svn path=/trunk/; revision=20409
2007-01-12 17:50:20 +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
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
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
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
Ulf Lamping
36e0b70a68 append period values to the PROFINET PTCP status
svn path=/trunk/; revision=20384
2007-01-10 21:46:50 +00:00
Tomas Kukosa
a68f0224c3 move asn1.c/.h files into plugins/asn1 directory as just this plugin uses it now
svn path=/trunk/; revision=20372
2007-01-10 07:09:30 +00:00
Luis Ontanon
f3679ee8a2 sync changes with asn/snmp
svn path=/trunk/; revision=20367
2007-01-10 01:16:22 +00:00
Jaap Keuter
4873d7eac4 Implement COMPLEMENT TO ITU-T RECOMMENDATION E.164 (02/2005):
- Modify few country codes
- Add new international networks
Cleanup sourcecode

svn path=/trunk/; revision=20361
2007-01-09 23:03:09 +00:00
Gerald Combs
9d5858f635 Move cryptography code to epan/crypt.
svn path=/trunk/; revision=20359
2007-01-09 22:14:07 +00:00
Anders Broman
dfeba2c627 Add ansi_map to the makefiles
Add missing IMPLICIT and tag numbers, some whitespace changes.

svn path=/trunk/; revision=20358
2007-01-09 21:45:46 +00:00
Luis Ontanon
faa3da9af0 change the loading order of some headers to avoid a conflict with net-snmp
svn path=/trunk/; revision=20356
2007-01-09 20:22:48 +00:00
Luis Ontanon
f7a79f43e7 SNMPv3 USM decryption/authentication phase 1
svn path=/trunk/; revision=20353
2007-01-09 18:38:55 +00:00
Jörg Mayer
6f7089fe26 Commit my USB changes (change address handling)
svn path=/trunk/; revision=20346
2007-01-08 14:32:10 +00:00
Anders Broman
284c951386 Show return signal in info col. also if no data.
svn path=/trunk/; revision=20335
2007-01-07 15:38:29 +00:00
Anders Broman
c2b459f78f Check in the asn2wrs generated ANSI map dissector.
svn path=/trunk/; revision=20334
2007-01-06 20:51:03 +00:00
Anders Broman
fda137ce6a Fix tag > 0x1f
svn path=/trunk/; revision=20333
2007-01-06 20:21:30 +00:00
Jaap Keuter
0f1cdf8c1d Added functionality proposed in bug 1233.
Clean up of source code.

svn path=/trunk/; revision=20329
2007-01-05 13:42:08 +00:00
Stephen Fisher
a69bfb6029 Remove stderr output of an error condition per bug #998. The error is already
displayed in the packet tree.


svn path=/trunk/; revision=20320
2007-01-05 00:33:23 +00:00
Gerald Combs
9b70567cb1 Don't lower-case our SSID and passphrase, otherwise we'll create an
incorrect PSK hash.

svn path=/trunk/; revision=20318
2007-01-04 23:21:37 +00:00
Luis Ontanon
41bf0f37ea the widcards: Choose and All were inverted (again?)
svn path=/trunk/; revision=20314
2007-01-04 22:44:17 +00:00
Anders Broman
b556ad58bb Make the recent INAP change in the template file as well.
svn path=/trunk/; revision=20311
2007-01-04 20:15:22 +00:00
Martin Mathieson
55905b7bf3 Make Expires header value a numeric field
svn path=/trunk/; revision=20309
2007-01-04 17:56:17 +00:00
Tomas Kukosa
8e6556a3ee fix compilation without GnuTLS
svn path=/trunk/; revision=20305
2007-01-04 13:26:45 +00:00
Martin Mathieson
b9f69234ad Check in trivial changes before generating a big diff...
svn path=/trunk/; revision=20304
2007-01-04 13:25:25 +00:00
Tomas Kukosa
cf6f013568 - new ssl_set_master_secret() which can set master secret (and optionally other parameters) into SSL dissector from external source, e.g. private 'trace protocol' dissector
- call 'data' subdissector for decrypted data in real dissector is not found

svn path=/trunk/; revision=20300
2007-01-04 09:20:18 +00:00
Jaap Keuter
1fd19fdba3 Some cleanup of the source.
svn path=/trunk/; revision=20296
2007-01-03 20:17:17 +00:00
Anders Broman
3fd426949a From Peter Vestman:
The number of rfci's in rate control messages is read in the wrong place.
We have created a patch for this, in the patch we have also added CRC checks
for header and payload.

svn path=/trunk/; revision=20295
2007-01-03 19:25:28 +00:00
Gerald Combs
f5ff0c214a Fix a typo.
svn path=/trunk/; revision=20294
2007-01-03 18:10:13 +00:00
Gerald Combs
53689800e6 Move epan/crypt-md5.[ch] to epan/crypt. Remove
epan/crypt/airpdcap_md5.[ch].  Fix up whitespace.

svn path=/trunk/; revision=20277
2007-01-02 22:49:57 +00:00
Stephen Fisher
9face6ceb8 Add a good/bad tree to the FCS item.
svn path=/trunk/; revision=20273
2007-01-02 19:55:55 +00:00
Bill Meier
444602bf97 Oops: wireshark.com --> wireshark.org
Also: 1 additional Ethereal --> Wireshark

svn path=/trunk/; revision=20272
2007-01-02 17:19:25 +00:00