Commit graph

3873 commits

Author SHA1 Message Date
Ronnie Sahlberg
2a84d72f8f remove a strcpy call
svn path=/trunk/; revision=16333
2005-10-27 09:07:22 +00:00
Ronnie Sahlberg
9696d9dae8 remove a strcpy
make the code A LOT nicer
and get rid of unchecked memcpy



svn path=/trunk/; revision=16332
2005-10-27 08:50:42 +00:00
Ronnie Sahlberg
494958fbad remove some strcpy
svn path=/trunk/; revision=16331
2005-10-27 08:35:44 +00:00
Ronnie Sahlberg
96729e741d remove some strcpy() and some buffers.
boy o boy   the fc dissector family is in really poor shape and should be rewritten 




svn path=/trunk/; revision=16329
2005-10-27 08:18:59 +00:00
Guy Harris
3e0e3011e2 Don't run "process_ptvc_record()" on replies unless we're building a
protocol tree.

svn path=/trunk/; revision=16326
2005-10-26 23:10:20 +00:00
Guy Harris
de27c8a831 Add a comment.
svn path=/trunk/; revision=16324
2005-10-26 20:21:28 +00:00
Ronnie Sahlberg
6d964caa1e updates to CMP
implement the glue to dissect CMP oer TCP


svn path=/trunk/; revision=16323
2005-10-26 20:17:40 +00:00
Anders Broman
159963a270 Add the rest of the IE:s
svn path=/trunk/; revision=16322
2005-10-26 19:52:00 +00:00
Anders Broman
3a6ea1fc9b From Mike Duigou
Safer handling for building address string for AT_STRINGZ and AT_URI.

svn path=/trunk/; revision=16321
2005-10-26 19:08:37 +00:00
Anders Broman
973bdcb507 From Mark C Brown,
Small patch correcting nettl.uid to unsigned and adding pduin/pduout as nettl.kind values...

svn path=/trunk/; revision=16320
2005-10-26 19:01:29 +00:00
Anders Broman
85cd6d8dc7 Set correct offset fore some signals, use dummy funtion to get hf fields auto generated.
svn path=/trunk/; revision=16319
2005-10-26 18:52:46 +00:00
Anders Broman
78ed339b3d Tags should be implicit.
svn path=/trunk/; revision=16316
2005-10-25 20:30:43 +00:00
Anders Broman
c8d3cd483b As there are more Procedure codes the hueristics need to be updated.
svn path=/trunk/; revision=16315
2005-10-25 20:29:50 +00:00
Luis Ontanon
12198e77ee some ies in the init proc weren't propperly decoded.
svn path=/trunk/; revision=16314
2005-10-25 19:41:01 +00:00
Guy Harris
7e874fc9dd Don't declare "dissect_rtse_EXTERNAL()" in "packet-rtse.c" - let it get
it from "packet-rtse.h" (which, at least on some platforms, doesn't
declare it as static, so GCC 4.0, at least, fails because the static and
non-static declarations collide).

svn path=/trunk/; revision=16312
2005-10-25 19:37:38 +00:00
Guy Harris
cb41062126 Check in the re-generated NBAP dissector.
svn path=/trunk/; revision=16311
2005-10-25 19:35:33 +00:00
Luis Ontanon
8c28eb9648 Avoid a conflict in global symbols by declaring some variables static.
svn path=/trunk/; revision=16310
2005-10-25 18:38:47 +00:00
Ronnie Sahlberg
d69d22bcf5 remove a bunch of arrays, some strcpy() and make it dissect the fc4 type bitmask better
svn path=/trunk/; revision=16307
2005-10-25 11:24:24 +00:00
Ronnie Sahlberg
52a7e5cd66 remove a buffer from the stack and some strcpy()
the previous code had a bug in that it would never display one of the flags unless the other flag was also set.



svn path=/trunk/; revision=16306
2005-10-25 10:38:36 +00:00
Ronnie Sahlberg
84aad663a5 remove a stack based array and some strcpy()
svn path=/trunk/; revision=16305
2005-10-25 10:24:40 +00:00
Guy Harris
9cc23396f0 Fix a typo.
svn path=/trunk/; revision=16304
2005-10-25 08:58:27 +00:00
Guy Harris
36a2d54f78 Put the code to handle NDS ping replies and NDS replies into routines of
their own.

Do the tapping as early as possible, so it's done even if exceptions are
thrown - and do it regardless of whether the tree argument is null or
not, because a tap might be run without generating protocol trees.

Generate the expert info regardless of whether the tree arugment is null
or not, as that's also used with taps.

svn path=/trunk/; revision=16303
2005-10-25 06:20:46 +00:00
Anders Broman
480e4e949a From Martin André
the attached patch implements a dissector for the Fast Handovers for Mobile IPv6 protocol (RFC4068). This patch was produced against version 0.10.13 and extends the following files:
- packet-icmpv6.c
- packet-ipv6.h
- packet-mip6.c
- packet-mip6.h

svn path=/trunk/; revision=16302
2005-10-25 06:00:53 +00:00
Anders Broman
8f11a0d7c6 From Jochen Friedrich
this patch adds the description for LLC SAP 0xB4 and adds a dissector for basic format XID frames as documented in IEEE802.2. These frames are independent on the SAP / protocol and mandatory to all implementations.

svn path=/trunk/; revision=16301
2005-10-25 05:56:21 +00:00
Anders Broman
11c13762b7 Add missing file ( packet-ftbp.ch)
svn path=/trunk/; revision=16300
2005-10-25 05:53:12 +00:00
Guy Harris
f3144c4fef Clean up "print_address()" - fix the indentation, do the check for a
too-large address in common code, and *don't* use tvb_get_letohl() to
get IPv4 addresses (just use proto_tree_add_item(), it works Just Fine).

For integral values, always do the tvb_ensure_bytes_exist() test; don't
just do it if the length is the expected value (the real problem is with
bogus too-large lengths, so it's more important to do the check if the
length *isn't* the expected value!).  Fixes bug 549.

svn path=/trunk/; revision=16298
2005-10-25 00:28:40 +00:00
Anders Broman
314c36da9a From Graeme Lunt:
The ftbp.patch file includes:
a) A fix to acse.cnf which works around an asn2eth bug (it is the AE-qualifier EXPORT I want, but asn2eth doesn't generate the appropriate extern for the values). Also a small cosmetic change for EXTERNAL decodings.
b) New EXPORTs for the FTAM dissector for use in FTBP.
c) A fix to asn2eth to solve the problem if you EXPORT types that include a '-' character in the name (e.g. "AE-qualifier" from acse.cnf, "Date-and-Time-Attribute" from ftam.cnf). The problem is that asn2eth generates the "xxxx-exp.cnf" file using the 'C' name (which has replaced '-' with '_') rather than the original 'ASN' name. The fix just undoes the replacement as I couldn't see the original name being preserved anywhere. There still remains a problem if the type has a '.' in the name - but generally I don't think they do.

* Better ROS handling and registration
* Simplified RTSE registration
* X411 column information, extension naming and use of new RTSE/ROS registration
* X420 notification extensions, warnings removal and export of ExtensionsField (missed from recent FTBP patch).
* Better highlighting of S4406 protocol.


svn path=/trunk/; revision=16296
2005-10-24 21:42:19 +00:00
Luis Ontanon
149b419740 - optionally decode data pdus
- optionally decode a 2 byte pseudo-header
- Beautify colinfo


svn path=/trunk/; revision=16295
2005-10-24 21:26:25 +00:00
Luis Ontanon
9008cf5cd9 - packet records with AAL5 Pdus or AAL2 Sdus contain VP/VC and CID info in the packet record, use that instead of the one in the intreface description record.
- Fix Timestamps that got broken with nanoseconds.
- Add some more disabled code for debugging.


svn path=/trunk/; revision=16294
2005-10-24 21:20:03 +00:00
Anders Broman
c38e1002dd UMTS Node B Application Part(NBAP) packet dissection(3GPP TS 25.433 version 6.6.0 Release 6)
All IE:s not dissected yet.

svn path=/trunk/; revision=16293
2005-10-24 21:16:44 +00:00
Ronnie Sahlberg
b949ed06b1 get rid of a few strcpy and an array from the stack
svn path=/trunk/; revision=16292
2005-10-24 08:44:36 +00:00
Guy Harris
cd7fae828c Add #defines for NDS tag values, and use them in the definition of
nds_tags[] and in switch statements.  (Also, catch a case where we
didn't use NDS_PTYPE_ values.)

Use the existing #defines for MVTYPE_ values.

Make the handling of NDS_PTYPE_{IP,UDP,TCP} in one case match the
handling of the other cases (don't advance "ioffset", as it's advanced
by the length of the item).

When checking whether an NDS reply has a completion code, don't check
the fragment size, check the reassembled packet size.

Fix the handling of referrals in one case.

svn path=/trunk/; revision=16291
2005-10-24 02:49:32 +00:00
Guy Harris
eb2fb526aa Don't get caught in an infinite loop if we're stuck at the end of the
captured data.  Fixes bug 548.  (Also note that we need a better general
solution.)

svn path=/trunk/; revision=16290
2005-10-24 02:35:43 +00:00
Guy Harris
c7e56ef089 Clean up indentation.
Hand NCP_ALLOCATE_SLOT and NCP_DEALLOCATE_SLOT packets to
"dissect_ncp_request()", so we match up requests and replies, fill in
the Info column properly, etc..

svn path=/trunk/; revision=16289
2005-10-24 02:05:19 +00:00
Guy Harris
8e35fd8078 Add #defines of NDS protocol types, and use them in the value_string and
switch statements.

Add some sanity checking for ptvcursor_advance calls.

proto_tree_add_item() works fine for IPv4 addresses; use it for them. 
(tvb_get_letohl() doesn't work fine for them, even though it appears to
do so on little-endian machines.)

Only set the "visible" flag on the protocol tree when we're sure we have
one, so that it gets set even if we create a temporary tree.

Catch exceptions when dissecting requests, and compute and save the
results of conditional tests before rethrowing the exception, so the
results get saved even if the dissection gets an exception.

svn path=/trunk/; revision=16288
2005-10-22 06:25:14 +00:00
Guy Harris
c72ffd259d Move the ptvcursor.c code to epan/proto, and make ptvcursor_add() handle
FT_UINT_BYTES and FT_UINT_STRING correctly when the tree argument is
null (which involves carving proto_tree_add_item() into bits and having
both ptvcursor_add() and proto_tree_add_item() call those bits).

svn path=/trunk/; revision=16287
2005-10-22 05:43:09 +00:00
Guy Harris
e857b4feb4 Use the somewhat-misnamed "ipv4_addr_and_mask()" and
"ipv6_addr_and_mask()" to handle address+prefix bit length combinations.

svn path=/trunk/; revision=16286
2005-10-22 05:27:48 +00:00
Guy Harris
a24b71271a Don't roll your own code for showing the usual display of bits in a
bitfield, use the code we already have.

svn path=/trunk/; revision=16284
2005-10-22 03:52:06 +00:00
Anders Broman
9dd9e3e80f From Julian Onions
- some improvements to the NORM decoder, and the ability to
(optionally) heuristically detect NORM.
- some improvements to FEC block labelling.
- making the LCT header extension handler more generic and to decode more header extensions.

svn path=/trunk/; revision=16280
2005-10-20 18:51:47 +00:00
Anders Broman
591826a821 From Bruno Deniaud:
Handle NEMO (RFC  3963).

svn path=/trunk/; revision=16277
2005-10-20 15:51:39 +00:00
Anders Broman
20381722de Use the right offset when calling packet-gsm_a.c functions.
svn path=/trunk/; revision=16276
2005-10-20 15:49:03 +00:00
Anders Broman
604d8a8026 From Stephen Donovan:
Allow Ethereal to decode the IP address inside of Option 118

svn path=/trunk/; revision=16275
2005-10-20 05:29:53 +00:00
Guy Harris
e407c69770 Put back some comments that got removed and that note issues seen with
some captures.

svn path=/trunk/; revision=16274
2005-10-20 02:45:52 +00:00
Guy Harris
f225f8819e At least on Tiger, multiple definitions of an external don't work.
svn path=/trunk/; revision=16272
2005-10-19 19:40:55 +00:00
Gerald Combs
4665dd1714 Ethereal doesn't like it when you try to tell it that integers are
either -1 or 0 bytes long.  Use proto_tree_add_text() instead of
proto_tree_add_uint_format().  Fixes bug 542.

svn path=/trunk/; revision=16270
2005-10-19 15:36:59 +00:00
Gilbert Ramirez
804c13c213 From Greg Morris:
Updates to the NMAS dissector.
 
1. Fixes error checking fragments
2. Adds expert data


svn path=/trunk/; revision=16268
2005-10-19 14:39:09 +00:00
Gilbert Ramirez
c31e002512 From Greg Morris:
Adds expert data to the NDPS dissector


svn path=/trunk/; revision=16267
2005-10-19 14:32:05 +00:00
Gilbert Ramirez
ab3f0deefc From Greg Morris:
makefile.common.diff - epan directory
1. Adds new packet-ncp-sss.c and packet-ncp-sss.h for new Secret Store dissector
 
New Novell Secret Store Services dissector
packet-ncp-sss.c
packet-ncp-sss.h
 
ncp2222.py.diff
1. Adds a number of return values
2. Adds 64bit file size support
3. Add NCP 89,xx NCP's for UTF8 support
4. Fixes a number of field values for proper dissection
5. Adds support for Secret Store dissector
 
packet-ncp2222.inc.diff
1. Skwelches some compiler warnings
2. Redo of fix for bug 535 which original fix broke dissection of NDS verb 5
3. Adds support for Secret Store dissector
4. Adds expert data
5. Adds tap for service response time
6. Fixes dissection of stream attribute
7. Fixes defragmentation problem with more then 10 fragments
8. Fixes NDS dissection if reply buffer was less then 7
 
packet-ncp.c.diff
1. Adds tap data
2. Adds expert data
3. Fixes calculation for NCP connection number
4. Fixes malformed packet for destroy service connection
 
packet-ncp.c.diff
1. Adds tap data


svn path=/trunk/; revision=16266
2005-10-19 14:28:26 +00:00
Guy Harris
364702618a Point specifically to the CDP information on the various Cisco pages.
svn path=/trunk/; revision=16265
2005-10-19 07:57:38 +00:00
Gerald Combs
f4eaf40648 Don't pass a null value to strcmp(). Fixes bug 540.
svn path=/trunk/; revision=16262
2005-10-18 13:36:32 +00:00
Guy Harris
6e759b47f2 .FN_BODY text gets printf-style expansion done on it, so format strings
in the code have to have %'s escaped.  Do so.

svn path=/trunk/; revision=16260
2005-10-18 00:07:49 +00:00
Gerald Combs
7f33a96ea9 Don't pass -1 as a fragment length to fragment_add_check(). This keeps
us from crashing and it keeps Valgrind from taunting us with

==29091== Warning: silly arg (-1) to malloc()

Fixes bug 537.

svn path=/trunk/; revision=16258
2005-10-17 20:05:18 +00:00
Gerald Combs
93b99abf30 In packet-dcerpc-nt.c, make sure we call init_pol_hash() each time we load
a capture file.  This should fix bug #536.

Make sure we initialize our hash tables in packet-dcerpc-nt.c and several 
other files.  Fix up whitespace while we're at it.

svn path=/trunk/; revision=16255
2005-10-17 18:56:27 +00:00
Gerald Combs
5cadbb4de4 When dissecting an ACSE APDU make sure our OID isn't for an ACSE APDU
(which would make us recurse until we crashed).

svn path=/trunk/; revision=16252
2005-10-17 16:12:24 +00:00
Luis Ontanon
e3285cbcae make sure ta is signed before operating
svn path=/trunk/; revision=16251
2005-10-16 21:16:30 +00:00
Luis Ontanon
34bf00ef48 On windows:
packet-iuup.c(660) : warning C4244: 'function' : conversion from 'double ' to 'float ', possible loss of data
packet-iuup.c(665) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
packet-iuup.c(665) : warning C4244: 'function' : conversion from 'double ' to 'float ', possible loss of data


svn path=/trunk/; revision=16250
2005-10-16 21:07:48 +00:00
Gerald Combs
2544a95b7f Break out of an infinite loop. Fixes bug 535. Remove an unused
function (which had a buffer overflow!)  Initialize a variable flagged
by Valgrind.

svn path=/trunk/; revision=16247
2005-10-16 20:40:27 +00:00
Luis Ontanon
1d65dc39c5 IuUP
UMTS' Iu User Plane protocol.


svn path=/trunk/; revision=16246
2005-10-16 20:08:13 +00:00
Gerald Combs
cf7474a92e Fix up a length check.
svn path=/trunk/; revision=16245
2005-10-16 14:23:56 +00:00
Gerald Combs
7ce6f2c971 IPv6 addresses are 16 bytes.
svn path=/trunk/; revision=16243
2005-10-16 03:57:49 +00:00
Ronnie Sahlberg
2824ec57be fox a static/non-static signature mismatch
svn path=/trunk/; revision=16239
2005-10-16 01:47:29 +00:00
Ronnie Sahlberg
117f754846 remove some strcpy and strcat
svn path=/trunk/; revision=16238
2005-10-16 01:41:48 +00:00
Ronnie Sahlberg
3824015b82 remove a strcpy call
svn path=/trunk/; revision=16237
2005-10-16 00:36:43 +00:00
Ronnie Sahlberg
2cd5614407 replace a strcpy with g_snprintf so it will not show up in grep strcpy *.c
svn path=/trunk/; revision=16236
2005-10-16 00:33:00 +00:00
Ronnie Sahlberg
b5ecbaf8d5 remove one array from the stack
get rid of strcpy and strcat


svn path=/trunk/; revision=16235
2005-10-16 00:27:50 +00:00
Ronnie Sahlberg
6beaa5ce81 get rid of some strcpy
svn path=/trunk/; revision=16234
2005-10-16 00:14:19 +00:00
Ronnie Sahlberg
7cde2cd67a get rid of one stack buffer and some strcpy() and strcat()
svn path=/trunk/; revision=16233
2005-10-15 23:59:56 +00:00
Ronnie Sahlberg
ebc0197755 remove two redundant strcpy so they dont show up as noice for grep strcpy *.c
svn path=/trunk/; revision=16231
2005-10-15 23:26:32 +00:00
Ronnie Sahlberg
61fcf7fbca get rid of a strcpy() and some strcat()
remove two buffers from the stack


svn path=/trunk/; revision=16230
2005-10-15 23:17:04 +00:00
Ronnie Sahlberg
c1b84ccd59 remove some strcpy() and strcat()
remove two buffers from the stack.


svn path=/trunk/; revision=16229
2005-10-15 22:57:27 +00:00
Ronnie Sahlberg
23caf5e4d3 remove some strcpy() calls
svn path=/trunk/; revision=16228
2005-10-15 22:46:20 +00:00
Ronnie Sahlberg
24cc5e865a get rid of one strcpy() and one strcat()
svn path=/trunk/; revision=16227
2005-10-15 22:36:59 +00:00
Gerald Combs
c975c8e67a Use tvb_free() instead of g_free() to free tvbuffs.
svn path=/trunk/; revision=16220
2005-10-14 15:55:58 +00:00
Anders Broman
4ac15de1c6 From Didier
small AFP bugfix and a PAP dissector

svn path=/trunk/; revision=16214
2005-10-13 05:23:01 +00:00
Anders Broman
b67a452476 A small patch for presentation to:
a) maintain the session presentation context 
b) support SES_REFUSE

svn path=/trunk/; revision=16213
2005-10-13 05:20:40 +00:00
Ronnie Sahlberg
fd29897666 get rid of some strcpy() and some compiler warnings
svn path=/trunk/; revision=16212
2005-10-13 05:07:28 +00:00
Ronnie Sahlberg
5312127584 get rid of some strcpy()
svn path=/trunk/; revision=16211
2005-10-13 03:22:53 +00:00
Ronnie Sahlberg
056065d055 get rid of some strcpy()
svn path=/trunk/; revision=16210
2005-10-13 03:17:53 +00:00
Ronnie Sahlberg
14ecc1ddd5 remove some strcpy() from diameter and remove some arrays from the stack
svn path=/trunk/; revision=16209
2005-10-13 03:10:28 +00:00
Guy Harris
a9c08c4421 Show internal errors with REPORT_DISSECTOR_BUG().
svn path=/trunk/; revision=16208
2005-10-13 02:21:01 +00:00
Ronnie Sahlberg
719be76291 fix for bug 529
a CHOICE might not consume any butes in teh encoding if there were no matching
choice arms found.

make the loop in acse abort with malformed packet if the choice failed to decode anything  to prevent an infinite loop in bug 529


svn path=/trunk/; revision=16207
2005-10-13 01:39:53 +00:00
Guy Harris
461b05a964 Don't use a static, fixed-length buffer for the result of
unicode_to_bytes() - allocate one large enough for the string we'll be
generating, using ep_alloc().

svn path=/trunk/; revision=16206
2005-10-12 22:37:15 +00:00
Ulf Lamping
fafdf68095 from Richard van der Hoff:
Attached is a patch which makes the console log level (warning/message/debug etc) a configurable preference. There's no gui for setting it, but since it's pretty much only going to be useful for developers, I'm sure you'll cope...
----
I've added a small comment to the file output that it has no dialog output

svn path=/trunk/; revision=16205
2005-10-12 21:26:27 +00:00
Anders Broman
261ff255ac From Shoichi Sakane
svn path=/trunk/; revision=16200
2005-10-12 05:36:44 +00:00
Anders Broman
2145d15234 From Rene Pilz:
- LLC XID patch (reaability patch).
- Dissection of the MS Radio Capabilities.


svn path=/trunk/; revision=16199
2005-10-12 05:34:36 +00:00
Ronnie Sahlberg
8409491a8a get rid of one strcpy()
svn path=/trunk/; revision=16198
2005-10-12 02:30:10 +00:00
Ronnie Sahlberg
814c216689 remove some strcpy() and dissect a bitfield properly
only 86 strcpy() now remain in epan/dissectors


svn path=/trunk/; revision=16197
2005-10-12 01:43:25 +00:00
Ronnie Sahlberg
4dd264cc65 remove some redundant strcpy()
fix a compiler warning


svn path=/trunk/; revision=16195
2005-10-11 23:38:57 +00:00
Anders Broman
118236bacc From Ignacio Goyret
correct a bug in parsing Lucent/Ascend PPP dumps. Basically, blobs with "PPP-OUT" should be labelled "PPP transmit" while blobs with "PPP-IN" should be labelled "PPP receive". The current code labels them the other way around.

packet-ppp.c
- Properly decode option to enable ECRTP (it wasn't decoded).
- Use the ipv6 knob to control ipv6 decoding (previously, it
  was using the ipv4 knob).

svn path=/trunk/; revision=16194
2005-10-11 19:55:55 +00:00
Anders Broman
8402972003 From Richard van der Hoff
Here's another rework of the iax desegmentation logic, which 
fixes bug 515 and its dupes.

svn path=/trunk/; revision=16193
2005-10-11 19:44:59 +00:00
Anders Broman
4686f4f2a5 Replace the current ranap dissector with an asn2eth generated one.
svn path=/trunk/; revision=16191
2005-10-11 17:48:01 +00:00
Ronnie Sahlberg
1cfe020e5b remove the old dssetup since we now generate it using pidl
svn path=/trunk/; revision=16189
2005-10-11 09:32:49 +00:00
Ronnie Sahlberg
975146d18b add new autogenerated dssetup
svn path=/trunk/; revision=16188
2005-10-11 09:32:09 +00:00
Ronnie Sahlberg
99195c6b7e smoe more bitmaps dissected and a few strcpy() removed.
fix some obvious bugs with masking (masking with 0xd0 and shifting 5 bits to the right)


svn path=/trunk/; revision=16187
2005-10-11 09:26:50 +00:00
Ulf Lamping
9043311823 add llc_add_oui
svn path=/trunk/; revision=16186
2005-10-11 09:11:36 +00:00
Anders Broman
b08333d010 Missed files
svn path=/trunk/; revision=16185
2005-10-11 05:56:51 +00:00
Anders Broman
b854132495 From Hannes Gredler:
fixes the AF/SAFI codepoints
for BGP Layer-2 VPNs from  a Juniper pre-standard implementation to the new "official" IANA assigned codepoints.

From Julian Onions
packet-rmt-norm.ch Decode more oif the protocol

svn path=/trunk/; revision=16183
2005-10-11 05:23:27 +00:00
Anders Broman
3f7ed7c2a2 Fix problems with bitstring:
- dissect_per_bitstring needs to know if extention exists or not.
- Fixes for bitstring sizes up to 16 ( where max = min ).

svn path=/trunk/; revision=16181
2005-10-10 20:38:28 +00:00
Guy Harris
ef966c3377 If we don't want to dump core when a field is registered twice, at least
make the message give enough information to give us some hope of finding
the offending field.

svn path=/trunk/; revision=16179
2005-10-10 18:06:50 +00:00
Gerald Combs
ad3db4ffa2 Remove an extra HF array item.
svn path=/trunk/; revision=16178
2005-10-10 16:12:51 +00:00
Ronnie Sahlberg
c7d8e8f00b dissect one bitmap properly and get rid of some strcpy()
svn path=/trunk/; revision=16177
2005-10-10 10:12:16 +00:00
Ronnie Sahlberg
02f562359e remove one array from the stack
dissect one more bitfield properly
get rid of some strcpy()



svn path=/trunk/; revision=16176
2005-10-10 09:12:33 +00:00
Ronnie Sahlberg
6d67bce2e5 dissect a bitfield properly and get rid of some strcpy()
svn path=/trunk/; revision=16175
2005-10-10 08:36:24 +00:00
Guy Harris
67b91b5163 Add "ep_strdup_vprintf()" and "se_strdup_vprintf()", for completeness.
Make them not reuse a va_list; there's no guarantee that it can be
used more than once and, in fact, on some platforms, you *can't* use it
more than once.  Based on a patch by Pekka Pietikainen.

Clean up indentation a bit.

svn path=/trunk/; revision=16174
2005-10-10 08:24:56 +00:00
Jörg Mayer
c26f8b163c Add sminmpec.c to maintainer-clean
svn path=/trunk/; revision=16172
2005-10-09 07:33:07 +00:00
Luis Ontanon
4ef4ca657d make .._strndup() not to call strndup.
svn path=/trunk/; revision=16167
2005-10-08 12:35:51 +00:00
Ronnie Sahlberg
bc655dfba3 improve get_dns_name now that we have cheap emem allocated buffers
and get rid of a few strcpy()
a whole lot of arrays from the stack
and make the function prototype slightly nicer.



svn path=/trunk/; revision=16166
2005-10-08 12:31:06 +00:00
Ronnie Sahlberg
9a0ebcc75c remove some redundant strcpy() and arrays on the stack
svn path=/trunk/; revision=16164
2005-10-08 11:37:00 +00:00
Ronnie Sahlberg
21ec37f287 strcpy() removal
svn path=/trunk/; revision=16163
2005-10-08 11:15:15 +00:00
Ronnie Sahlberg
6e6952badf low hanging fruit
remove two redundant strcpy()



svn path=/trunk/; revision=16162
2005-10-08 11:07:48 +00:00
Ronnie Sahlberg
0437e92843 fix the last remaining bitmap so it is dissected properly and remove the last strcpy from els
svn path=/trunk/; revision=16161
2005-10-08 10:24:31 +00:00
Ronnie Sahlberg
f0709d0a7a one more bitmap dissected properly and a few less strcpy()
svn path=/trunk/; revision=16160
2005-10-08 09:52:47 +00:00
Ronnie Sahlberg
ef5b9193cd one more bitfield properly dissected and some less strcpy()s
svn path=/trunk/; revision=16159
2005-10-08 09:11:23 +00:00
Ronnie Sahlberg
f0b1d734c5 some more strcpy() removals
and one more bitfield dissected properly

only 157 strcpy()'s remain in epan/dissectors now   down from 300+ in 0.10.12



svn path=/trunk/; revision=16158
2005-10-08 08:49:53 +00:00
Ronnie Sahlberg
ccaded007c From William Fiveash
Support for PA_ENCTYPE_INFO2
and defines for new aes crypto



svn path=/trunk/; revision=16156
2005-10-07 22:51:25 +00:00
Luis Ontanon
f35f5e317e do not free the element name, as its been passed to the hf array.
svn path=/trunk/; revision=16154
2005-10-07 17:59:13 +00:00
Luis Ontanon
770aa5678b "./dtd_parse.l", line 167: warning, rule cannot be matched
the . matches one char as {special_char} does so {special_char} won't have been matched. change that for a non ">"

svn path=/trunk/; revision=16153
2005-10-07 08:36:23 +00:00
Luis Ontanon
f1b498587b remove location from dtd_build_data_t avoiding to (double) free it.
svn path=/trunk/; revision=16147
2005-10-06 22:01:52 +00:00
Anders Broman
5ddbeb2cb8 From Rene Pilz,
In the bssgp an IE was decoded as mobile identity and should be decoded as (p)tmsi only.

The patch is attached to this email. It also consists the new atm patch which was send yesterday.


svn path=/trunk/; revision=16146
2005-10-06 20:01:25 +00:00
Luis Ontanon
f7b0c35663 remove file inclusion code altoghether and few other changes
svn path=/trunk/; revision=16145
2005-10-06 18:55:06 +00:00
Luis Ontanon
05cd36e678 ep_strndup and se_strndup do not have to expect strings to be null terminated.
svn path=/trunk/; revision=16144
2005-10-06 18:52:19 +00:00
Luis Ontanon
178702b126 Update enterprise-numbers from http://www.iana.org/assignments/enterprise-numbers
svn path=/trunk/; revision=16143
2005-10-06 18:50:40 +00:00
Anders Broman
2a80fe283c Handle multiple messages in a TCP segment, reassembly still needed.
svn path=/trunk/; revision=16142
2005-10-06 16:00:26 +00:00
Anders Broman
f3d6542e0f Octest string of (size 2) does not dissplay correctly.
svn path=/trunk/; revision=16141
2005-10-06 08:53:51 +00:00
Anders Broman
7d2f4603c1 Build the h223 plugin
svn path=/trunk/; revision=16140
2005-10-06 06:56:08 +00:00
Anders Broman
15aa4d692f From Richard van der Hoff:
Extensions to the h.245 dissector to extract H.223 Multiplex Code and Logical 
Channel setup messages, and pass this information to the H.223 dissector.

svn path=/trunk/; revision=16139
2005-10-06 06:38:17 +00:00
Guy Harris
ba324831a0 Don't try to strip the last byte from a zero-byte OID. Fixes bug 503.
svn path=/trunk/; revision=16132
2005-10-05 21:41:12 +00:00
Jörg Mayer
402c4dd9a7 Don't reinvent the wheel, use val_to_str/match_strval
svn path=/trunk/; revision=16130
2005-10-05 15:44:04 +00:00
Ronnie Sahlberg
0a3ed5250a add the licence file for the samba4 copied files
svn path=/trunk/; revision=16128
2005-10-05 13:39:44 +00:00
Ronnie Sahlberg
6c1b9760f6 dissect one more bitfield
get rid of some strcpy()
get rid of a temporary string


svn path=/trunk/; revision=16127
2005-10-05 13:25:18 +00:00
Ronnie Sahlberg
c858b89670 add dissection of another bitfield and remove some strcpy()
svn path=/trunk/; revision=16126
2005-10-05 12:42:34 +00:00
Ronnie Sahlberg
59cf2dad3a rewrite dissection of service options flags to proper booleans and get rid of some strcpy() calls.
svn path=/trunk/; revision=16125
2005-10-05 11:55:49 +00:00
Ulf Lamping
6b3cacb197 bugfix: don't crash, if not enough bytes of the header available
svn path=/trunk/; revision=16124
2005-10-05 06:37:35 +00:00
Guy Harris
dd42bfef7c Get rid of an unused variable.
svn path=/trunk/; revision=16122
2005-10-04 22:08:20 +00:00
Anders Broman
24a1fd561d From Richard van der Hoff
I've spotted a bug in the new desegmentation in iax2, which 
means that higher-level PDUs aren't dissected when they ought to be, but 
tend to be grouped together in later packets - I've attached a patch 
against svn r16110 to fix this; it also makes the code a bit clearer...

svn path=/trunk/; revision=16121
2005-10-04 20:21:18 +00:00
Guy Harris
399bf74c47 Even a null object has a non-zero length (for the BER identifier and
length); update the offset when dissecting one.

svn path=/trunk/; revision=16118
2005-10-04 18:21:04 +00:00
Ronnie Sahlberg
e1549f4f18 the t38 tap would only initialize the t38_info structure when called from UDP
and when called from TCP this pointer would be uninitialized and thus dump core when dereferenced.

at the same time remove the rotating buffers


this fixes bugs 498 and 501

svn path=/trunk/; revision=16117
2005-10-04 14:41:39 +00:00
Ronnie Sahlberg
4e4f6d67fa in svn 15335 the tcp analysis was changed to do its stuff and to populate (prepend to) COL_INFO before callking the subdissectors
instead of calling the tcp analysis (and prepend colingo) eitehr after the subdissector returned normally  or if an exception caused by a subdissector was rised.

this as a sideffect caused tcp analysis data to be overwritten if the subdissector caused any output to the info column. (and made tcp analysis suboptimal)


this change adds a new function   col_prepend_fence_fstr()  that will prepend
the info column with the string and also, if there was no fence already defined, create a fence and set it after the prepended col info text.

This way, even if the subdissectors generate and rewrite col info, the tcp analysis data will still be displayed on the info column.



svn path=/trunk/; revision=16116
2005-10-04 13:34:52 +00:00
Guy Harris
494b806bfc Fix a typo.
svn path=/trunk/; revision=16115
2005-10-04 10:26:44 +00:00
Guy Harris
bfad2f3a0c Get rid of // comments - not all C compilers like them.
svn path=/trunk/; revision=16114
2005-10-04 10:26:17 +00:00
Guy Harris
2a8e47b11a Don't ensure all the bytes of a security descriptor exist before calling
"dissect_nt_sec_desc()".  Add a Boolean argument to
"dissect_nt_sec_desc()" to indicate whether a length was passed to it
(so we don't treat -1 as a special value; we want to stop treating -1 as
a special length value, and, in fact, want to stop treating *any*
negative length values specially, so that we don't have to worry about
passing arbitrary 32-bit values from packets as lengths), and have
"dissect_nt_sec_desc()" initially create the protocol tree item for the
security descriptor with a length of "go to the end of the tvbuff", and
set the length once we're done dissecting it - and, if the length was
specified, check at *that* point, *after* we've dissected the security
descriptor, whether we have the entire security descriptor in the
tvbuff.

That means that we don't have to worry about overflows after
"dissect_nt_sec_desc()" returns - if the length was so large that we
would have gotten an overflow, we'd have thrown an exception in the
"tvb_ensure_bytes_exist()" call at the end of "dissect_nt_sec_desc()".

Do sanity checks on offsets within the security descriptor, so we know
the item referred to by the offset is after the fixed-length portion of
the descriptor.

svn path=/trunk/; revision=16113
2005-10-04 10:23:40 +00:00
Guy Harris
72dd04b43c We can just use "get_ber_identifier()" and "get_ber_length()" to fetch
BER identifier and length information; calling
"dissect_ber_identifier()" and "dissect_ber_length()" with a null tree
argument doesn't have any advantages over that.

Don't put an octet string into the protocol tree twice, once with
"dissect_ber_octet_string()" and once with the real value; once is enough.

svn path=/trunk/; revision=16112
2005-10-04 10:17:45 +00:00
Anders Broman
1f02bfa0af From John Sullivan:
The current ethereal eDonkey dissector fails to handle a number of valid packet types - in particular the normal server<->client communication between current eserver and eMule versions (from both
sides) produces packets which ethereal incorrectly claims to be malformed.

This patch fills in these holes.

svn path=/trunk/; revision=16107
2005-10-04 05:36:31 +00:00
Anders Broman
f65dbd3213 Add some requested items.
svn path=/trunk/; revision=16106
2005-10-04 05:29:40 +00:00
Anders Broman
c391dc2ec3 Preparations for h223
svn path=/trunk/; revision=16105
2005-10-04 05:16:26 +00:00
Anders Broman
4a5c674c04 From Dave Richards
1) Fixes context-tagged BACnet errors.
2) Fixes indeterminate tag data.  If the tag length/value/type variable 
was 6 or 7 you could not tell whether it was an open/close tag or had 
length 6/7.
3) Don't make assumptions about property types for proprietary BACnet 
object types.



svn path=/trunk/; revision=16104
2005-10-04 05:15:23 +00:00
Guy Harris
f34436d517 Don't assume that every packet has a non-null "call_data" value. Fixes
bug 497 (as well as a crash on an *unfuzzed* IAX2 capture!).

Set "pinfo->can_desegment" before calling dissectors; that's expected
for dissectors that do TCP-style desegmentation.

svn path=/trunk/; revision=16099
2005-10-04 01:16:06 +00:00
Guy Harris
05d8d0c76f A hash table doesn't *have* to have a value destroy function - and, in
fact, in GLib 1.2, it *can't* have one.  As the value destroy function
for this hash table does nothing, don't bother with it - and create the
hash table with "g_hash_table_new(), rather than
"g_hash_table_new_full()", so it works with GLib 1.2[.x].

svn path=/trunk/; revision=16096
2005-10-03 22:17:32 +00:00
Guy Harris
c76adc9797 The "extern" in "struct _fragment_items" doesn't do anything, as data
types aren't objects and don't have storage classes, etc..

svn path=/trunk/; revision=16094
2005-10-03 22:02:47 +00:00
Anders Broman
758ceb58e8 From Jeff Snyder:
04-stream.diff
 A simplified packet reassembly API built on top of  fragment_add_seq_next for 
reassembling fragments that are delivered in-order, where fragments are 
identified by a framenum and an offset into that frame. Streams are attached 
to a conversation or a circuit and are unidirectional.

svn path=/trunk/; revision=16082
2005-10-03 18:34:21 +00:00
Anders Broman
f11ef4b7a0 Add dissection of some more OID's and use the #.REGISTER function.
svn path=/trunk/; revision=16081
2005-10-03 18:18:38 +00:00
Ulf Lamping
2ee44b8409 from Yaniv Kaul: add a Preference setting for IP checksum validation
svn path=/trunk/; revision=16080
2005-10-03 16:24:43 +00:00
Ulf Lamping
376e1adf58 from Peter Johansson:
The supplied patch resolves an issue with the use of the not yet initialized variable "fid".

/ Regards, Peter 

svn path=/trunk/; revision=16079
2005-10-03 15:52:14 +00:00
Luis Ontanon
6a37b19839 dissect_rtse_EXTERNAL is already declared in the header as extern.
svn path=/trunk/; revision=16078
2005-10-03 13:10:28 +00:00
Ronnie Sahlberg
8df0e21fba prettify mount,
if MNT fails with an error,   put the error string in the INFO column


svn path=/trunk/; revision=16076
2005-10-03 09:30:10 +00:00
Anders Broman
96c01ad3c6 Fix a typo.
svn path=/trunk/; revision=16074
2005-10-03 05:59:17 +00:00
Anders Broman
15a08ae521 From Alejandro Vaquero:
New "Fax T38 Analysis" added to the "Statistics" menu to:

- Reassemble the HDLC t30 frames and dissect the header.
- Analyze the UPDTLPacket seq num for packet lost
- Stats of V.x Data:
    - Count the Data bytes
    - Duration
    - Wrong seq num
    - Max Burst of packet lost

svn path=/trunk/; revision=16073
2005-10-03 05:55:26 +00:00
Anders Broman
9e273834dc From Graeme Lunt
X420 - incorrect ExtendedBodyPart handling
ACSE - support for implicitly tagged EXTERNALs and dissection based upon direct-reference RTSE - same change for RTSE EXTERNAL handling as above CMS  - support for ContentType, MessageDigest, SigningTime and CounterSignature attributes ESS  - support for ESSSecurityLabel and EquivalentLabels attributes


svn path=/trunk/; revision=16072
2005-10-03 05:17:51 +00:00
Anders Broman
2bac3e70c5 From Graeme Lunt
allows the dissection of ContentInfo based upon it's OID - something that is used for a secure X.400 messages (Protecting Content Type (PCT)).

svn path=/trunk/; revision=16069
2005-10-02 21:14:35 +00:00
Anders Broman
093040a179 From Jeff Snyder
00-iax.diff
 Modifications to the IAX2 dissector so that it offers desegmentation to 
subdissectors using the same API as TCP offers (pinfo->desegment_len etc)

01-amr.diff
 Modifications to the AMR dissector to allow AMR IF2 data to be dissected via 
call_dissector() from packet-h223.c. This patch also causes the AMR dissector 
to append the frame type string to the info column, so that the info column 
shows what protocols an H.223 frame contains.

02-h263-data.diff
 Modifications to packet-h263.c to separate the dissection of h.263 RTP 
encpasulation from the dissection of the actual h.263 data. The data 
dissection functions are added as a second dissector. This data-only 
dissector is used to dissect the video channel in our h.223 streams. As with 
the AMR modification, this makes the H.263 dissector append to the info 
column.

svn path=/trunk/; revision=16068
2005-10-02 20:59:54 +00:00
Ulf Lamping
e11c4aac89 enhancements COL_INFO output and make bittorrent protocol filterable
svn path=/trunk/; revision=16067
2005-10-02 15:41:11 +00:00
Ulf Lamping
3b66410f77 add doxygen comments to column-utils.h and do a slight code cleanup
svn path=/trunk/; revision=16066
2005-10-02 14:56:27 +00:00
Luis Ontanon
154d8ae087 one step further...
TPG now uses the ignore feature of tvbparse
 named sub_rules can have cardinality

epan/tvbparse.c:
   do not crash on zero cardinality


svn path=/trunk/; revision=16065
2005-10-01 15:19:36 +00:00
Luis Ontanon
54695fec80 propperly initialize vendor->ett if the vendor is not found while radius_register_avp_dissector().
fixes bug 488.


svn path=/trunk/; revision=16064
2005-10-01 11:16:17 +00:00
Luis Ontanon
9860d26c68 emem.[ch]:
Add a simple stack implememtation that uses ep_alloc
Add ep_new() ep_new0() macros

tpg.[ch]:
use the stack in tpg helpers


svn path=/trunk/; revision=16061
2005-10-01 10:36:57 +00:00
Olivier Biot
6f5e84b2d7 Fix bug 492 - the MMSE dissector calls add_content_type() defined in WSP, which
uses proto_item_append_string(). The visibility hack must be present, otherwise
a dissector assert is generated within the MMSE dissector.

svn path=/trunk/; revision=16060
2005-09-30 19:29:21 +00:00
Luis Ontanon
46e293cc16 I needed to cut'n'paste something more...
I did not even try to compile it before check it in, sorry!


svn path=/trunk/; revision=16057
2005-09-29 20:37:05 +00:00
Anders Broman
855e39b91c Update to the latest version of the standard.
svn path=/trunk/; revision=16056
2005-09-29 20:24:02 +00:00
Anders Broman
647742574e make n a guint32 to not wrap around at 65536
svn path=/trunk/; revision=16055
2005-09-29 20:22:55 +00:00
Luis Ontanon
e07a98a869 add a debugging function that creates a tree exploding the parsed elements
svn path=/trunk/; revision=16054
2005-09-29 20:07:29 +00:00
Anders Broman
598dc71801 From Mike Duigou
A patch to allow the JXTA dissector to pass fuzz testing. It 
also removes a couple of unused things and optimizes handling of the raw 
data dissector.

svn path=/trunk/; revision=16051
2005-09-29 05:37:27 +00:00
Guy Harris
a275cd2495 Move the Diameter dictionary files to a "diameter" subdirectory, along
the lines of what's done for RADIUS.  That keeps them together (and
separate from other files), and makes the layout of the top-level source
directory closer to the layout of the installation directory, so that if
you run Ethereal or Tethereal from the top-level directory on Windows
it'll pick up the Diameter dictionary files (if it supports loading
them), and can do so on UN*X if we support a mechanism to let it find
its control files in the directory in which the binary resides.

Use the diameter_DATA, dtds_DATA, and radius_DATA macros in the
EXTRA_DIST macro, so you only have to change the lists of Diameter, DTD,
and RADIUS files in one place if you add or remove a file.

svn path=/trunk/; revision=16050
2005-09-29 02:20:29 +00:00
Guy Harris
7aa4b4ffe1 Make "top_tree" static; nobody else uses it, and if they're both not
static, they collide with one another in builds on at least some
platforms.

svn path=/trunk/; revision=16049
2005-09-29 01:31:19 +00:00
Ulf Lamping
9a42ef9536 fix #480: Change defaults for all reassembling settings to ON
I've changed all settings I could find to TRUE. It might be reasonable to change some protocol settings back to FALSE, if reassembling fails very often.

svn path=/trunk/; revision=16048
2005-09-28 22:15:38 +00:00
Luis Ontanon
f9a96d8a16 be more flexible in what's a name
svn path=/trunk/; revision=16047
2005-09-28 21:35:14 +00:00
Luis Ontanon
925dd72039 one leak less...
svn path=/trunk/; revision=16046
2005-09-28 21:33:44 +00:00
Luis Ontanon
c6ed07b117 tvbparse.[ch]:
- add a tvbparse_handle() (for recursion)
- change tvbparse_until() to allow more control when parsing
- make the wanted control an union so that different types of data can be used

packet-xml.c:
- change the parser definition to match changes to tvbparse_until()


svn path=/trunk/; revision=16045
2005-09-28 21:32:47 +00:00
Anders Broman
399144a591 Handle sigcomp over TCP.
svn path=/trunk/; revision=16043
2005-09-28 19:57:45 +00:00
Jörg Mayer
66596fe354 Updates for foundry addresses/protocols
svn path=/trunk/; revision=16042
2005-09-28 17:16:30 +00:00
Anders Broman
264288023c It's the UDVM_MEMORY_SIZE that should be checked.
svn path=/trunk/; revision=16040
2005-09-28 16:38:40 +00:00
Guy Harris
f6ef22c553 Have show_exception() take a "const char *" as its exception message,
and not free the string to which it points.  Pass to
REPORT_DISSECTOR_BUG() strings allocated with ep_strdup_printf(), so
that they're freed automatically.

svn path=/trunk/; revision=16039
2005-09-28 16:16:37 +00:00
Guy Harris
e2d774be16 Don't change the Info column if we have an unknown opcode; we've already
set it to a value that should indicate that the opcode is unknown, and
also indicates what the value is.  (Especially don't do it without
calling check_col() to check whether we *should* change the info column,
as we'll dereference a null pointer if we shouldn't; this change should
fix bug 489.)

svn path=/trunk/; revision=16038
2005-09-28 09:31:37 +00:00
Guy Harris
322999c545 Note that we should redo the handling of OIDs when
"dissect_ber_object_identifier()" can return the OID in a binary form.

svn path=/trunk/; revision=16036
2005-09-28 08:01:54 +00:00
Olivier Biot
3452023b80 The TRY_TO_FAKE_THIS_ITEM() speed optimization has a side effect in that it
will only process FT_PROTOCOL fields. As a result, proto_item_append_string()
calls may throw a dissector exception, as only a FT_STRING or FT_STRINGZ can be
appended to with this call.

In order to prevent these dissector assertions, silently return from the append
call if the field is a FT_PROTOCOL.

Note that when the tree is visible, the updates of the fields occur normally,
as expected.

svn path=/trunk/; revision=16035
2005-09-28 07:08:57 +00:00
Luis Ontanon
02a506e15f make sure we tell tvbparse_until() to include the last token.
svn path=/trunk/; revision=16033
2005-09-28 01:17:45 +00:00
Luis Ontanon
217b73a0b1 update tpg
tvbparse:
     - for tvbparse_until spend the target token even if it isn't included


svn path=/trunk/; revision=16032
2005-09-28 01:06:39 +00:00
Luis Ontanon
95d60cc7ea in tvbparse:
- tvbparse_some now handles 0 items.
  - added accessors for a tt's offset and remaining length.

in packet-xml:
  - min_len=0 for tvbparse_chars() is soon going to mean zero instead of 1 change the 0s to 1s.
  - attribute names can have ':' even if it's namespaces isn't managed yet.
  - split the xml grammar in more elements so It can be actually read by a human being.


svn path=/trunk/; revision=16031
2005-09-27 22:57:07 +00:00
Luis Ontanon
1407da9827 http_dissector_add doesn't belong here!
svn path=/trunk/; revision=16029
2005-09-27 21:56:14 +00:00
Jörg Mayer
74ca6adb4a Op Code 3 (Advertisement) dissection
svn path=/trunk/; revision=16026
2005-09-27 21:50:50 +00:00
Luis Ontanon
72cbc6410b TPG TVB Parser Generator
Given a bnf-like grammar generate a set of helpers for a dissector

It's not working yet, however I need this checkin as a cheeckpoint

(I'll write the doc when it starts to be ready)


svn path=/trunk/; revision=16021
2005-09-27 20:48:48 +00:00
Tomas Kukosa
9a66525b71 new option whether tunnelled H.245 and tunnelled protocol are displayed inside H.225 tree or outside
svn path=/trunk/; revision=16020
2005-09-27 10:05:42 +00:00
Ronnie Sahlberg
70f17cd417 remove all strcpy from fcels
ito make it easier to read use doublespace to separate the items on the expansion line instead of ',' since so many of the strings contain spaces.

cleanup fc slightly and remove a redundant parameter


svn path=/trunk/; revision=16019
2005-09-27 08:03:13 +00:00
Tomas Kukosa
04fc893ad7 bug in dissect_per_object_identifier_str() fixed, wrong pointer was passed to oid_to_str()
svn path=/trunk/; revision=16018
2005-09-27 07:14:07 +00:00
Tomas Kukosa
0539569e1b get rid of warnings about qualifier discarding
svn path=/trunk/; revision=16017
2005-09-27 06:09:14 +00:00
Anders Broman
0f2584c4d2 - Make the reassemble TCP preference default TRUE.
- in dissect_tpkt_encap() only check the desegment flag passed in the function.


svn path=/trunk/; revision=16016
2005-09-27 05:39:58 +00:00
Guy Harris
13c7fec8f5 Give more details about too-short AVPs, give up immediately for AVPs
shorter than 2 bytes, and make the item for an AVP with a length < 2 a
generated item.

Put the top-level item for an AVP into the tree the same way regardless
of whether it's Vendor-Specific or not, and skip past the type and
length right after that, before we check for Vendor-Specific.  (This
means we no longer treat "vendor ID = 0" as an indication that this
isn't Vendor-Specific - nothing prevents a packet from getting onto the
wire with a vendor ID of 0; this fixes bug 485.)

Don't require a Vendor-Specific AVP to be at least 6 bytes long; it
might not be particularly useful to have one that has a vendor ID and
nothing else, but we might as well dissect the vendor ID portion.

Do some other cleanups.

svn path=/trunk/; revision=16015
2005-09-27 00:03:45 +00:00
Olivier Biot
122105370d Part 2 of the fix: also add the correct offset for non-WSP address records.
svn path=/trunk/; revision=16014
2005-09-26 20:49:33 +00:00
Guy Harris
92cc6da06c Make "REPORT_DISSECTOR_BUG()" (and the macros that use it) call
"abort()" if the ETHEREAL_ABORT_ON_DISSECTOR_BUG environment variable is
set; this is for debugging purposes, to make it easier to get a stack
trace of the offending call.

svn path=/trunk/; revision=16013
2005-09-26 20:34:13 +00:00
Olivier Biot
875fb98655 Fix WSP redirect and SIR address parsing:
- The incorrect number of octets were highlighted (bearer type and port number
   were disregarded).

 - In SIR version 1 content, correct the parsing (full WSP address length was
   not added to the offset for parsing the non-WSP contact points).

svn path=/trunk/; revision=16012
2005-09-26 20:00:37 +00:00
Anders Broman
510476e2ea Remove dependencies on asn1.c, stil endes to be included to define subid_t.
svn path=/trunk/; revision=16010
2005-09-26 18:18:06 +00:00