Commit graph

3873 commits

Author SHA1 Message Date
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
Ronnie Sahlberg
94df2dc3f4 remove all strcpy() from packet-fc.c
rewrite the functions to do proto_item_append_text() instead of building a string and then printing it.

The new function is functionally equivalent to the previous function except it does not print the values of the multi-bit fields to the expansion
(the expansion line is already a km wide as it is)



there are now only 202 strcpy() left in epan/dissectors  down from 300+ instances some weeks ago.



svn path=/trunk/; revision=16009
2005-09-26 10:11:38 +00:00
Guy Harris
a997ee591b Add a new "ipxnet" type for the RADIUS dictionary, for IPX network
numbers.  (Currently, we don't have any dictionary entries with that
type, although we have an attribute with special code to handle it that
uses that type.)

Specially handle Framed-IP-Address, Login-IP-Host, and
Framed-IPX-Network, so that the special values are displayed specially.

Clean up indentation.

Don't specify a number base for IPv4 or IPv6 addresses; the number base
is ignored.

svn path=/trunk/; revision=16008
2005-09-26 08:48:19 +00:00
Guy Harris
2b67057527 Use VENDOR_THE3GPP, rather than a hardcoded 10415, for the vendor ID for
the 3GPP.

svn path=/trunk/; revision=16007
2005-09-26 08:44:31 +00:00
Anders Broman
25fe588f9f From Martin Mathieson:
stun -  add support for 3 extra Message Attributes as described in draft-ietf-behave-rfc3489bis-00

ymsg 
 - avoid looking beyond the tvb while looking for content item delimiters (causing most frames to be shown as malformed packet)
- makes content items (and their keys and values) filterable  (includes fix to bug 415)


svn path=/trunk/; revision=16005
2005-09-26 05:43:25 +00:00
Guy Harris
0e17a773b9 A loop processing all the bytes in a tvbuff from a given offset to the
end of the data in the tvbuff should stop when the offset is >= the
total amount of data in the tvbuff, not when it's > the total amount in
the tvbuff following the starting offset.

In "unpack_digits()", return a null string, not a null pointer, if
there's nothing left in the tvbuff starting at the starting offset, so
that the caller doesn't have to check for a null pointer, and return an
ep_alloc()ed buffer, so the caller doesn't have to worry about freeing
the result.

If we see a filler digit, don't advance the offset in the string buffer;
we want to put the terminating '\0' right after the character we just
put into the string.

Fuzzed against some GSM captures.

svn path=/trunk/; revision=16002
2005-09-25 09:32:01 +00:00
Guy Harris
2d14a6f4ae Show unsigned quantities as such.
svn path=/trunk/; revision=16001
2005-09-25 09:07:41 +00:00
Guy Harris
d77101151a If "dissect_dcerpc_cn()" throws an exception when called by
"dissect_dcerpc_cn_bs_body()", it's because it recognized the packet as
a DCE RPC packet, but it ran out of data dissecting it as such;
increment the count of DCE RPC PDUs, so "dissect_dcerpc_cn_bs_body()"
returns TRUE, and its caller doesn't think nothing was dissected.

Fuzzed with some DCE RPC captures.

svn path=/trunk/; revision=16000
2005-09-25 09:06:48 +00:00
Luis Ontanon
35cfa4c11c test the avp_vsa_len not the avp_lenght!
svn path=/trunk/; revision=15999
2005-09-25 02:50:03 +00:00
Luis Ontanon
32c673552c Don't ASSERT if a VSA is too short, add an item reporting the error and leave.
svn path=/trunk/; revision=15998
2005-09-25 02:48:53 +00:00
Ronnie Sahlberg
d160beec37 remove some redundant code that would always evaluate to true anyway.
svn path=/trunk/; revision=15996
2005-09-25 01:44:23 +00:00
Ronnie Sahlberg
b56bc5db31 prettify the previous patch
remove the remaining strcpy() from this dissector and make it decode the bitmap PROPERLY.


svn path=/trunk/; revision=15995
2005-09-24 23:25:38 +00:00
Ronnie Sahlberg
d2ac9b9b97 refactor the "dissector" for task management flags to dissect the bits properly
and get rid of the silly  strcpy() stuff.


there is a HUGE number of these kinds of very ugly bitmap dissection in all the fibre channel related dissectors and all need to be converted to proer dissection.



svn path=/trunk/; revision=15994
2005-09-24 22:43:15 +00:00
Ronnie Sahlberg
89a7e3e76c remove an array from the stack, remove some strcpy() and strcat() calls
svn path=/trunk/; revision=15993
2005-09-24 21:22:24 +00:00
Ronnie Sahlberg
44699e4082 get rid of one array from the stack and convert all strcpy() to pointers to literal strings.
svn path=/trunk/; revision=15992
2005-09-24 21:14:47 +00:00
Guy Harris
5e6d63a804 Squelch some compiler warnings.
svn path=/trunk/; revision=15991
2005-09-24 19:09:40 +00:00
Luis Ontanon
3cf75fd6bb get rid of most dtd leaks.
There's just one left I'm aware of (the doctype name).


svn path=/trunk/; revision=15990
2005-09-24 19:03:35 +00:00
Jörg Mayer
86e8646afd That code was never even compiled for testing
svn path=/trunk/; revision=15988
2005-09-24 15:52:42 +00:00
Jörg Mayer
32eccf1162 Shoichi Sakane:
Hi, I fixed some bugs to decoding IKEv2 payloads.  the following things
have been checked at the IPsec bake off in Toronto this week.

        - fixed decoding IP address in TS payload
        - fixed decoding IPv6 address in ID payload
        - fixed decoding IKEv2 Delete payload
        - SPI printing


svn path=/trunk/; revision=15987
2005-09-24 15:42:37 +00:00
Luis Ontanon
993e209b7f - There can be '/' in attribute names as well
- 140Kb of leaks less.


svn path=/trunk/; revision=15986
2005-09-24 15:07:38 +00:00
Ronnie Sahlberg
07f98b8fb7 From MartinM
IRC update and fix for bug 218


svn path=/trunk/; revision=15985
2005-09-23 21:33:02 +00:00
Ronnie Sahlberg
f5c51aa470 From Kaul
One of the "unknown" fields are actually a digest.


svn path=/trunk/; revision=15983
2005-09-23 21:26:09 +00:00
Ronnie Sahlberg
44fb2d3d56 Dont decrement the length by 2 if it is already less than two
since then the length will wrap and become +4G or so.

This fixes bug 479


svn path=/trunk/; revision=15982
2005-09-23 20:51:09 +00:00
Ulf Lamping
3fd9edbf10 as tvb functions are frequently used by a lot of dissectors, use DISSECTOR_ASSERT() like instead of g_assert throughout tvbuff, so a malicious dissector won't crash Ethereal (at least at the ways we can detect it)
of course this won't catch e.g. NULL pointers, but far better than nothing ...

svn path=/trunk/; revision=15980
2005-09-23 18:27:30 +00:00
Ulf Lamping
bed8f51d98 show the same [Packet size limited during capture] message in the column info, instead of the former (unintuitive) [Short Frame]
svn path=/trunk/; revision=15979
2005-09-23 18:05:36 +00:00
Ulf Lamping
1c9305a90e when I've done the last change here, I wasn't expecting to get an fcs_len value of -1, fixed now
svn path=/trunk/; revision=15976
2005-09-23 17:01:19 +00:00
Ronnie Sahlberg
26828b0876 remove some compiler warnings
svn path=/trunk/; revision=15975
2005-09-23 10:39:58 +00:00
Ronnie Sahlberg
b52e2939d7 remove some compiler warnings
svn path=/trunk/; revision=15974
2005-09-23 10:31:39 +00:00
Ulf Lamping
d94cb40e76 fix offset calculation of DataStatus fields if Ethernet FCS (or a similar trailer) is present
svn path=/trunk/; revision=15970
2005-09-22 21:24:28 +00:00
Ulf Lamping
b828a6e09d bugfix: don't crash, if pinfo->match_string == NULL
svn path=/trunk/; revision=15969
2005-09-22 21:21:29 +00:00
Ulf Lamping
d3b3e5fe16 bugfix: don't crash, if tag_save_literal == NULL
svn path=/trunk/; revision=15968
2005-09-22 21:19:23 +00:00
Ulf Lamping
a9e1c71b7a bugfix: don't crash, if current_frame->ns == NULL
svn path=/trunk/; revision=15967
2005-09-22 21:18:19 +00:00
Ulf Lamping
5305988e3d enhance heuristics:
some Siemens SIMATIC protocols also use COTP, and shouldn't be 
misinterpreted as SES.
the starter in this case is fixed to 0x32 (SES_MINOR_SYNC_ACK for SES), 
so if the following parameter type is unknown, it's probably SIMATIC and not SES

svn path=/trunk/; revision=15966
2005-09-22 21:16:54 +00:00
Ulf Lamping
ca662b74b0 change ConnectCR flag item sequence, so the "most significant" bit will come first (as done in the other req/responses)
svn path=/trunk/; revision=15964
2005-09-22 21:12:51 +00:00
Ulf Lamping
6f98654a6a bugfix: don't simply use length field value from packet data, ensure the bytes really exist
svn path=/trunk/; revision=15963
2005-09-22 21:09:02 +00:00
Ulf Lamping
9d1af7d6fb add two more bind reject reasons from the specs
svn path=/trunk/; revision=15962
2005-09-22 21:07:25 +00:00
Guy Harris
d90a1a4ac6 Make the private variables for various lexical analyzers static, so
that we don't have all the lexical analyzers in libethereal share them
(note that they're already static in radius_dict.l, so they weren't
sharing with any other lexical analyzer), and so that OS X 10.3.9's
run-time linker doesn't get upset at finding them defined in libethereal
and the MATE plugin.

Fix up indentation.

svn path=/trunk/; revision=15961
2005-09-22 18:39:25 +00:00
Luis Ontanon
35bd5bd854 Instead of checking if this is a new packet at every call to avoid recounting the packets at every rerun remove the tap listener of this stats tree.
fixes bug 474

svn path=/trunk/; revision=15960
2005-09-22 17:01:06 +00:00
Luis Ontanon
88dd585d23 in register_dtd() do not leak the elements hash
svn path=/trunk/; revision=15959
2005-09-22 16:41:53 +00:00
Tomas Kukosa
81a2feddab Call H245 decoding and tunelled protocols decoding at the end of H225 dissector. I makes less confusion in info column.
svn path=/trunk/; revision=15958
2005-09-22 14:40:26 +00:00
Jörg Mayer
1c0667858e Add the cisco url as well
svn path=/trunk/; revision=15957
2005-09-22 10:07:26 +00:00
Jörg Mayer
41911c041a Add a comment on packets with opcode 3
svn path=/trunk/; revision=15956
2005-09-22 10:00:40 +00:00
Ulf Lamping
6af80b98cb replace match_strval with val_to_str, where the output was used by string output, but not expecting NULL
svn path=/trunk/; revision=15954
2005-09-22 02:18:19 +00:00
Guy Harris
23661240d7 Squelch some compiler warnings.
svn path=/trunk/; revision=15953
2005-09-22 02:08:03 +00:00
Ulf Lamping
031d7beea0 prevent output of NULL strings
svn path=/trunk/; revision=15950
2005-09-22 01:16:25 +00:00
Ulf Lamping
714c04d3a8 replace match_strval with val_to_str in several places, where the output was used by string output, but not expecting NULL
svn path=/trunk/; revision=15949
2005-09-22 01:09:01 +00:00
Guy Harris
c5b0fc27d7 Fix a bunch of places where we were calling "dissect_ber_octet_string()"
with a non-null pointer-to-pointer-to-tvbuff and not checking whether
the returned tvbuff pointer was non-null.

svn path=/trunk/; revision=15948
2005-09-22 00:51:11 +00:00
Guy Harris
341a2f503d dissect_ber_octet_string() can return a null tvbuff pointer, if the
putative octet string isn't one; always check before using it to
dissect, and don't call the dissector if the tvbuff is null.  This
should fix bug 472.

svn path=/trunk/; revision=15946
2005-09-21 23:23:58 +00:00
Guy Harris
ced076f8d4 OIDs are put into the protocol tree as strings containing a textual
representation of the OID, so the fields for them should be of type
FT_STRING.  This should fix bug 470.

svn path=/trunk/; revision=15945
2005-09-21 23:07:07 +00:00
Ulf Lamping
a8ef1df32b fix/add doxygen comments
svn path=/trunk/; revision=15941
2005-09-21 20:11:55 +00:00
Ronnie Sahlberg
8b32f13476 get rid of strcpy in packet-ntp.c
at the same time  change ntp_fmt_ts to return a pointer to ian ep-allocated buffer.
remove the redundant buffer parameter in the signature and change all callers.


svn path=/trunk/; revision=15939
2005-09-21 20:05:13 +00:00
Guy Harris
4e09b5e0b3 Some compilers don't allow a static declaration of a function inside
another function, so move the declaration of
dissect_spnego_PrincipalSeq() to the top of the file.

svn path=/trunk/; revision=15938
2005-09-21 18:27:28 +00:00
Guy Harris
0fb81e221e An InnerContextToken comes with an OID for the mechanism, which is what
we use to determine how to interpret the token; don't bother fetching
the OID attached to the frame or conversation, as we're not using it.

Indent code in the .cnf file to match the code generated by asn2eth.

The mechListMIC in a NegTokenInit is sometimes a sequence containing a
string; check the header of the mechListMIC and dissect it as such a
sequence or as a regular item depending on whether it's a sequence or
not.

If we see a supportedMech in a NegTokenTarg, save next_level_value for
that OID with the conversation.

Dissect a responseToken in a NegTokenTarg, and a mechListMIC in a
NegTokenTarg, appropriately.

Get rid of "gssapi_dissector_handle()", and just use
next_level_value->handle - it was never being called if next_level_value
was null.

When we're dissecting a KRB5 blob, just use get_ber_identifier() to get
the header, so we don't report an ASN.1 error if there isn't a BER
identifier there; dissect the identifier and length only if we know we
have them.

svn path=/trunk/; revision=15937
2005-09-21 17:42:11 +00:00
Guy Harris
fa2779e00d Don't fill in a data structure for the packet while dissecting; we use
almost none of the data - fill in only variables for what we need, and
use proto_tree_add_item() in most cases.

Move what's left of the packet-winsrepl.h header into packet-winsrepl.c,
and get rid of the header.

Dissect the name flags field in detail, as per the Samba code.

We don't do any checks for whether the packet is a valid WINS
replication packet, so don't make the dissector a new-style dissector.

svn path=/trunk/; revision=15936
2005-09-21 17:33:04 +00:00
Guy Harris
6c0328f7f3 Don't fill in a data structure for the packet while dissecting; we use
almost none of the data - fill in only variables for what we need, and
use proto_tree_add_item() in most cases.

Move what's left of the packet-winsrepl.h header into packet-winsrepl.c,
and get rid of the header.

Dissect the name flags field in detail, as per the Samba code.

We don't do any checks for whether the packet is a valid WINS
replication packet, so don't make the dissector a new-style dissector.

svn path=/trunk/; revision=15935
2005-09-21 17:32:21 +00:00
Gerald Combs
a493fdd54b Use a proper length for booleans. If we have a malformed packet, throw an
exception.  Fixes bug 468.

svn path=/trunk/; revision=15934
2005-09-21 16:18:30 +00:00
Ronnie Sahlberg
7e2eed2a30 remove some strcpy() with g_snprintf()
svn path=/trunk/; revision=15931
2005-09-21 15:38:12 +00:00
Gerald Combs
71f16f2a3f If pinfo->match_string is null (e.g. when we're called from the Jabber
dissector), don't try to look it up in a hash table.  Fixes the current
Buildbot failure.

svn path=/trunk/; revision=15929
2005-09-21 15:03:19 +00:00
Ulf Lamping
85ae3a8086 fix #372: the bug raised a "division by zero" exception. I've add a check for this and simply replaced the expression with 0 in that case. Don't know if it's correct to do so, but fixes the exception at least :-)
svn path=/trunk/; revision=15927
2005-09-21 10:29:22 +00:00
Ulf Lamping
853067c739 bugfix: break out of an endless loop, if dissect_sip_common() returns 0 or -2, found in a file send to me by david martin in an attempt to fix #372
svn path=/trunk/; revision=15926
2005-09-21 10:22:14 +00:00
Jörg Mayer
8e8d66c2a9 manpages are now done automagically
svn path=/trunk/; revision=15925
2005-09-21 09:50:09 +00:00
Guy Harris
13e99476e6 Use BASE_DEC_HEX for the identifier field; that means we don't have to
use "proto_tree_add_uint_format()", we can just let the Ethereal core
format it.

svn path=/trunk/; revision=15922
2005-09-21 02:12:24 +00:00
Guy Harris
c952476658 Squelch some compiler wranings, and fix up the creation of a subset
tvbuff.

Fix indentation.

svn path=/trunk/; revision=15921
2005-09-21 01:47:46 +00:00
Guy Harris
eecbe6a8de Squelch a compiler warning.
svn path=/trunk/; revision=15920
2005-09-21 01:39:39 +00:00
Guy Harris
e3482b0576 I think this is the check that was intended....
svn path=/trunk/; revision=15919
2005-09-21 01:39:00 +00:00
Guy Harris
551f589cb9 Fix a compiler warning.
svn path=/trunk/; revision=15916
2005-09-21 01:33:16 +00:00
Guy Harris
7ae7aaf75c Fix a comment.
svn path=/trunk/; revision=15915
2005-09-21 01:15:32 +00:00
Guy Harris
81a1fbfcd7 Put in some comments based on stuff seen in the Samba code
(include/nameserv.h, code in wrepld).

svn path=/trunk/; revision=15914
2005-09-21 00:00:43 +00:00
Guy Harris
52c5f6f07b Give it an RCS ID.
svn path=/trunk/; revision=15913
2005-09-20 22:55:48 +00:00
Guy Harris
c4e374785e Fix the name in the comment.
Give it an RCS ID.

svn path=/trunk/; revision=15912
2005-09-20 22:53:31 +00:00
Guy Harris
2f6530246c Give them RCS IDs.
svn path=/trunk/; revision=15911
2005-09-20 22:52:31 +00:00
Guy Harris
c4d9915be6 Give them RCS IDs.
svn path=/trunk/; revision=15910
2005-09-20 22:51:42 +00:00
Guy Harris
0a93fcdcd3 Give it an RCS ID.
svn path=/trunk/; revision=15909
2005-09-20 22:49:54 +00:00
Anders Broman
df21536710 From Hannes Gredler:
patch to support 4 additional juniper DLTs.

all those are wrappers for exisiting media types augmented with meta-information which gets also displayed using this patch;

svn path=/trunk/; revision=15908
2005-09-20 20:25:55 +00:00
Anders Broman
ff34f18d67 From Kaul:
Jabber traffic is XML, attached patch dissects it as such

svn path=/trunk/; revision=15907
2005-09-20 20:20:08 +00:00
Anders Broman
1bb6396a93 Fix bug #404 Decoding of MSISDN on GSM is incomplete.
svn path=/trunk/; revision=15906
2005-09-20 20:04:01 +00:00
Ronnie Sahlberg
5d98676745 from francesco
update to remove sprintf()



svn path=/trunk/; revision=15905
2005-09-20 19:42:40 +00:00
Ronnie Sahlberg
8088098ce6 make options field filterable
remove silly rotating buffers



svn path=/trunk/; revision=15904
2005-09-20 19:36:38 +00:00
Gerald Combs
775906a73f Be more paranoid about buffer overruns.
svn path=/trunk/; revision=15901
2005-09-20 17:26:43 +00:00
Gerald Combs
5cb2a5e162 Fix a couple of errors found by valgrind.
svn path=/trunk/; revision=15900
2005-09-20 17:24:23 +00:00
Gerald Combs
ba83bf145f Don't try to reassemble a zero-length fragment. Add a comment to
reassemble.c about the handling of zero-length fragments.

svn path=/trunk/; revision=15899
2005-09-20 17:23:19 +00:00
Jörg Mayer
27a1e92489 Francesco Fondelli: Add dcp support (forgot this file)
svn path=/trunk/; revision=15898
2005-09-20 15:19:11 +00:00
Jörg Mayer
e6194537b3 Francesco Fondelli; Add dcp support
svn path=/trunk/; revision=15897
2005-09-20 15:18:28 +00:00
Tomas Kukosa
300f1231cd get rid of few warnings
svn path=/trunk/; revision=15895
2005-09-20 14:14:07 +00:00
Tomas Kukosa
d3492e684a asn2eth
- #.FN_BODY accepts parameters too
 - single line variant of #.FN_PAR is possible
 - new parameter FN_VARIANT for OBJECT IDENTIFIER
packet-per.c
 - dissect_per_object_identifier() returns value as tvb
 - new dissect_per_object_identifier_str() function
PER dissectors adapted and regenerated

svn path=/trunk/; revision=15894
2005-09-20 10:56:08 +00:00
Ulf Lamping
dce67e2bbe fix: packet-lldp.c(2071) : warning C4761: integral size mismatch in argument; conversion supplied
svn path=/trunk/; revision=15893
2005-09-20 09:02:38 +00:00
Ulf Lamping
e8dd2e9279 fix: packet-dcerpc.c(4019) : warning C4018: '<' : signed/unsigned mismatch
svn path=/trunk/; revision=15892
2005-09-20 08:55:50 +00:00
Luis Ontanon
c943320721 avoid freeing the last location twice.
add some #ifed out code to help debugging the parser


svn path=/trunk/; revision=15884
2005-09-20 00:31:53 +00:00
Jörg Mayer
7f48c561d2 Jim Young: LLDP improvements
svn path=/trunk/; revision=15879
2005-09-19 21:24:07 +00:00
Gerald Combs
cfe5ccacca Small whitespace cleanup.
svn path=/trunk/; revision=15877
2005-09-19 20:50:51 +00:00
Gerald Combs
bb45165680 Throw an exception instead of trying to read past the end of a buffer.
Fixes bug 455.

svn path=/trunk/; revision=15876
2005-09-19 20:50:10 +00:00
Luis Ontanon
9597f669bd display something useful in the radius VSA item
svn path=/trunk/; revision=15875
2005-09-19 19:48:55 +00:00
Gerald Combs
876ce82beb Don't dereference a null pointer. Fixes bug 460.
svn path=/trunk/; revision=15874
2005-09-19 19:46:25 +00:00
Luis Ontanon
fbc222f41a Change "Value" into "VSA" for Vendor SPecific Attributes
svn path=/trunk/; revision=15873
2005-09-19 19:36:32 +00:00
Anders Broman
d54a6094b3 Add a preference to decode different types of AMR payload.
svn path=/trunk/; revision=15872
2005-09-19 19:11:50 +00:00
Gerald Combs
0e802a164b Throw an exception if our ACL length is flat-out wrong.
svn path=/trunk/; revision=15871
2005-09-19 17:50:38 +00:00
Luis Ontanon
a6ff6fb97c - allow multiple attributes inside one VSA (fixes bug 438)
- preference to choose whether to add the AVP's payload length items
- preference to add an alternate UDP port


svn path=/trunk/; revision=15870
2005-09-19 17:42:02 +00:00
Gerald Combs
d2e3d45042 In the SPNEGO dissector, don't call a subdissector if we don't have a TVB.
Fixes bugs 448, 449, 451, 452, 454, 456, and 461.

Add similar TVB checks to the BER dissector.

svn path=/trunk/; revision=15869
2005-09-19 16:23:05 +00:00
Jörg Mayer
f10f911bce Change README to reflect the fact that tools/pidl is now a
svn:externals reference.

svn path=/trunk/; revision=15868
2005-09-19 14:59:32 +00:00
Jörg Mayer
31c136e937 Add idl_types.h from samba to fix warning
svn path=/trunk/; revision=15865
2005-09-19 13:26:49 +00:00
Jörg Mayer
ec750054cc Point to tools/pidl/README.ethereal
svn path=/trunk/; revision=15864
2005-09-19 09:23:52 +00:00