Commit graph

8403 commits

Author SHA1 Message Date
Stig Bjørlykke
7e99557d05 Another try to fix the compiler warnings on win64.
svn path=/trunk/; revision=29161
2009-07-21 22:23:34 +00:00
Stig Bjørlykke
49cb1d37ee Cummulative number of packets lost is a signed 24 bits value.
This fixes bug 3763.

Cleanup some proto_tree_add_uint() -> proto_tree_add_item().

svn path=/trunk/; revision=29160
2009-07-21 22:09:31 +00:00
Guy Harris
8300e59b2f More gsizery.
svn path=/trunk/; revision=29158
2009-07-21 09:05:16 +00:00
Guy Harris
a864f7d89a GLib documentation says the 3rd and 5th arguments to g_iconv are "gsize
*"s.

svn path=/trunk/; revision=29157
2009-07-21 08:53:39 +00:00
Anders Broman
f610ec3c46 size_t -> int to make the Win64 build bot happy.
svn path=/trunk/; revision=29156
2009-07-21 08:35:24 +00:00
Stig Bjørlykke
6dbdc38c53 Initialize bacapp_invoke_id to avoid a compiler warning.
svn path=/trunk/; revision=29155
2009-07-21 08:07:40 +00:00
Martin Mathieson
a2d0ad942f Stop using the C++ 'true' and 'false'.
I still get a compilation error...

packet-bacapp.c: In function `dissect_bacapp':
packet-bacapp.c:6350: warning: 'bacapp_invoke_id' might be used uninitialized in this function

... although I've followed the paths (including the setting of 'segment'), and it looks bogus to me.


svn path=/trunk/; revision=29154
2009-07-21 07:59:16 +00:00
Guy Harris
dafbc0abf3 Fix typo.
svn path=/trunk/; revision=29153
2009-07-21 07:44:04 +00:00
Guy Harris
b6953e2c26 Don't use tvb_length_remaining() - that just reports how much captured
data is available, not how big the packet really is.

Clean up white space.

Get rid of an unused parameter and two unused variables.

svn path=/trunk/; revision=29152
2009-07-21 07:28:47 +00:00
Anders Broman
3e1365cc15 From Herbert Lischka:
Added some new features to BACnet dissection:
- ListOfObjectPropertyReferences in scheduler
- RestartReason
- Properties for loop-object
- LogDeviceObjectProperty in trend-log object
- log-buffer entries in trend-log object

- reassemby of fragmented messages
- fallback changed if iconv-library is not here

Me: Moved includes from .h to .c as thats how we normaly do it.

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

svn path=/trunk/; revision=29151
2009-07-21 06:20:47 +00:00
Anders Broman
c526a96ec5 From Gerasimos Dimitriadis:
Enhancement to E.212 MCC/MNC decoding.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3759

svn path=/trunk/; revision=29149
2009-07-21 06:02:12 +00:00
Stig Bjørlykke
221225e0f3 From Kovarththanan Rajaratnam via bug 3719:
This patch optimizes proto_tree_prime_hfid() + friends and
plugs a memleak in the process.

From me:
Removed unused hfindex in proto_tree_new_item()
Fixed ref_count entry in struct header_field_info.

svn path=/trunk/; revision=29137
2009-07-18 20:10:14 +00:00
Bill Meier
095f4a5c12 From Robert Hogan: "no need to register tn3270 for 'decode-as'".
svn path=/trunk/; revision=29134
2009-07-17 19:41:34 +00:00
Bill Meier
891d655e8a Minor changes: Move protocol_register & etc to end;
Use find_dissector instead of create_dissector_handle.

svn path=/trunk/; revision=29132
2009-07-17 14:25:56 +00:00
Jaap Keuter
f9177273d8 From Robert Hogan:
I'm working on a tn3270 dissector. 
See: http://roberthogan.net/stuff/tn3270-dissector/

svn path=/trunk/; revision=29129
2009-07-17 06:49:58 +00:00
Gerald Combs
bad647581b Initialize a variable and remove a check_col.
svn path=/trunk/; revision=29127
2009-07-16 22:24:31 +00:00
Gerald Combs
b0aa9d9696 Use SE_COPY_ADDRESS instead of trying to attach ep_alloced data to an
se_alloced struct.

svn path=/trunk/; revision=29126
2009-07-16 21:35:54 +00:00
Anders Broman
af3ad92c81 From Sean Yunjnz:
Problem in packet-per.c for ASN.1 PER Encoding.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3733

svn path=/trunk/; revision=29124
2009-07-16 21:09:18 +00:00
Gerald Combs
fcac7c5695 Make sure some variables are initialized so that Valgrind quits
complaining.  Use se_memdup to copy memory.

svn path=/trunk/; revision=29123
2009-07-16 21:03:39 +00:00
Jaap Keuter
05babef3b4 From David Dahlberg:
As for now, Wireshark supports only 96-bit (or 0-bit for NULL authentication)
integrity control values (ICVs) for IPsec ESP. While the autentication field is
of variable length, this may lead to situations where the whole packet is not
parsable.

To solve this, I added generic classes (not checked) for 128, 192 and 256 bit
ICVs to the ESP dissector. I also split the HMAC-SHA-256 autentication
algorithm to HMAC-SHA-256-128 (128 bit as defined in RFC 4868) and
HMAC-SHA-256-96 (from the very first draft, nevertheless unpatched Linux and
BSDs do it this way).

svn path=/trunk/; revision=29121
2009-07-16 19:57:15 +00:00
Gerald Combs
517d9cec5f Don't crash if we happen to load a bad MIB file.
svn path=/trunk/; revision=29118
2009-07-16 17:00:58 +00:00
Stig Bjørlykke
e9066532cf From Kahou via bug 3739:
New DLT value is added for Fibre Channel FC2.

svn path=/trunk/; revision=29115
2009-07-16 10:45:14 +00:00
Gerald Combs
6ade5c0615 Add a modeline blurb. Minor indentation fix.
svn path=/trunk/; revision=29111
2009-07-15 23:16:10 +00:00
Gerald Combs
143d15c4e4 Make sure we advance our offset during a while loop. This should fix recent
fuzz errors.

svn path=/trunk/; revision=29109
2009-07-15 22:51:01 +00:00
Guy Harris
ba3ca797bc Get rid of C++-style comment (and anglicize it).
svn path=/trunk/; revision=29105
2009-07-15 21:30:37 +00:00
Stig Bjørlykke
d41065097e Indent some comments.
svn path=/trunk/; revision=29103
2009-07-15 19:33:48 +00:00
Gerald Combs
0230d48489 Remove an unused define.
svn path=/trunk/; revision=29098
2009-07-14 23:09:59 +00:00
Bill Meier
31ab30f1cf #include prefs.h not req'd; Also: remove unused #define
svn path=/trunk/; revision=29097
2009-07-14 21:34:03 +00:00
Anders Broman
a9f5ba1bd8 From Vladimir Smrekar :
v5.2-User Adaptation Layer and V5.2 Interface.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3732

Me:
Removed check_col(), hf blurbs, removed global vars and regestering
SCTP port in packet-v52.c.

svn path=/trunk/; revision=29096
2009-07-14 20:49:34 +00:00
Gerald Combs
60877bb714 From Alvaro Vega Garcia via bug 3652:
Patch with some improvements for packet ziop dissector following patch
about MIOP dissector submitted by Kovarththanan Rajaratnam.

From me:

Add a link to the protocol specification.  Don't tvb_memcpy over
structs! Remove some more tvbuffs.  Don't call proto_item_add_subtree if
we're not going to use the trees.  Call proto_tree_add_item instead of
proto_tree_add_text Remove a bunch of unused ett_ variables and a few
other now-unused variables.  Register the field array with the correct
length.

svn path=/trunk/; revision=29095
2009-07-14 19:13:14 +00:00
Martin Mathieson
065374366a Trivial formatting changes to RAR output.
svn path=/trunk/; revision=29094
2009-07-14 17:43:20 +00:00
Martin Mathieson
2751aca4f7 Add preference to control whether decode of CRC-error'd frames should be attempted.
svn path=/trunk/; revision=29092
2009-07-14 13:08:23 +00:00
Stig Bjørlykke
44d725fac2 Header field cleanup.
svn path=/trunk/; revision=29090
2009-07-14 09:33:54 +00:00
Jaap Keuter
668e9b693a Fix for bug 3710:
Use the derived length of the control field i.s.o. assuming its size.

svn path=/trunk/; revision=29087
2009-07-13 22:29:59 +00:00
Gerald Combs
e3be7b8b25 Check to see if tvb_child_uncompress returns NULL. Fixes bug 3705.
svn path=/trunk/; revision=29086
2009-07-13 20:12:53 +00:00
Gerald Combs
1d32de944e Squelch a couple of Valgrind warnings. This should fix bug 3700.
svn path=/trunk/; revision=29085
2009-07-13 18:54:24 +00:00
Guy Harris
b0a612c56d Note what the "Unknown" value is.
svn path=/trunk/; revision=29084
2009-07-13 17:43:44 +00:00
Anders Broman
be27e0d5b4 From Chris Costa:
SMB2 Error Response doesn't decode properly.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3609

svn path=/trunk/; revision=29083
2009-07-13 17:40:31 +00:00
Anders Broman
683bdf3a42 From Kovarththanan Rajaratnam:
hci_h4: Optimize column/field handling
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3703

svn path=/trunk/; revision=29082
2009-07-13 17:33:14 +00:00
Martin Mathieson
29d6ae0ed5 Remove calls to check_col().
svn path=/trunk/; revision=29079
2009-07-13 11:23:40 +00:00
Martin Mathieson
19d117fb97 Remove calls to check_col(), and stop giving '{' a line of its own.
svn path=/trunk/; revision=29078
2009-07-13 10:55:53 +00:00
Anders Broman
04b77f8437 APDU incorrectly dissected(BSSLAP Protocol Not Decoded In BSSMAP-LE Messages).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3711

svn path=/trunk/; revision=29077
2009-07-13 08:35:30 +00:00
Anders Broman
da98389b3e Make iCommand a guint8.
svn path=/trunk/; revision=29074
2009-07-12 19:08:55 +00:00
Jaap Keuter
1997c46083 From Nick Ford:
Chunks handled individually rather than as complete messages which have
the risk of being fragmented and unrecognizable.
Added FLV data type.
Allow simultaneous RTMP streams to be handled independently.

svn path=/trunk/; revision=29069
2009-07-12 15:03:05 +00:00
Bill Meier
9c4a21d9d3 Fix a typo
svn path=/trunk/; revision=29068
2009-07-12 14:13:01 +00:00
Bill Meier
f3cd2bc545 Don't coerce a pointer to guint32 when pointing to a guint8.
Using that pointer will fetch the guint8 plus who knows what....

svn path=/trunk/; revision=29067
2009-07-12 13:41:36 +00:00
Stig Bjørlykke
27572c22f4 From Kovarththanan Rajaratnam via bug 3702:
This patch optimizes the data source name processing in add_new_data_source()
by delaying it. We now simply store the constant string and lazily compute the
name when needed. This gives a performance boost because we only need the name
if we have multiple data sources.

svn path=/trunk/; revision=29066
2009-07-12 10:19:13 +00:00
Bill Meier
fe70a9f9a6 Fix use of "unaligned" memory references;
Fixes Bug #3689.
Also: fix IPV4 address comparisons which would be incorrect
      on a big-endian machine.

svn path=/trunk/; revision=29064
2009-07-11 15:36:18 +00:00
Anders Broman
93a3a50a01 From Artem Tamazov:
Analyze->Decode as... menu item becomes unavailable in some situations.(Ethernet-PW)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3642

svn path=/trunk/; revision=29063
2009-07-11 09:50:09 +00:00
Anders Broman
f8393d2e02 From Harald Welte:
Add some more GSM A-bis IP message types.

svn path=/trunk/; revision=29062
2009-07-11 08:38:41 +00:00
Gerald Combs
16c1dd1b2d Don't use tvb_memcpy to fill in a struct. (Cue Jamie Hyneman saying
"EVER!") Expand the entry/scope struct to include private enterprise
numbers instead of casting guint32s to arbritrary chunks of memory.
Limit the number of entries and scopes we allocate.  Don't allocate
memory every time we see a new template.  Don't use a C++ keyword for
variable names.

svn path=/trunk/; revision=29061
2009-07-10 23:39:23 +00:00
Jaap Keuter
24d2fb5126 From David Aggeler:
* - Fixed corrupt files on DICOM Export
 * - Fixed memory limitation on DICOM Export
 * - Removed minimum packet length for static port mode
 * - Simplified checks for heuristic mode
 * - Removed unused functions

svn path=/trunk/; revision=29060
2009-07-10 21:54:29 +00:00
Bill Meier
58ed99ea6e Two minor changes: include emem.h not req'd; SUB_IPACCESS not used.
svn path=/trunk/; revision=29059
2009-07-10 20:35:34 +00:00
Michael Tüxen
0d2271b2cc Fix last issue reported by Jaap.
svn path=/trunk/; revision=29058
2009-07-10 20:07:57 +00:00
Michael Tüxen
5e6cc00044 Fix the two other nits reported by Jaap.
svn path=/trunk/; revision=29057
2009-07-10 20:03:25 +00:00
Michael Tüxen
9c6ee5cefd Add ip.access A-bis over IP dissector received from Harald Welte.
Removed check_col() calls.

svn path=/trunk/; revision=29056
2009-07-10 20:00:54 +00:00
Stig Bjørlykke
2002748969 Cleanup handling of ICMPv6 type and code (not complete):
- Use value_string to convert strings
- Added more types and codes from IANA

Removed use of check_col()
Some white space cleanup

svn path=/trunk/; revision=29054
2009-07-10 12:48:48 +00:00
Anders Broman
7b8cdbe44f Restore hf_gtp_ext_rat_type as it's used in decode_gtp_rat_type().
Fix IMEI(SV) While we're at it.

svn path=/trunk/; revision=29053
2009-07-10 12:26:39 +00:00
Stig Bjørlykke
d4b575f041 Use correct length for "Version OD Calling".
This fixes bug 3694.

svn path=/trunk/; revision=29051
2009-07-10 09:12:13 +00:00
Stig Bjørlykke
8af0d42c47 Cleanup handling of ICMP type and code:
- Use value_string to convert strings
- Added more types and codes from IANA

Removed use of check_col()
Check checksum also if no tree
Some white space cleanup

svn path=/trunk/; revision=29050
2009-07-10 09:09:11 +00:00
Stig Bjørlykke
a69f313e68 Header field cleanup.
svn path=/trunk/; revision=29049
2009-07-10 08:03:19 +00:00
Anders Broman
889d1f124e From Joan Ramio:
IEC 60870-5-104 dissector decodes nothing
(new_tvb reported length bug)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3650

svn path=/trunk/; revision=29048
2009-07-10 05:40:02 +00:00
Anders Broman
aec691c11f Reworked patch from massimo:
SNMP cannot be decoded in case of appended data to message
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3684

svn path=/trunk/; revision=29047
2009-07-09 21:43:57 +00:00
Bill Meier
4b00d59822 From: : Nathan Hartwell: Patch to fix output of HP Team dissector in Info column
svn path=/trunk/; revision=29045
2009-07-09 21:05:37 +00:00
Anders Broman
298feb719f From Joakim Wiberg:
Device Level Ring protocol addition.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3685

With some minor changes (blurb NULL whem text equal).

svn path=/trunk/; revision=29044
2009-07-09 20:44:28 +00:00
Bill Meier
59cc6f3e61 packet-gtp: 3GPP AVP custom VSA dissection no longer required for 3GPP-RAT-Type attribute.
3GPP-RAT-Type values are now defined in the Radius dictionary.3gpp file.

svn path=/trunk/; revision=29039
2009-07-09 16:02:34 +00:00
Stig Bjørlykke
046a329a66 Split packet-ip into packet-ip and packet-icmp.
Some cleanup in handles and ett entries.

svn path=/trunk/; revision=29035
2009-07-09 11:32:50 +00:00
Anders Broman
6c25896d84 From Kovarththanan Rajaratnam:
No letter-shortcuts in Telephony menu.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3678

svn path=/trunk/; revision=29028
2009-07-08 18:36:31 +00:00
Jaap Keuter
863057ff9c Address the size_t vs. gint issue.
svn path=/trunk/; revision=29027
2009-07-08 17:46:37 +00:00
Jörg Mayer
c43391cd08 Currently, the expert code notifies if a packet is addressed
to 224.0.0.x with a TTL>1. Some protocols (notably VRRP and GLBP)
send out a TTL of 255 and thus cause a notice. That should be fixed,
so for now: Add a FIXME about that.

svn path=/trunk/; revision=29024
2009-07-08 15:29:37 +00:00
Jörg Mayer
8daca54c04 Readd the feature to skip the unknown/faulty remainder
of an IE and still display the next one(s).

svn path=/trunk/; revision=29023
2009-07-08 15:26:04 +00:00
Bill Meier
f569b013d6 Add references to two specifications
svn path=/trunk/; revision=29019
2009-07-08 13:10:00 +00:00
Bill Meier
b60ff9f677 Do defragment inits via registered init routine
instead of once-only in proto_reg_handoff;
Also: localize handles to proto_reg_handoff;
      Fix a typo;

svn path=/trunk/; revision=29018
2009-07-08 12:50:09 +00:00
Stig Bjørlykke
c0622654ed From Kovarththanan Rajaratnam:
Duplicate name/blurb removal.

svn path=/trunk/; revision=29012
2009-07-08 07:48:13 +00:00
Guy Harris
b0f37069b7 "uint" isn't a standard type, and isn't a type defined by GLib; use
guint, as defined by GLib, instead.

svn path=/trunk/; revision=29011
2009-07-08 06:40:17 +00:00
Jaap Keuter
437318216b From Don Chirieleison:
Within the attached diff file are two source files, packet-dtn.h and
packet-dtn.c. Their function is to decode Bundle Protocol PDUs sent using the
UDP or TCP Convergence Layers. These protocols have been released by the
Internet Research Task Force and are described in RFC 4838 and RFC 5050.
Detailed information on DTN can be obtained at www.dtnrg.org.

svn path=/trunk/; revision=29010
2009-07-08 06:07:21 +00:00
Gerald Combs
98c1ca42c9 Fix several dissector assertions.
svn path=/trunk/; revision=29005
2009-07-08 00:28:54 +00:00
Martin Mathieson
fd6bcf67a7 Add expert item to warn of AM data PDUs that don't have any data.
svn path=/trunk/; revision=28995
2009-07-07 17:07:24 +00:00
Stig Bjørlykke
801cd0249b Do not use tfs true_string and false_string directly.
svn path=/trunk/; revision=28991
2009-07-07 15:21:36 +00:00
Stig Bjørlykke
4d8dd01e8e Changed flags_set_truth -> tfs_set_notset
svn path=/trunk/; revision=28989
2009-07-07 14:54:15 +00:00
Martin Mathieson
47552ea3a4 Add preference for turning off LTE RRC.
svn path=/trunk/; revision=28988
2009-07-07 14:38:14 +00:00
Stig Bjørlykke
f7b964b078 No need to include tfs.h
svn path=/trunk/; revision=28987
2009-07-07 14:34:33 +00:00
Stig Bjørlykke
eb18a596d7 From Kovarththanan Rajaratnam:
Move hf/ett into proto_register_jxta() and do some field cleanup

svn path=/trunk/; revision=28984
2009-07-07 14:13:45 +00:00
Stig Bjørlykke
871294f998 From Kovarththanan Rajaratnam:
Duplicate name/blurb removal from packet-fix.h (and template)

svn path=/trunk/; revision=28982
2009-07-07 12:14:47 +00:00
Stig Bjørlykke
d3c75a218b From Kovarththanan Rajaratnam:
Move hf/ett into proto_register_amqp() and do some field cleanup
(duplicate name/blurb removal)

svn path=/trunk/; revision=28981
2009-07-07 11:58:23 +00:00
Stig Bjørlykke
b9a11a95a6 From Kovarththanan Rajaratnam:
Move hf/ett definitions from packet-infiniband.h -> packet-infiniband.c to
align it with the rest of the bunch

svn path=/trunk/; revision=28979
2009-07-07 11:40:40 +00:00
Stig Bjørlykke
87d24c9101 From Kovarththanan Rajaratnam:
Remove trailing spaces in protocol/field names

svn path=/trunk/; revision=28978
2009-07-07 11:37:15 +00:00
Stig Bjørlykke
3f625c283e From Kovarththanan Rajaratnam:
More header field info cleanup

svn path=/trunk/; revision=28975
2009-07-07 10:12:15 +00:00
Stig Bjørlykke
d00c2baf5c Remove some check_col() calls.
svn path=/trunk/; revision=28974
2009-07-07 10:07:42 +00:00
Anders Broman
1dacabc5ba Cleanup header_field_info definitions
- Regenerating x420 seems to have fixed the "last" problem :-)

svn path=/trunk/; revision=28972
2009-07-07 09:27:52 +00:00
Stig Bjørlykke
0437f102c3 From Kovarththanan Rajaratnam:
More FT_XXX cleanup.

svn path=/trunk/; revision=28971
2009-07-07 09:02:59 +00:00
Stig Bjørlykke
fd9d18bbe9 From Julián Lastiri via bug 3656:
ClassifierID should be before Priority field in the Extended Classifier of
PacketCable Multimedia Protocol. Also the reference to PacketCable Multimedia
document PKT-SP-MM-I02-040930 is wrong because there is no definition about
Extended Classifier. My fix is based on PacketCable Multimedia
PKT-SP-MM-I04-080522 document.

svn path=/trunk/; revision=28969
2009-07-07 08:27:15 +00:00
Stig Bjørlykke
6d472a50fc From Kovarththanan Rajaratnam via bug 3548:
Minor hf cleanup.

svn path=/trunk/; revision=28968
2009-07-07 07:46:57 +00:00
Anders Broman
739bfc6ff0 Delete obsolete protocol dissectors.
svn path=/trunk/; revision=28966
2009-07-07 05:43:43 +00:00
Anders Broman
54965169c2 From Kovarththanan Rajaratnam:
More "Cleanup header_field_info definitions"

svn path=/trunk/; revision=28964
2009-07-07 04:41:53 +00:00
Gerald Combs
46f8dbf674 From Kovarththanan Rajaratnam via bug 3652:
This patch protects against malformed Unique ID lengths (>= 252 bytes) and
defer all tvb_xxx related calls to when we actually need them. This allows us
to dissects as much as possible before bailing out (in case of a malformed
length).

From me:

Add a link to the protocol specification.  Remove packet-miop.h along
with some struct definitions. (Don't tvb_memcpy over structs!) Remove
some more tvbuffs.  Don't call proto_item_add_subtree if we're not going
to use the trees.  Call proto_tree_add_item instead of
proto_tree_add_text Remove a bunch of unused ett_ variables.  Add an
expert item for the protocol version.  Register the field array with the
correct length.

svn path=/trunk/; revision=28963
2009-07-06 20:23:32 +00:00
Anders Broman
6d7ba64d68 From Kovarththanan Rajaratnam:
More "Cleanup header_field_info definitions"

svn path=/trunk/; revision=28962
2009-07-06 18:36:00 +00:00
Jörg Mayer
162f9ef199 Shorten a few variables for values read from the packet.
Inspired by Kovarththanan Rajaratnam's patch for bug 3665
which in turn was a duplicate for the (fixed) bug 3660.

svn path=/trunk/; revision=28960
2009-07-06 17:49:33 +00:00
Jörg Mayer
d7020119ed Move edp to the top level tree instead of inside the ismp
tree.

svn path=/trunk/; revision=28959
2009-07-06 17:45:40 +00:00
Jörg Mayer
5cd78e2625 OK, nobody cared about the waring, so just remove the
test for now.

svn path=/trunk/; revision=28958
2009-07-06 17:44:02 +00:00
Anders Broman
3cc1acb3b1 CFLOW decoding is wrong for IPv6 fields.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3328

svn path=/trunk/; revision=28957
2009-07-06 17:37:03 +00:00
Stig Bjørlykke
383809a151 Rewrite non-ASCII characters.
svn path=/trunk/; revision=28954
2009-07-06 14:14:13 +00:00
Anders Broman
c0e6bc1eca Small editorial changes.
svn path=/trunk/; revision=28953
2009-07-06 14:09:52 +00:00
Bill Meier
60e658e132 Radius: Additional attribute handling:
- implement "ether" attribute; 
 - parse "abinary" attribute [uses existing radius_abinary()]
Also: add a comment in packet-radius.h about the meaning of the encrypt flag.

svn path=/trunk/; revision=28952
2009-07-06 14:05:37 +00:00
Stig Bjørlykke
da47d6113a From Joakim Wiberg via bug 3670:
This patch correctes serveral minor things.

1. Adds decoding of generic services to classes that have a separate dissect
   function.
2. Adds new error codes.
3. Adds new CIP objects.
4. Extends the VendorID list.

svn path=/trunk/; revision=28951
2009-07-06 13:59:09 +00:00
Jörg Mayer
0a48757c84 Fix for bug 3660: Length (guint32) could become 0 or very large
(overflow).

svn path=/trunk/; revision=28948
2009-07-06 13:00:04 +00:00
Anders Broman
1853380559 Decode error for network-id in BICC BCU-ID
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3648

svn path=/trunk/; revision=28947
2009-07-06 12:50:12 +00:00
Anders Broman
f16859def3 From Kovarththanan Rajaratnam:
Cleanup header_field_info definitions
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3548

svn path=/trunk/; revision=28940
2009-07-05 11:49:36 +00:00
Anders Broman
508d91b358 A fix for:
"ANSI ISUP Cause indicators with coding standard=ANSI fail to dissect."
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3654

svn path=/trunk/; revision=28939
2009-07-04 15:15:51 +00:00
Guy Harris
bf7462bf97 Set save_fragmented regardless of whether we're reassembling or not, as
we restore it regardless of whether we're reassembling or not.

svn path=/trunk/; revision=28938
2009-07-03 17:12:36 +00:00
Bill Meier
d36f35f28b From: Tobias Witek: Fix processing of radius 'vendor specific attributes'
In the RADIUS dissector, the function radius_register_avp_dissector() registers
vendors that are not already present in the dictionary hash-table. As far as I
can see, there are two problems with this:

1. The function does not set the number of type/length octets and the has_flags
 variable for that AVP, which is required to correctly decode AVP/VSA values
2. In some situations, the function is called _before_ radius_load_dictionary()
is called (for example for the vendor 3GPP (ID: 10415))

Therefore, all vendor entries that are created by calling
radius_register_avp_dissector() leave their type_octets and length_octets un-initialized,
which causes incorrect decoding.

[Result: Radius dissector displays messages such as:
 "Malformed Packet: RADIUS" and "Error/Malformed: Malformed Packet(Exception occurred)"]

The attached patch fixes this problem by assuming that the dictionary knows the
'ground truth' about the type/length octet and the has_flags information and allows it to
overwrite these values even for vendors that have already been loaded.

Also: (from Bill Meier): set the type/length octet and the has_flags variables to default
"standard" values (1,1,FALSE) in radius_register_avp_dissector().

Fixes Bug #3651 (and Bug #3635).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3651
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3635

svn path=/trunk/; revision=28937
2009-07-03 16:03:02 +00:00
Anders Broman
1415c62c68 Fix:
packet-ndmp.c:562: warning: unused parameter 'pinfo'

svn path=/trunk/; revision=28936
2009-07-03 13:05:45 +00:00
Anders Broman
24b17483b7 From Chris Costa:
NDMP fragmentation fix.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3395

svn path=/trunk/; revision=28935
2009-07-03 11:45:42 +00:00
Gerald Combs
5631122d1d Try to allocate enough memory on all platforms.
svn path=/trunk/; revision=28930
2009-07-03 00:17:06 +00:00
Gerald Combs
88ba030310 From Kovarththanan Rajaratnam via bug 3567:
The template cache contains pointers that are session-scope (only freed in
netflow_reinit()) but still we use g_malloc(). This patch changes that so we
now use se_alloc(). With this patch I'm able to reproduce the crash
("Per-session memory corrupted").

svn path=/trunk/; revision=28927
2009-07-02 20:35:58 +00:00
Gerald Combs
2391d808af Update documentation links.
svn path=/trunk/; revision=28926
2009-07-02 20:35:46 +00:00
Anders Broman
9952ce524f From Radek Vokál:
Support for new NFSv4 features.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3258

svn path=/trunk/; revision=28919
2009-07-02 16:54:20 +00:00
Stig Bjørlykke
75a8a15e2b From Albert Chin:
Small patch to make it compile on AIX.

svn path=/trunk/; revision=28917
2009-07-02 06:51:27 +00:00
Gerald Combs
e2890d4053 Fix a couple of labels.
svn path=/trunk/; revision=28914
2009-07-01 23:36:35 +00:00
Stig Bjørlykke
581d804ce5 Added error value tables.
svn path=/trunk/; revision=28913
2009-07-01 21:20:18 +00:00
Gerald Combs
a66905c3d2 Add a couple of IPFIX labels where they differ from Netflow.
svn path=/trunk/; revision=28912
2009-07-01 20:56:03 +00:00
Gerald Combs
0aaad68faf Try to fix fuzzing errors in bug 3636. When dissecting an options
template, differentiate between Netflow v9 and IPFIX, which require
different interpretations. Add other minor fixes and comments.

svn path=/trunk/; revision=28911
2009-07-01 19:36:24 +00:00
Guy Harris
3de850b274 Thou shalt not call assert() in dissectors.
svn path=/trunk/; revision=28910
2009-07-01 17:40:08 +00:00
Stig Bjørlykke
c18998e9c0 Added support for Simulcrypt EMMG <-> MUX,
and generic support for other interfaces.

svn path=/trunk/; revision=28902
2009-07-01 07:21:13 +00:00
Jörg Mayer
6425275b89 - Put ISMP.EDP into the protocol column to make it clearer
that filtering on edp is not going to help
- Make it possible to filter on ismp.edp
- In case of edp fill info column

svn path=/trunk/; revision=28901
2009-07-01 05:27:34 +00:00
Guy Harris
fe767063a7 Replace one assert() with DISSECTOR_ASSET(), so we don't crash, and get
rid of another, as the pointer in question is non-null in all calls (if
somebody adds another call with a null pointer, it'll crash when
dereferencing the pointer in any case).

svn path=/trunk/; revision=28900
2009-06-30 23:56:26 +00:00
Guy Harris
bc57dc2d75 Don't crash if a null pointer is passed, just skip the appending of the
items.

svn path=/trunk/; revision=28899
2009-06-30 23:52:20 +00:00
Guy Harris
db08b1f783 Get rid of assert() call; either the pointer will never be null, in
which case it won't crash, or it will be null, in which case that just
trades one crash for another, and we should fix the crash.

svn path=/trunk/; revision=28898
2009-06-30 23:49:34 +00:00
Gerald Combs
4f19e431b7 Add some length checks. Fixes bug 3567.
svn path=/trunk/; revision=28897
2009-06-30 20:59:51 +00:00
Bill Meier
6e2bd7cc03 From: Benjamin Roch: Enhancements and small fixes for packet-tte.c dissector;
Also: a few minor mostly formatting changes by me.

svn path=/trunk/; revision=28895
2009-06-30 19:52:43 +00:00
Bill Meier
92446c8005 packet-radius: Fix exception CLEANUP handling when malformed attribute list/pair seen;
Fixes crash reported in Bug #3578. [https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3578]
Essentially: CLEANUP_CALL_AND_POP wasn't being executed for certain error exits from
 dissect_attribute_pairs() thus leaving a CLEANUP entry on the exception stack.
Also: vsa_buffer_table wasn't being destroyed if an exception occurred in dissect_attribute_pairs.

svn path=/trunk/; revision=28891
2009-06-30 13:57:26 +00:00
Stig Bjørlykke
a01a94d02b Always register to tcp.port to be able to decode as.
svn path=/trunk/; revision=28890
2009-06-30 12:26:11 +00:00
Stig Bjørlykke
4721f29558 Changed check for having multiple ldap PDU's in one frame.
The previous check is incorrect when the first ldap frame in the capture is
selected and the filter is changed, or selecting "Follow TCP Stream".

Also removed check_col().

svn path=/trunk/; revision=28889
2009-06-30 10:38:00 +00:00
Stig Bjørlykke
942b03f06e Cleanup protocol name for ldap.
svn path=/trunk/; revision=28888
2009-06-30 08:28:21 +00:00
Balint Reczey
aa2c87df87 Added option to show not dissected packet data on a separate packet bytes pane.
It makes offsets in the not dissected data easier to follow.

svn path=/trunk/; revision=28885
2009-06-29 22:22:30 +00:00
Bill Meier
ec28353bb4 From Kovarththanan Rajaratnam: Fix for Bug #3572
[http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3572]

svn path=/trunk/; revision=28884
2009-06-29 20:59:26 +00:00
Jörg Mayer
dcd823565b Add value for vfstate: active
svn path=/trunk/; revision=28883
2009-06-29 20:35:47 +00:00
Anders Broman
a98ce52e80 From Artem Tamazov:
Added: PW ATM 1:1, AAL5 SDU, AAL5 PDU support + BFD fix + PW ATM OAM fix

svn path=/trunk/; revision=28881
2009-06-29 19:24:14 +00:00
Jaap Keuter
98fa965a00 Make dissector handle unexpected data better.
svn path=/trunk/; revision=28875
2009-06-28 16:39:31 +00:00
Anders Broman
4d8424a2bb From Jon Smirl:
More packet decoding for Intellon powerline devices.

From me put proto_register_homeplug() last in the file and whitespace changes.

svn path=/trunk/; revision=28872
2009-06-28 15:18:27 +00:00
Anders Broman
9b9880a25a From yin sun:
h248 term wildcard enhancement

svn path=/trunk/; revision=28861
2009-06-27 13:37:03 +00:00
Anders Broman
f179827b21 From Greg Schwendimann:
802.11 decryption is broken
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3590

svn path=/trunk/; revision=28860
2009-06-27 12:41:39 +00:00
Anders Broman
e4fea1939c From Kovarththanan Rajaratnam:
- Fix ncp2222.py and all the epan/dissectors/dcerpc dissectors. The
latter required changes to idl2wrs which used variadic macros (not supported in MSVC 6.0).

- Cleanup PIDL conformance files

svn path=/trunk/; revision=28856
2009-06-27 10:31:42 +00:00
Anders Broman
6a5ea97ff6 From Sebastien Decugis:
Add Missing Diameter EAP support.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3600

svn path=/trunk/; revision=28849
2009-06-26 05:48:03 +00:00
Stig Bjørlykke
9733aadcfe Re-generate asn1 dissectors after hf_register_info cleanup.
svn path=/trunk/; revision=28848
2009-06-26 03:59:01 +00:00
Stig Bjørlykke
7f1f48a8b2 From Joakim Wiberg via bug 3103:
Various improvements to the CIP and ENIP dissectors.

From me:
Updated to latest trunk changes.

svn path=/trunk/; revision=28844
2009-06-26 02:38:23 +00:00
Stig Bjørlykke
74ff21bccf From Nathan Hartwell via bug 2733:
Use time_secs_to_str_unsigned().

svn path=/trunk/; revision=28841
2009-06-25 02:08:06 +00:00
Stig Bjørlykke
26bd9f3623 Remove a tvb_free() call.
svn path=/trunk/; revision=28839
2009-06-25 01:50:56 +00:00
Jaap Keuter
7b79574a5b From Artem Tamazov:
Added: ESMC support as per G.8264 (Slow Protocol Subtype 0x0a).
* QL codes are dissected according to G.781 5.5.1.1 "Option I SDH". 
Added: support for Timestamp entities in ESMC PDU as per WD56 proposal.

svn path=/trunk/; revision=28836
2009-06-24 06:21:45 +00:00
Stig Bjørlykke
69116bfad2 Fixed field types for some reserved fields.
svn path=/trunk/; revision=28835
2009-06-24 05:54:19 +00:00