Commit Graph

11237 Commits

Author SHA1 Message Date
Gerald Combs 73a08a9b17 Fix gcc compilation.
svn path=/trunk/; revision=35650
2011-01-25 18:43:43 +00:00
Anders Broman 43ba2ecef7 Switch more messages over to the "gsm dissector style".
svn path=/trunk/; revision=35649
2011-01-25 16:41:59 +00:00
Anders Broman d75443b02c packet-windows-common.c:1492: warning: 'wkwn_sid2_len' may be used uninitialized in this function
svn path=/trunk/; revision=35648
2011-01-25 15:34:52 +00:00
Anders Broman c2202875d1 Fix:
Error: the blurb for field "Well-known SID" ("nt.sid.wkwn") matches the field name in packet-windows-common.c

svn path=/trunk/; revision=35647
2011-01-25 15:33:36 +00:00
Anders Broman 82497afee7 Export de_emm_trac_area_id.
svn path=/trunk/; revision=35646
2011-01-25 13:57:59 +00:00
Anders Broman 12c8ede647 Export Global-ENB-ID.
svn path=/trunk/; revision=35645
2011-01-25 13:56:15 +00:00
Anders Broman 3605d892f0 From Cal Turney:
Enhancements to SID dissection.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5613

svn path=/trunk/; revision=35643
2011-01-25 13:53:35 +00:00
Jaap Keuter 7d9f2f9b43 From Jouni Malinen:
Allow TDLS Setup Response/Confirm to not include optional fields

Verifying whether non-zero status code is used and use explicit validation of
the remaining length and an expert info instead of implicit failure by an
exception.

svn path=/trunk/; revision=35642
2011-01-24 22:04:43 +00:00
Bill Meier dd3a1a2280 From Alexis La Goutte:
Some patch to cleanup the 802.11 Dissector.
 Part 3:  https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5609

svn path=/trunk/; revision=35641
2011-01-24 20:54:20 +00:00
Anders Broman ec43819592 Export UE-EUTRA-Capability.
svn path=/trunk/; revision=35634
2011-01-23 23:45:36 +00:00
Jaap Keuter f7544b339e From Alexis La Goutte:
Some patch to cleanup the 802.11 Dissector.

svn path=/trunk/; revision=35632
2011-01-23 20:15:31 +00:00
Jaap Keuter e3a0721786 From Alexis La Goutte:
Some patch to cleanup the 802.11 Dissector.

svn path=/trunk/; revision=35631
2011-01-23 20:11:08 +00:00
Stig Bjørlykke db82c54bef Ensure we keep the pkg_data pointer for the init routine to cleanup correctly,
because the ep memory is cleared before the init routine is called.

Fixed the variable name for the no_yes true_false_string.
Update reference to protocol description.

svn path=/trunk/; revision=35626
2011-01-22 18:07:28 +00:00
Bill Meier 9bc5fc06ce Remove unneeded #includes: <stdio>,<stdlib>,<string>; Add emacs editor modelines
svn path=/trunk/; revision=35623
2011-01-22 16:48:02 +00:00
Jeff Morriss 867bf1477e Use nstime_set_zero() to initialize nstime_t's.
svn path=/trunk/; revision=35622
2011-01-22 15:35:34 +00:00
Jaap Keuter 2f74388448 From Loránd Jakab:
The patch I am attaching here is for dissecting LISP data packets.

From me: 
Minor cleanups.
Showing the reserved field.
Adding to all makefiles and release notes.

svn path=/trunk/; revision=35615
2011-01-22 00:18:03 +00:00
Anders Broman 4374c0b0b7 - Wrong element type used.
- Use match_strval_idx_ext.

svn path=/trunk/; revision=35609
2011-01-21 14:03:42 +00:00
Anders Broman dd1ab4b227 Use EXTRANEOUS_DATA_CHECK_EXPERT
svn path=/trunk/; revision=35608
2011-01-21 09:31:25 +00:00
Anders Broman 83c29e1672 Move sgsap_elem_idx_t to packet-gsm_a_common.h
Dissect Global-CN-Id

svn path=/trunk/; revision=35607
2011-01-21 09:26:29 +00:00
Anders Broman 6956ad46d5 CN-Id is two bytes.
svn path=/trunk/; revision=35606
2011-01-21 09:24:43 +00:00
Anders Broman fe68c6f1d2 From Tobias Klauser:
Fix standard to IEC62439 Part 3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5599

svn path=/trunk/; revision=35605
2011-01-21 06:30:55 +00:00
Jeff Morriss 6e0fcb7ab5 Introduce, and start using, tvb_eth_to_str().
Export tvb_*_to_str() and put them in alphabetical order.

svn path=/trunk/; revision=35602
2011-01-21 02:48:55 +00:00
Jeff Morriss 03066d0820 Use tvb_ip_to_str()
svn path=/trunk/; revision=35601
2011-01-21 02:25:30 +00:00
Sake Blok 6e74ad9097 Adress => Address corrections (also in comments).
(see bug 5600)


svn path=/trunk/; revision=35600
2011-01-21 00:19:03 +00:00
Stephen Fisher fc7b0c019b Fix the dead initialization warnings found by clang's static analysis
("Value stored to 'xxx' during its initialization is never read")


svn path=/trunk/; revision=35598
2011-01-20 18:56:11 +00:00
Anders Broman 9c04eb9b2c Fix typos
svn path=/trunk/; revision=35597
2011-01-20 14:03:13 +00:00
Anders Broman fbde1c7130 Update a comment.
svn path=/trunk/; revision=35596
2011-01-20 13:19:26 +00:00
Anders Broman 3112035ad2 In MM context the container contains IE:s not a complete
DTAP message.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5598

svn path=/trunk/; revision=35595
2011-01-20 13:05:17 +00:00
Jaap Keuter 3ff6167958 Allow for expert items to be actually attached somewhere.
svn path=/trunk/; revision=35594
2011-01-20 08:58:03 +00:00
Jeff Morriss 705f2ede5d Roll some calls to tvb_get_ptr() into proto_tree_add_bytes_format() (instead
of going through a temporary variable).  This just makes it more obvious which
add_bytes_format() calls are or are not being given pointers into the TVB.

Use tvb_ip_to_str() and tvb_ip6_to_str() in a couple spots.

svn path=/trunk/; revision=35593
2011-01-20 03:49:44 +00:00
Stephen Fisher 32f6ab2248 Simply this:
#define SIP2_HDR "SIP/2.0"
    #define SIP2_HDR_LEN ((gint)strlen (SIP2_HDR))

To this:

    #define SIP2_HDR "SIP/2.0"
    #define SIP2_HDR_LEN 7


svn path=/trunk/; revision=35588
2011-01-19 21:51:30 +00:00
Stephen Fisher 316cd69642 Fix warning found by clang...
packet-dcerpc.c:4056:19: error: comparison of integers of different signs:
      'guint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
    for (i = 0; i < (int) commands_nb; ++i) {
                ~ ^ ~~~~~~~~~~~~~~~~~

... by removing the "(int)" cast


svn path=/trunk/; revision=35587
2011-01-19 21:45:54 +00:00
Jaap Keuter 5c7ec8729a From Alexis La Goutte:
A patch to enhance the ICMPv6 dissector
- Make ICMP Type (sub)field filterable
- Add Inverse Neighbor Discovery (RFC 3122)
- Remove dependency to packet-ipv6.h
- Cleanup packet-ipv6.h
- Update RFC Draft to draft-ietf-roll-rpl-17 (with make a sub dissector
  for RPL Control and add Secure RPL...)
- Replace tvb_get_ipv6/ip6_to_str by new function tvb_ip6_to_str
- and other enchancements.....

svn path=/trunk/; revision=35586
2011-01-19 20:57:39 +00:00
Anders Broman feea97e6aa packet-bssgp.c:6916: warning: 'bssgp_tree' may be used uninitialized in this function
svn path=/trunk/; revision=35581
2011-01-19 09:49:36 +00:00
Anders Broman 3c491eee6b Cleaned up splitt between old and new dissection style.
A lot of conversion still needed.

svn path=/trunk/; revision=35580
2011-01-19 09:35:34 +00:00
Anders Broman 6b24548858 Add the RAI value to "add_string"
svn path=/trunk/; revision=35579
2011-01-19 06:43:28 +00:00
Anders Broman 4a3eda9862 Updated to OMA-TS-ULP-V2_0-20100806-D
with asn1 files from eyimjia.
Files hand edited to pass as2wrs.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5593
(Does not fix the bug)

svn path=/trunk/; revision=35577
2011-01-19 06:27:50 +00:00
Anders Broman f785ee57ff Introduce EXTRANEOUS_DATA_CHECK_EXPERT
which adds an expert item.

svn path=/trunk/; revision=35576
2011-01-18 20:16:56 +00:00
Anders Broman cbc7cbd1b2 Handle two length octets correctly in TELV.
svn path=/trunk/; revision=35573
2011-01-17 21:12:30 +00:00
Anders Broman 821f91f278 - append TLLI value.
- Whitespace changes.

svn path=/trunk/; revision=35572
2011-01-17 21:10:54 +00:00
Bill Meier 8d272fb165 (Until Anders comletes work): use #if 0 instead of //; init a variable;
svn path=/trunk/; revision=35571
2011-01-17 16:51:31 +00:00
Jeff Morriss fa16c931e1 Actually use proto_tree_add_item() instead of proto_tree_add_ether(). I hope I didn't miss more of these...
svn path=/trunk/; revision=35569
2011-01-17 15:22:11 +00:00
Martin Mathieson 7205313026 - Use correct data pointer during a comparison.
- Add expert info to show when DRX command is received
- Get rid of some tabs


svn path=/trunk/; revision=35568
2011-01-17 15:01:22 +00:00
Anders Broman fe7213590b Restore dissection of Mobile Identity(revert the code).
svn path=/trunk/; revision=35567
2011-01-17 14:18:54 +00:00
Anders Broman 71d02b5455 - Remove debug printout.
- Enhance dissection a bit.
- add new true_false_strings

svn path=/trunk/; revision=35566
2011-01-17 13:09:08 +00:00
Jeff Morriss 884d5491b1 Actually use proto_tree_add_item instead of proto_tree_add_bytes. Fixes bug 5588.
svn path=/trunk/; revision=35562
2011-01-16 22:52:17 +00:00
Anders Broman 672ce3871d Switch to using proto_add_bits_item in a couple of places and fix
missing stepping of bit_offset.

svn path=/trunk/; revision=35561
2011-01-16 22:32:22 +00:00
Jaap Keuter 8356fdd6ac From Vaibhav Katkade:
Add support for newly defined LLDP Four-wire Power-via-MDI and 
CDP Spare Pair PoE TLVs

svn path=/trunk/; revision=35559
2011-01-16 21:32:39 +00:00
Jeff Morriss 8d32d2066a There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or
tvb_get_const_stringz().

Use tvb_memeql() & tvb_memcmp().

svn path=/trunk/; revision=35558
2011-01-16 20:51:21 +00:00
Jeff Morriss c04dd5fda9 Use tvb_fc_to_str() and tvb_fcwwm_to_str().
svn path=/trunk/; revision=35557
2011-01-16 18:37:56 +00:00
Anders Broman b80813a45c From Porus Mehta:
Corrections to ANSI MAP ASN.1 specifications.

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

svn path=/trunk/; revision=35556
2011-01-16 18:36:17 +00:00
Anders Broman 568605ae13 r35546 Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.
Make the change also in the .cnf file

svn path=/trunk/; revision=35551
2011-01-16 08:24:11 +00:00
Jeff Morriss b2c0cfa9dd Move assignment of 'oct' outside of if(tree)--it is used outside of the if block.
svn path=/trunk/; revision=35550
2011-01-16 04:38:59 +00:00
Jeff Morriss 77b3392e72 Introduce, and start using, tvb_fc_to_str() and tvb_fcwwm_to_str(): these
functions act like their non-tvb counterparts except that they take a tvb and
and offset instead of a pointer to a byte array.

This basically saves the dissectors from having to call tvb_get_ptr()--which in
this case eliminates a couple of typos in the length given to tvb_get_ptr().

svn path=/trunk/; revision=35549
2011-01-16 04:33:42 +00:00
Jeff Morriss 61876001c3 Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

svn path=/trunk/; revision=35548
2011-01-16 03:57:12 +00:00
Jeff Morriss d553df218e Use tvb_memeql().
Use tvb_ip_to_str().

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35547
2011-01-16 03:46:16 +00:00
Jeff Morriss f36e2be287 Use tvb_memeql() and tvb_memcpy().
Use tvb_ip_to_str() and tvb_ip6_to_str().

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35546
2011-01-16 03:35:29 +00:00
Jeff Morriss 067a076179 Use tvb_ip_to_str().
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35545
2011-01-16 03:29:03 +00:00
Anders Broman 1f19cd8f1b Comitting work in progress to fix the linking problem.
>Linking fails now:
>epan/.libs/libwireshark.so: undefined reference to `hf_bssgp_elem_id'
>epan/.libs/libwireshark.so: undefined reference to `bssgp_elem_fcn'
>epan/.libs/libwireshark.so: undefined reference to `ett_bssgp_elem'
>epan/.libs/libwireshark.so: undefined reference to >`bssgp_elem_strings'
>Did you miss packet-bssgp.c in that commit?

I'll try to clean this up in the next few days.

svn path=/trunk/; revision=35544
2011-01-15 23:13:28 +00:00
Jeff Morriss ed329ca1d4 Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().

svn path=/trunk/; revision=35543
2011-01-15 19:01:53 +00:00
Jeff Morriss c037bba949 Don't (blindly) pass the result of match_strval() into proto_tree_add_*():
some OS (like Solaris) don't like NULL pointers to strings in (s)printf
formats; use val_to_str() instead.

svn path=/trunk/; revision=35542
2011-01-15 18:58:42 +00:00
Jeff Morriss b589c42fa3 Replace some duplicate blurbs with NULL
svn path=/trunk/; revision=35541
2011-01-15 18:18:13 +00:00
Jeff Morriss e11921d192 Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().

svn path=/trunk/; revision=35540
2011-01-15 03:25:43 +00:00
Anders Broman 862e2d498c - Add TELV to dissct IE's with an extention bit in the length vallue.
- Add a BSSGP PDU type
- Put IE name in the top tree for ELEM_V

svn path=/trunk/; revision=35539
2011-01-14 21:43:31 +00:00
Chris Maynard 116d67e164 Add tvb_get_[n|le]toh[40|48|56]() accessors. Addresses bug 5082.
svn path=/trunk/; revision=35538
2011-01-14 19:02:38 +00:00
Graham Bloice 8e86e3dbbf Removed redundant comparison that caused compilation failure on OSX
svn path=/trunk/; revision=35536
2011-01-14 14:39:40 +00:00
Martin Mathieson 51170aa0fc When looking for previous frame for UL/DL retx, use harq-id + ndi bit.
svn path=/trunk/; revision=35535
2011-01-14 14:25:24 +00:00
Graham Bloice 1be12860e6 Updated dissector:
Additional function codes: Disable unsolicited messages, Open\Close\Delete file
Additional data objects: Analog output events, File objects and Octet string events.
Improved Info column display for reassembled fragments.
Changed all event timestamps to be UTC as per protocol spec.

svn path=/trunk/; revision=35533
2011-01-14 12:15:10 +00:00
Martin Mathieson b1dd79a122 Rather than repairing out-of-range subframe numbers, make sure error gets reported (and then are not used to access beyond subframe arrays).
svn path=/trunk/; revision=35531
2011-01-14 11:21:28 +00:00
Jaap Keuter cc3952ca4f From Hadar Shoham:
bootp option 123 has 2 chooses - coordinate based location RFC 3825 or
CableLabs DSS_ID. Add better support for having 2 DSS_ID with dynamic
size (up to 32 byte each)

svn path=/trunk/; revision=35530
2011-01-14 07:20:31 +00:00
Jeff Morriss 6cfdeed280 Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.

Replace some memcpy()+tvb_get_ptr() with tvb_memcpy().

svn path=/trunk/; revision=35529
2011-01-14 03:44:58 +00:00
Jeff Morriss 2df5275d87 Don't (blindly) pass the result of match_strval() into proto_tree_add_*():
some OS (like Solaris) don't like NULL pointers to strings in (s)printf
formats; use val_to_str() instead.

svn path=/trunk/; revision=35526
2011-01-13 22:18:30 +00:00
Jaap Keuter 2df51c6860 From Clemens Auer:
This patch adds support for the following fields in Meta protocol:
- Deciphered
- Local Device ID,
- Remote Device ID,
- Tap Group ID,
- TLLI,
- Calling Station ID,
- Called Station ID

svn path=/trunk/; revision=35524
2011-01-13 21:22:57 +00:00
Jeff Morriss a167206685 Introduce, and start using, tvb_ip_to_str() and tvb_ip6_to_str(). These
do the same as the non-tvb equivalents but take a TVB and an offset instead
of a pointer to an array of bytes.

Their purpose is to prevent (many) dissectors from doing:
ip_to_str(tvb_get_ptr(...)).

(About the names and the location: I like the names as they are but the names
imply that they should live in tvbuff.c.  That would make some sense but
I didn't want to pull to_str.h into tvbuff.c...)

svn path=/trunk/; revision=35519
2011-01-13 15:53:30 +00:00
Martin Mathieson d9520dc09c Getting ready for R9 versions of some LTE protocols.
svn path=/trunk/; revision=35518
2011-01-13 15:16:45 +00:00
Anders Broman 3abc24fdff Use value_string_ext.
svn path=/trunk/; revision=35517
2011-01-13 15:03:55 +00:00
Anders Broman 08145f0dff Remove an unused variable.
svn path=/trunk/; revision=35516
2011-01-13 14:36:40 +00:00
Anders Broman 7c7281d0b4 Make it possible to dissect the part pressent in short frames.
svn path=/trunk/; revision=35515
2011-01-13 14:07:34 +00:00
Anders Broman 0a95691b3d From Pascal Quantin:
Fix dissection of  protocol ID.

svn path=/trunk/; revision=35513
2011-01-13 06:32:23 +00:00
Anders Broman 757bc6a6ff Set gsm_a_dtap_pinfo->link_dir to get proper dissection of PCO.
svn path=/trunk/; revision=35510
2011-01-12 21:36:11 +00:00
Anders Broman 46f62f1b49 Mark a parameter as unused.
svn path=/trunk/; revision=35507
2011-01-12 17:05:58 +00:00
Anders Broman 93cbda72dd Enhance IE dissection.
svn path=/trunk/; revision=35506
2011-01-12 16:43:59 +00:00
Anders Broman a5683f7d48 Update dissection of Protocol configuration options.
svn path=/trunk/; revision=35505
2011-01-12 16:43:19 +00:00
Jaap Keuter 95cc16bbbc From Eliad:
Add dissector for P2P Group BSSID attribute (of p2p).

svn path=/trunk/; revision=35504
2011-01-12 07:46:46 +00:00
Jaap Keuter 889e3dbe54 From Steve Karg:
Added a display filter on BACnet WhoIs Low Limit and High Limit.

svn path=/trunk/; revision=35503
2011-01-12 07:42:18 +00:00
Anders Broman 6a49803d2c Update a value_string.
svn path=/trunk/; revision=35502
2011-01-12 07:39:54 +00:00
Anders Broman 8326aa2db7 Use value_string_ext in a couple of places.
svn path=/trunk/; revision=35501
2011-01-12 07:36:55 +00:00
Jaap Keuter 2afdc55cd0 From Fulko Hew:
Improved the decoding of OID search ranges in AgentX dissector:

1/ OID highlighting on first OID of a range was too long.
   The code incorrectly used the length of the printable string instead 
   of the length of the source data.
2/ Added bitwise dissection of the 'include' field of an OID decoding.
3/ Added corrected 'start/end' range information to SearchRange decoding to
   discriminate between an 'end' indicator (old way) and the new way that 
   shows both an inclusive/exclusive indicator as well as a start/end range 
   indicator. (applicable to getnext/getbulk requests).

svn path=/trunk/; revision=35500
2011-01-12 07:31:49 +00:00
Anders Broman 5ebd7cb133 TCAP- Application context name not been decoded correctly
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5573

svn path=/trunk/; revision=35498
2011-01-12 07:18:57 +00:00
Jeff Morriss 2214faa7f3 There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_string(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.

In a couple of places an hf variable was being used as the length in a call to
proto_tree_add_*().  Use the appropriate variable instead.

svn path=/trunk/; revision=35497
2011-01-12 03:35:14 +00:00
Jeff Morriss b6542d17d8 There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_string(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.

In a couple of places an hf variable was being used as the length in a call to
proto_tree_add_*().  Use the appropriate variable instead.

svn path=/trunk/; revision=35496
2011-01-12 03:27:32 +00:00
Jeff Morriss fd0e521cbb There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_string(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.

In a couple of places an hf variable was being used as the length in a call to
proto_tree_add_*().  Use the appropriate variable instead.


svn path=/trunk/; revision=35495
2011-01-12 03:19:07 +00:00
Jeff Morriss 848f067017 Replace some uses of tvb_get_ptr() with tvb_get_ephemeral_string().
svn path=/trunk/; revision=35494
2011-01-12 03:08:05 +00:00
Jeff Morriss 0c4e881911 Introduce, and start using, tvb_get_const_stringz(). This function returns a
pointer to a NULL-terminated string in the TVB.  It is no safer than dissectors
which call tvb_get_strsize() and then tvb_get_ptr() but it makes it clear that
this usage of tvb_get_ptr() is safe.

This function is slightly more efficient than tvb_get_ephemeral_stringz()--but
only as long as we're not using composite TVBs.

svn path=/trunk/; revision=35493
2011-01-12 02:25:08 +00:00
Jeff Morriss 1c5d75288c Don't attempt to reassemble short (reported_len > len) chunks.
svn path=/trunk/; revision=35486
2011-01-11 22:41:19 +00:00
Jeff Morriss 6e7d85a92c Don't store message fragments whose length is 0: there's no point. (Otherwise
fragment->len was left unitialized.)

Also (unrelated): save a couple of calls to tvb_reported_length() since the
value is already stored in a variable.

svn path=/trunk/; revision=35485
2011-01-11 22:36:31 +00:00
Anders Broman a78e5d7900 Use value_string_ext and friends.
svn path=/trunk/; revision=35484
2011-01-11 20:15:04 +00:00
Anders Broman f108c58805 Complement to
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=35477

svn path=/trunk/; revision=35483
2011-01-11 20:02:30 +00:00
Anders Broman 852c75636e Improve dissection of UE Time Zone.
svn path=/trunk/; revision=35477
2011-01-11 17:06:38 +00:00
Anders Broman b2992b2310 ldap.cnf:782: warning: ISO C90 forbids mixed declarations and code
svn path=/trunk/; revision=35476
2011-01-11 11:41:03 +00:00
Jaap Keuter 1ea96b1e30 From Slava K:
FCoIB – Fibre Channel over InfiniBand. The protocol enables transmission of
Fibre Channel frames over InfiniBand networks. It is based on encapsulation of
Fibre Channel frames over InfiniBand UD transport. The discovery protocol is
based on the FIP protocol (not supported by this patch).

This patch adds an FCoIB dissector to Wireshark. It is based in large part on
the existing FCoE dissection code.

This code is submitted on behalf of Mellanox Technologies Ltd.

svn path=/trunk/; revision=35475
2011-01-11 08:22:16 +00:00
Ronnie Sahlberg 3079c9c931 From Matthieu Patou <mat@samba.org>
Dissect LDAP DirSyncFlags to show the bits of this bitmap.



svn path=/trunk/; revision=35474
2011-01-11 02:27:41 +00:00
Ronnie Sahlberg 27f36858fd Add a missing procedure name for NFS-ACL
svn path=/trunk/; revision=35466
2011-01-10 22:31:05 +00:00
Stephen Fisher fe06217c35 Stop gcc warning about type-punned pointer breaks strict anti-aliasing
rules.  (Is this the right fix?  I had to remove a now meaningless
comparison of psm > 0x1000 (4096) since psm is now a guint8 not a guint16.)


svn path=/trunk/; revision=35463
2011-01-10 21:23:25 +00:00
Gerald Combs 1b4d847a90 Add 2869 to the list of HTTP ports: http://support.microsoft.com/kb/886257
svn path=/trunk/; revision=35461
2011-01-10 20:23:21 +00:00
Anders Broman 096e3737bc Add an expert item about not dissected IE's
svn path=/trunk/; revision=35460
2011-01-10 19:48:15 +00:00
Anders Broman 275c3c8818 Shorten long winded strings.
svn path=/trunk/; revision=35456
2011-01-10 17:34:00 +00:00
Bill Meier e0424dde5d Move some DISSECTOR_SRC & DISSECTOR_INCLUDES entries so they are (more or less) in alpha order.
svn path=/trunk/; revision=35454
2011-01-10 15:19:18 +00:00
Jeff Morriss 03c7b7093e Give a couple commented-out hf's abbreviations (to keep checkAPIs happy).
svn path=/trunk/; revision=35452
2011-01-10 14:40:10 +00:00
Anders Broman b321c5d5ea Add application/vnd.3gpp.cw+xml
svn path=/trunk/; revision=35450
2011-01-10 12:28:56 +00:00
Jaap Keuter a1ea8ad71b Clean up the blurbs indicated by checkAPIs.
svn path=/trunk/; revision=35449
2011-01-10 07:39:15 +00:00
Jeff Morriss dc22fbfc50 Give CSID an abbreviation.
svn path=/trunk/; revision=35446
2011-01-10 03:02:43 +00:00
Jaap Keuter 65ca06b9c6 Make comment a real comment, trying to fix the buildbot.
svn path=/trunk/; revision=35445
2011-01-09 22:34:20 +00:00
Anders Broman b9eddc7117 Update value_strings
svn path=/trunk/; revision=35442
2011-01-09 20:41:19 +00:00
Anders Broman 589d38b8f4 More field related fixes.
svn path=/trunk/; revision=35440
2011-01-09 19:37:35 +00:00
Anders Broman 30c2b245cd Fix:
20:15:19          Err  Field 'Link-local Address' (pmip6.lila_lla) is an FT_IPv6
 but is being displayed as BASE_HEX instead of BASE_NONE

svn path=/trunk/; revision=35439
2011-01-09 19:17:39 +00:00
Anders Broman fab599ffc0 Fix:
packet-mip6.c:801: warning: 'hf_pmip6_opt_ipack' defined but not used
packet-mip6.c:802: warning: 'hf_pmip6_opt_ipack_res' defined but not used

svn path=/trunk/; revision=35438
2011-01-09 19:15:11 +00:00
Anders Broman 40acaf76ce Add 26 Link-local Address Option.
Comments and whitespace changes.

svn path=/trunk/; revision=35436
2011-01-09 17:49:31 +00:00
Anders Broman a2bbf3d7cc Put sgsap in the right place.
svn path=/trunk/; revision=35433
2011-01-09 13:50:41 +00:00
Anders Broman 5c6ab22ff3 Get rid of check_col().
svn path=/trunk/; revision=35432
2011-01-09 13:50:03 +00:00
Anders Broman f23d884631 Try to fix:
packet-gtpv2.c:2648: warning: return type defaults to 'int'
packet-gtpv2.c: In function 'dissect_udp_s_port_nr':
packet-gtpv2.c:2690: warning: unused parameter 'length'
packet-gtpv2.c: In function 'dissect_gtpv2_fq_csid':
packet-gtpv2.c:2845: warning: unused parameter 'length'
packet-gtpv2.c: In function 'dissect_gtpv2_emlpp_pri':
packet-gtpv2.c:2927: warning: implicit declaration of function 'be_emlpp_prio'
packet-gtpv2.c: At top level:
packet-gtpv2.c:3056: warning: initialization from incompatible pointer type

svn path=/trunk/; revision=35431
2011-01-08 20:26:35 +00:00
Anders Broman b6427b53b5 Further IE dissection updates.
svn path=/trunk/; revision=35430
2011-01-08 20:09:29 +00:00
Guy Harris 785f7b5191 Use report_failure() to report problems reading the RADIUS dictionary,
so it shows up in the GUI in Wireshark.

svn path=/trunk/; revision=35427
2011-01-08 17:06:04 +00:00
Guy Harris 132f13c2f9 If the lack of a peer conversation is a bug, use one of the
dissector-bug macros.  If it's just that we're missing some packets, we
should handle that as best we can and, if there's stuff we can't do,
maybe put something into the protocol summary or tree saying "not enough
information".  Don't just spit out a warning message which the user
might not even see.

svn path=/trunk/; revision=35426
2011-01-08 16:40:46 +00:00
Sake Blok ea4ac173d0 Add "tcp.window_size_value" and "tcp.window_size_scalefactor" conform
the discussion in bug 5541. Since we now have the window size value as
well as the scaled window size, there is no need anymore for the
tcp preference "tcp_window_scaling".


svn path=/trunk/; revision=35425
2011-01-08 15:51:38 +00:00
Chris Maynard 4a8fa72830 Append text to INFO column. Closes out bug 4472.
svn path=/trunk/; revision=35423
2011-01-07 19:22:09 +00:00
Jeff Morriss bf2796ab92 Don't try to display a string in BASE_DEC. Also delete duplicate registration of hf_gtpv2_pti.
svn path=/trunk/; revision=35422
2011-01-07 19:01:17 +00:00
Anders Broman f235eadf25 ** (process:23326): WARNING **: Field 'Reserved bit(s)' does not have an
abbreviation

** ERROR **: Field 'IPv4 Address' (gtpv2.ipv4_addr) is an FT_IPv4 but is being
displayed as BASE_DEC instead of BASE_NONE

svn path=/trunk/; revision=35420
2011-01-07 18:04:03 +00:00
Anders Broman 6d801a2052 Fix buildbot.
svn path=/trunk/; revision=35419
2011-01-07 16:12:01 +00:00
Jeff Morriss 2c2990fc08 Fix the fuzz failure in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5554 :
Don't assume that g_strsplit() found and returned 3 strings.

svn path=/trunk/; revision=35418
2011-01-07 15:59:26 +00:00
Anders Broman 863e3f80a6 Add dissection of more IE:s
svn path=/trunk/; revision=35417
2011-01-07 15:21:23 +00:00
Guy Harris 1718ab7691 If we get an unknown reply status, don't print a g_warning message -
just put the reply body, if any, into the protocol tree as a blob.  The
protocol tree will note that it's an unknown status.

svn path=/trunk/; revision=35414
2011-01-07 00:26:57 +00:00
Anders Broman bdc3fa5463 From Alexis La Goutte:
- Update RFC Draft (draft-vida-mld-v2-08.txt) to Final RFC
(RFC 3810)
- Make MLD field filterable 
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5552

svn path=/trunk/; revision=35413
2011-01-07 00:19:28 +00:00
Guy Harris b711e23baa Don't use g_warning() - either you have a dissector bug, and should use
one of the macros to report that, or you have a problem with the packet,
in which case you should note that in the protocol tree, or you have
something you don't understand, in which case you should dissect
whatever of it you do understand and put something appropriate, if
possible, into the protocol tree for the rest.

(And, if the length isn't right, there's not much you can do about it -
you have to trust the length, and manage to fail somewhere else.)

svn path=/trunk/; revision=35408
2011-01-06 22:52:40 +00:00
Stephen Fisher 802308ca01 More misc. CLDAP improvements for Active Directory including updating
field names and adding descriptions, changing the Domain GUID in the "LDAP
ping" response to a FT_GUID instead of FT_BYTES, etc.


svn path=/trunk/; revision=35407
2011-01-06 22:24:10 +00:00
Jeff Morriss 9335685106 Fix the fuzz failure in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5550 :
In dissect_amqp_0_10_array() if the 'type' is unknown, don't loop (for
potentially a very long time) adding the same element over and over again
(since the type is unknown, we don't know how much to increase the offset so
an exception is never thrown).

svn path=/trunk/; revision=35406
2011-01-06 21:07:58 +00:00
Stephen Fisher a9761c53b7 More minor cleanup/fixes for MS Active Directory's use of CLDAP.
svn path=/trunk/; revision=35404
2011-01-06 18:50:39 +00:00
Stephen Fisher 89d9b73e47 Minor corrections to NtVer dissection for NETLOGON_NT_VERSION Options Bits
in MSCLDAP packets per Microsoft's MS-ADTS specification, section 7.3.1.1,
revision 26 (11/19/2010).  Also re-format code a bit.


svn path=/trunk/; revision=35403
2011-01-06 18:08:14 +00:00
Stephen Fisher ab377e1e09 When showing a DNS query response containing a SRV record, display items
in the tree of the service record broken out.  For example,
"_ldap._tcp.domain.com" shows:

	Service: ldap
	Protocol: tcp
	Name: domain.com


svn path=/trunk/; revision=35401
2011-01-06 17:15:50 +00:00
Jeff Morriss 18f751d877 (After discussion on -dev) revert 35393: the old code is faster (and it is safe).
svn path=/trunk/; revision=35400
2011-01-06 16:08:56 +00:00
Jeff Morriss 8934e6bf26 strtoull() doesn't exist on Windows, use g_ascii_strtoull() instead.
svn path=/trunk/; revision=35399
2011-01-06 15:02:46 +00:00
Jeff Morriss 5a2ef3cb01 Use tvb_memeql() instead of memcmp()+tvb_get_ptr().
svn path=/trunk/; revision=35398
2011-01-06 03:08:03 +00:00
Jeff Morriss eaea469533 Actually use proto_tree_add_item().
svn path=/trunk/; revision=35397
2011-01-06 02:58:26 +00:00
Jeff Morriss 6f1c903e18 There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_string: just use proto_tree_add_item().
svn path=/trunk/; revision=35396
2011-01-06 02:56:10 +00:00
Jeff Morriss eea559bc2c There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_string: just use proto_tree_add_item().
svn path=/trunk/; revision=35395
2011-01-06 02:52:00 +00:00
Jeff Morriss 0b49360059 Rather than creating strtoul{l} functions that can deal with possibly non-NULL
terminated strings (retrieved with tvb_get_ptr()), just use
tvb_get_ephemeral_string() and the standard strtoul{l} functions.

svn path=/trunk/; revision=35394
2011-01-06 02:45:01 +00:00
Jeff Morriss fb7450a8df Use tvb_get_ephemeral_stringz() instead of tvb_get_strsize() plus (sometimes multiple) calls to tvb_get_ptr().
svn path=/trunk/; revision=35393
2011-01-06 02:18:36 +00:00
Jeff Morriss 9b3eb1ff4b Reset the global pdu_type *before* returning.
svn path=/trunk/; revision=35391
2011-01-05 22:40:47 +00:00
Jeff Morriss 61317d2dbd Remove an unreached return.
svn path=/trunk/; revision=35390
2011-01-05 22:33:25 +00:00
Jeff Morriss 8535524c6a Remove a duplicate return.
svn path=/trunk/; revision=35389
2011-01-05 22:27:41 +00:00