Commit Graph

3178 Commits

Author SHA1 Message Date
Jörg Mayer 83461b1e6a Didier Gautheron:
A small patch for compiling ethereal outside the source tree.


svn path=/trunk/; revision=15261
2005-08-08 14:17:42 +00:00
Ronnie Sahlberg f3f2f6312b From
Eric Wedel

Add a preference to RPC (default off) that will heuristically attempt to find
PDUs starting in the middle of a segment.



svn path=/trunk/; revision=15260
2005-08-08 09:52:59 +00:00
Ronnie Sahlberg 3c0f522818 updates from Anders B
Regenerate gsm ss and gsm map



svn path=/trunk/; revision=15259
2005-08-08 08:53:05 +00:00
Guy Harris 4c20433d0b Centralize the code to create the subtree for RSVP objects and to put
the length and object class items into that tree.  Put the object class
item into the tree as a visible item, rather than as a hidden item and
as a text entry.

Add some additional length checks.

svn path=/trunk/; revision=15258
2005-08-08 07:27:14 +00:00
Ronnie Sahlberg a5aad765f3 from Dominique Bastien
small update for slowprotocols


svn path=/trunk/; revision=15257
2005-08-07 23:39:00 +00:00
Guy Harris 3d3dbb9b15 DHCP Failover runs over TCP; use tcp_dissect_pdus.
There's no need to build a list of all the options and then dissect them
individually; just have one loop that dissects them.  (The full list
wasn't being freed, so we were leaking memory.)

Add some more sanity checks.

Clean up a bunch of other things.

svn path=/trunk/; revision=15255
2005-08-07 20:06:01 +00:00
Guy Harris 194fdb6676 Fix the spelling of "transferred".
Fix the sizes of some items to match what's in the I-D and what's being
fetched from the packet.

Check for the length of items before doing *anything* with the item,
including fetching the data from the packet.  Just put a "bad length"
indication into the protocol tree; don't abort the dissection (we can
just move on to the next TLV).

svn path=/trunk/; revision=15254
2005-08-07 18:03:34 +00:00
Guy Harris 84cf5472e9 If a dissector writer directly throws DissectorError, don't punish the
user by crashing due to a null pointer dereference, punish the dissector
writer by saying he or she didn't bother providing an explanation of the
error.

The exception message isn't a const string any more; make the
"exception_message" argument to "show_exception()" a "char *", not a
"const char *".

svn path=/trunk/; revision=15251
2005-08-06 21:38:43 +00:00
Guy Harris f618b54d36 Support throwing an exception with a null message pointer, and have the
message not be const (as we generate messages with "g_strdup_sprintf()",
which means they need to be freed; using a null message means that we
don't have to use a special string for exceptions with no message, and
don't have to worry about not freeing that).

Have THROW() throw an exception with a null message pointer.  (This
means that you crash if you throw DissectorError with THROW().  Don't do
that - it means you don't get a more detailed explanation of the
dissector problem.  Use the DISSECTOR_ASSERT, etc. macros in
epan/proto.h instead.)

Free the exception message for DissectorError, as it's mallocated.

svn path=/trunk/; revision=15250
2005-08-06 19:58:45 +00:00
Gerald Combs b226f35d6d Increase the size of some variables so that we don't overflow them and loop
forever.  Fixes bug 320.

svn path=/trunk/; revision=15245
2005-08-06 15:18:45 +00:00
Michael Tüxen fd79f5eb9c Update to
* http://www.ietf.org/internet-drafts/draft-ietf-rserpool-common-param-09.txt
 * http://www.ietf.org/internet-drafts/draft-ietf-rserpool-enrp-12.txt
 * http://www.ietf.org/internet-drafts/draft-ietf-rserpool-asap-12.txt


svn path=/trunk/; revision=15243
2005-08-06 12:02:34 +00:00
Guy Harris b8bb6b495c Squelch more const pointer warnings.
svn path=/trunk/; revision=15242
2005-08-06 10:31:27 +00:00
Guy Harris ca6ddf3e8d Don't assign "" to a string that's only used after it's assigned to.
"tvb_fake_unicode()" never returns a null pointer, so there's no need to
check for it; there's also no need to check that it's not an empty
string before freeing it, as it's always assigned a g_malloc()ed string.

It also takes as an argument the number of Unicode characters in the
string, not the number of bytes in the string.

Use "format_text()" when adding a string to the Info column, in case
it has non-printable characters.

Don't use "proto_tree_add_string_format()" if you don't have to.

svn path=/trunk/; revision=15239
2005-08-06 09:23:28 +00:00
Guy Harris 4ce075fb78 Use a NULL value for di->xfer as an indication that we don't know the
transfer context; that way, we don't have to make "di->xfer" a "const"
pointer, and can thus pass it to "g_free()" (if non-null) without
the compiler whining at us.

Note that telling the user to "click on ASSOC request" is not the best
thing to do, unless we simply cannot determine the right ASSOC request
to click on.

svn path=/trunk/; revision=15238
2005-08-06 09:18:52 +00:00
Guy Harris 7b31da8b11 DissectorError is not supposed to be directly thrown; one should use the
various DISSECTOR_ macros, so the error message includes an indication
of the problem, and the file and line number.

svn path=/trunk/; revision=15237
2005-08-06 04:01:38 +00:00
Guy Harris 5fb6e97fb4 Squelch more const warnings (and fix some memory leaks that found).
_U_-ify some unused arguments, rather than assigning them to themselves.

Un-constify one variable that gets assigned a mallocated pointer.

Clean up indentation.

svn path=/trunk/; revision=15236
2005-08-06 03:44:55 +00:00
Gerald Combs b992c73391 In packet-frame.c, don't free static memory when we throw a
DissectorError.  In packet-kerberos.c, restore pinfo->private_data if
we throw an exception, which keeps the SMB dissector from throwing
a DissectorError.  Initialize variables in other places to squelch
valgrind warnings.

svn path=/trunk/; revision=15235
2005-08-06 03:43:42 +00:00
Guy Harris 312c524a4c Squelch another const warning.
svn path=/trunk/; revision=15234
2005-08-06 01:39:51 +00:00
Ulf Lamping 149786d563 replace malloc and alike calls by their GLib pendants -> g_malloc
svn path=/trunk/; revision=15232
2005-08-05 23:58:58 +00:00
Guy Harris 1106ac4105 Put in a comment asking about the music going over the connection - we
shouldn't try to parse it as DAAP.

svn path=/trunk/; revision=15231
2005-08-05 23:18:05 +00:00
Jörg Mayer 4e1f4b18ab More char -> const char warning fixes.
Removed (very few) casts that only change the warning message
  but don't remove it (with gcc-4).

svn path=/trunk/; revision=15227
2005-08-05 20:59:08 +00:00
Anders Broman e6856b69f3 From David Richards:
here are the highlights of what's fixed:

1) Decoding of vendor-defined types
2) Decoding of some event notification parameters (not all)
3) Decoding of ABSTRACT-SYNTAX&Type
4) Decoding of BACnetTimeStamp
5) Some problems with context-tagged values (like booleans)
6) Continuation segments - don't try to decode them since you can't 
start mid-PDU
7) Removed some excessive levels of subtrees

svn path=/trunk/; revision=15226
2005-08-05 19:37:57 +00:00
Anders Broman 6ced262fdf From THORNTON, MATT
Some changes that I made to flesh out GPRS message parsing.  More information is displayed about the various frame formats.  I have also added some code to parse XID parameters in the U frame.  I have also fixed a couple of display bugs in the GSM and GPRS LLC parser.

svn path=/trunk/; revision=15224
2005-08-05 19:16:29 +00:00
Jörg Mayer 74a75d72fe char -> const char warning fixes
svn path=/trunk/; revision=15223
2005-08-05 13:23:47 +00:00
Jörg Mayer 2b2506f0f6 More char -> const char warning fixes
svn path=/trunk/; revision=15222
2005-08-05 13:10:58 +00:00
Jörg Mayer 69dcb66cd9 More char -> const char warning fixes
svn path=/trunk/; revision=15218
2005-08-05 00:23:22 +00:00
Jörg Mayer 050b3b5a97 Separate declaration from initialization with non-static values
svn path=/trunk/; revision=15216
2005-08-04 22:54:04 +00:00
Guy Harris 3d1dfa4f67 Put in comments explaining why we're removing some generated files with
"make distclean", even though they come with the distribution, and
make the one in plugins/xml/Makefile.nmake match the one in some other
files.

svn path=/trunk/; revision=15214
2005-08-04 22:22:53 +00:00
Jörg Mayer 444fd68eb8 Forgot to remove gdebug.h from Makefile.common too
svn path=/trunk/; revision=15212
2005-08-04 21:54:00 +00:00
Jörg Mayer bfd9609da2 Albert Chin:
uses of some C99'isms which prevent compilation on
        IRIX 6.5 with the SGI C compiler.


svn path=/trunk/; revision=15210
2005-08-04 21:31:40 +00:00
Jörg Mayer 8433afe23b Albert Chin:
Don't include epan/gdebug.h

Now that epan/gdebug.h is unused: remove it

svn path=/trunk/; revision=15209
2005-08-04 21:09:08 +00:00
Gerald Combs 04e2d2d5e6 Increase the size of some variables, so that we don't overflow them. Fixes
the infinite loops in bugs 311 and 314.

svn path=/trunk/; revision=15206
2005-08-04 17:11:32 +00:00
Gilbert Ramirez c8cd8f21a4 Exception handling fixes, and a fix to packet-frame.c,
from Richard van der Hoff.

svn path=/trunk/; revision=15205
2005-08-04 13:54:46 +00:00
Guy Harris 2c65361b8a When processing records, advance the offset.
svn path=/trunk/; revision=15204
2005-08-04 10:24:33 +00:00
Anders Broman 32f826a7ce From Richard van der Hoff:
Among the improvements are:
- fixes to call-tracking (it's now less likely to confuse two separate 
calls, for instance)
- improvements to Information Element dissection (clearer dissection, 
dissects more IE types, easier to extend)
- you can now filter on the content of DTMF packets
- Analysis of timestamps (calculation of absolute timestamp, and packet 
lateness).
- fixed a couple of assertion failures in subtle corner-cases.

negative relative times:
   - get_timedelta()
   - addtime()
   - ftype-time.c:relative_val_from_unparsed()

I've also moved get_timedelta() and addtime() out of calldata.c into a 
new file, epan/nstime.c, as I needed to use them in a dissector I'm 
working on (and they therefore needed to go into libethereal).

svn path=/trunk/; revision=15201
2005-08-03 20:37:28 +00:00
Anders Broman 49284d02cb Fix "tvb_fake_unicode takes the lengt in number of guint16's not guint8's" fix up indentation.
svn path=/trunk/; revision=15199
2005-08-02 21:16:56 +00:00
Ronnie Sahlberg a156f46452 ememify the tvb_get_string call in mmse.
the strings mmse got from tvb_get_string were never released anyway
so this would resolve significant memory leakage in mmse.

there are still memleaks in mmse   but one step at a time


svn path=/trunk/; revision=15197
2005-08-02 17:34:14 +00:00
Ronnie Sahlberg 7bca1d5ef6 ememify packet-rpc call to tvb_get_string()
svn path=/trunk/; revision=15196
2005-08-02 17:24:26 +00:00
Ronnie Sahlberg 12f5bdb99f remove a pointless g_strdup
svn path=/trunk/; revision=15195
2005-08-02 17:15:56 +00:00
Gerald Combs c214405e41 Clean up after ourselves so that we pass "distcheck" again.
svn path=/trunk/; revision=15194
2005-08-02 15:25:41 +00:00
Guy Harris b9ba0508bc Explain the BoundsError and ReportedBoundsError errors a bit more, as
per Ulf Lamping's request.

svn path=/trunk/; revision=15193
2005-08-02 08:42:02 +00:00
Jörg Mayer a0f94c125f Last set of trivial fixes for "no previous declaration" warnings.
svn path=/trunk/; revision=15191
2005-08-02 08:30:33 +00:00
Ulf Lamping bcf080b837 add some comments, has to be extended
svn path=/trunk/; revision=15190
2005-08-02 07:30:38 +00:00
Ulf Lamping 20c5d50269 bugfix: in an attepmt to fix a crash while doing reassemling of connection oriented packets, some weeks ago I've added some tvb_ensure_bytes_exist() calls to test the case that the alloc_hint value is bogus (found in private fuzz testing).
Unfortunately, this is *very* safe now as it will mark a lot of DCE/RPC packets as malformed, thus the reassembling code won't work with most packets :-(

I've replaced this with the correct check and used THROW(ReportedBoundsError) instead which is hopefully the right error in this case.

BTW: could someone please add a description of the ReportedBoundsError vs. BoundsError to the code as I still don't get it.

In addition: Use a toplevel tree item to display the DCE/RPC defragmentation just as it's done in the TCP desegmentation code.

svn path=/trunk/; revision=15188
2005-08-02 07:26:57 +00:00
Jörg Mayer 4f693dfae2 Some warning fixes for "no previous declaration"
Remove svn:executable
Add svn:eol-style native
Add svn:keywords Id


svn path=/trunk/; revision=15179
2005-08-02 05:39:45 +00:00
Jörg Mayer da9b7a9db9 Fix "no previous declaration" warnings
Remove trailing ^M (cr) from some files

svn path=/trunk/; revision=15175
2005-08-02 05:09:41 +00:00
Jörg Mayer b73a3f2773 Fix more "no previous declaration" warnings
svn path=/trunk/; revision=15174
2005-08-02 04:57:58 +00:00
Jörg Mayer efdd4601ce Fix more "no previous declaration" warnings
svn path=/trunk/; revision=15171
2005-08-02 04:34:35 +00:00
Jörg Mayer 7b2ff03d8c Fix more "no previous declaration" warnings
svn path=/trunk/; revision=15169
2005-08-02 04:31:42 +00:00
Gerald Combs 6bcaec9a12 Make sure "lemon" exists before we try to use it. This can happen if we
run "make dist" before running "make".

svn path=/trunk/; revision=15167
2005-08-01 21:09:34 +00:00
Gerald Combs 6e18761afc Break out of a loop before we exhaust system memory.
svn path=/trunk/; revision=15163
2005-08-01 13:52:22 +00:00
Tomas Kukosa 1602310bd4 - update ftam.cnf for new asn2eth compiler
- usage of #.FN_PARS in h225 and h245 dissectors
- PER dissectors regenerated

svn path=/trunk/; revision=15162
2005-08-01 08:46:09 +00:00
Anders Broman 7b870c1a92 From Martin Mathieson
- Makes more of the header fields filterable
- Rationalises a bit the way header lines are parsed

svn path=/trunk/; revision=15160
2005-07-31 20:42:48 +00:00
Anders Broman 1b88171c35 From Martin Mathieson:
This update:
- adds more command parameter details
- doesn't clutter the tree with unknown fields

svn path=/trunk/; revision=15159
2005-07-31 20:36:59 +00:00
Jörg Mayer eab0aeb4bb More char -> const char fixes
Declare some functions static

svn path=/trunk/; revision=15158
2005-07-30 16:34:38 +00:00
Jörg Mayer 38d1c38e99 Include .h into .c to make sure declarations match.
Fix a copy/paste in the .h surrounding ifndef.
One char -> const char fix.

svn path=/trunk/; revision=15157
2005-07-30 16:28:00 +00:00
Jörg Mayer 44cbbf1039 Stefan Rompf:
Fix warnings of type:
proto.c:2219: warning: ISO C forbids conditional expr with only one void side


svn path=/trunk/; revision=15156
2005-07-30 16:15:23 +00:00
Jörg Mayer 54861853a8 More char -> const char warning fixes
svn path=/trunk/; revision=15155
2005-07-30 07:13:27 +00:00
Jörg Mayer bff3a762ca Create packet-dcom-cba-acco.h
svn path=/trunk/; revision=15154
2005-07-30 07:08:04 +00:00
Guy Harris 09b54bab84 Make dissect_CBA_Connection_Data again available for plugins (although
it should be declared in a header file, so that the plugins can #include
the header file rather than using a possibly-out-of-date private
declaration, and so that it's clearer that it shouldn't be static).

svn path=/trunk/; revision=15153
2005-07-30 02:44:20 +00:00
Jörg Mayer 54c470762a Fix 'isn't prototype' warning
svn path=/trunk/; revision=15152
2005-07-30 02:30:05 +00:00
Guy Harris e965cb849c Clean up some more const issues.
svn path=/trunk/; revision=15151
2005-07-30 02:22:22 +00:00
Guy Harris 8a78d60fd1 Get rid of another unused variable.
svn path=/trunk/; revision=15150
2005-07-30 02:20:59 +00:00
Guy Harris 5c78208855 Widen a variable, as a guint16 value is assigned to it; the upper 8 bits
might be irrelevant in this case, but we might as well not throw them
out.

Clean up some code that sets "cdata->flags".

svn path=/trunk/; revision=15149
2005-07-30 02:09:59 +00:00
Guy Harris e87d4d257b Get rid of some unused variables.
svn path=/trunk/; revision=15148
2005-07-30 02:07:36 +00:00
Guy Harris 0e69aab43b Declare the value_string tables as arrays of value_strings, not of
pointers to same, and make them "const" while we're at it.

svn path=/trunk/; revision=15147
2005-07-30 02:06:13 +00:00
Jörg Mayer 5602f5bb83 Make some funtions static. More char -> const char warning fixes
svn path=/trunk/; revision=15146
2005-07-30 01:01:02 +00:00
Jörg Mayer 29060b1082 Remove packet-fcse.h
svn path=/trunk/; revision=15145
2005-07-30 00:59:08 +00:00
Jörg Mayer cac3ee248a Declare many functions static, move the #defines from packet-fcse.h to
packet-fcse.c and remove packet-fcse.h


svn path=/trunk/; revision=15144
2005-07-30 00:55:30 +00:00
Gerald Combs 200ff9dc52 Pick up some fixes and enhancements from
http://cvs.fedora.redhat.com/viewcvs/rpms/ethereal/FC-4/:

In the LPD dissector, make lpd_client_code a value_string so that we
don't segfault.  Do the same for lpd_server_code, although it's not
strictly necessary.

Check to see if htmlview is installed, and use it as our HTML viewer.

The Fedora RPM has other patches, but I'm not sure if they should
be applied.


svn path=/trunk/; revision=15143
2005-07-29 21:55:45 +00:00
Ronnie Sahlberg e51caa85fb some more ememification of tvb_get_string()
svn path=/trunk/; revision=15142
2005-07-29 10:00:37 +00:00
Guy Harris 9055696e2b Suggest that perhaps displaying chunks in the chunked encoding with the
data dissector might be overkill, as it causes each of those chunks to
be dumped in hex in Tethereal output - along with whatever's done with
the data reassembled from those chunks.

svn path=/trunk/; revision=15141
2005-07-29 07:35:43 +00:00
Guy Harris 66a2801dfa Use "PROTO_ITEM_SET_GENERATED()" to mark generated items as such; it
takes care of the square brackets, etc..

svn path=/trunk/; revision=15140
2005-07-29 07:28:07 +00:00
Guy Harris 0c5af0dde6 If we do reassembly and hand the packet to the dissector, and the
dissector says "sorry, I need even more data in this packet", don't flag
that packet as being reassembled in that frame.  Indicate that we should
perhaps do all the "partial reassembly" stuff in
"fragment_set_partial_assembly()", which would obviate the need for the
hack in the TCP dissector.

Clean up indentation.

svn path=/trunk/; revision=15139
2005-07-29 07:14:32 +00:00
Guy Harris 70fb017866 Constify some variables, functions, and structure members to squelch
compiler warnings.

svn path=/trunk/; revision=15138
2005-07-29 03:49:23 +00:00
Guy Harris 8a44823f03 Constify some variables and arguments to squelch compiler warnings.
svn path=/trunk/; revision=15137
2005-07-29 03:48:03 +00:00
Guy Harris ce7154c78a Include <epan/emem.h> to declare ep_alloc().
svn path=/trunk/; revision=15136
2005-07-29 03:47:12 +00:00
Guy Harris c8fc6a8e76 Cast away some (otherwise unremovable, and harmless, in this case)
warnings.

svn path=/trunk/; revision=15135
2005-07-29 03:27:59 +00:00
Ronnie Sahlberg a2142fd8f1 more emeification of tvb_get_string()
svn path=/trunk/; revision=15133
2005-07-28 10:05:37 +00:00
Ronnie Sahlberg df2d1d3f22 ememify some more calls to tvb_get_string()
this fixes an obvious memleak in ms-mms


svn path=/trunk/; revision=15132
2005-07-28 09:56:19 +00:00
Ronnie Sahlberg 0d7a2abbc7 some more memification of tvb_get_string() no obvious memleaks fixed this time :-(
svn path=/trunk/; revision=15131
2005-07-28 09:47:28 +00:00
Ronnie Sahlberg 7035a45c8f ememify some more tvb_get_string() calls
one memleak in vnc related to tvb_get_string() closed.


svn path=/trunk/; revision=15130
2005-07-28 09:35:27 +00:00
Ronnie Sahlberg 69a6b59949 ememify the tvb_get_string() and tvb_fake_unicode() calls in tds
svn path=/trunk/; revision=15129
2005-07-28 09:20:56 +00:00
Ronnie Sahlberg 93c4543207 add an ep version of tvb_fake_unicode()
svn path=/trunk/; revision=15128
2005-07-28 08:55:11 +00:00
Ronnie Sahlberg 34c10c4c7e packet_ber has for some time been doing sanity checking of the BER Length fields
that they are not longer than the reported length of the tvb.

this triggers some bugs since in packet-ber we are a bit too lax in setting reported_length of the tvb_new_subset() tvb.

this cause short kerberos packets to not be decoded at all and the same for other short asn based packets as well.


fix some of these instances.


svn path=/trunk/; revision=15127
2005-07-28 08:18:18 +00:00
Jörg Mayer 34493e8f9e char -> const char warning fixes
svn path=/trunk/; revision=15126
2005-07-28 07:53:38 +00:00
Jörg Mayer f5b39c3ef9 Warning fixes
svn path=/trunk/; revision=15125
2005-07-28 07:51:52 +00:00
Guy Harris 3607e8299d Squelch another qualifier warning.
svn path=/trunk/; revision=15122
2005-07-27 18:38:35 +00:00
Jörg Mayer af5a9d1845 As Guy mentioned: last patch replaced one occurrence too many,
thus the dictionary keyword encrypt was changed from encrypt
to encrypted too. Undo this.

svn path=/trunk/; revision=15121
2005-07-27 18:15:07 +00:00
Jörg Mayer 575c75e5c1 The variable encrypt collides with the declaration in <unistd.h> on
some platforms. Rename encrypt to encrypted.

svn path=/trunk/; revision=15120
2005-07-27 17:52:51 +00:00
Gerald Combs fcd6156423 Move preference initialization to its own routine and make sure it gets run
when we pass "-G defaultprefs" on the command line.

svn path=/trunk/; revision=15119
2005-07-27 16:25:44 +00:00
Jörg Mayer 1fbacc90d3 Revert my previous patch - something else was seriously screwed up
svn path=/trunk/; revision=15118
2005-07-27 16:05:41 +00:00
Jörg Mayer 1a3afc844f gcc-4.0 (GCC) 4.0.2 20050720 (prerelease) (SUSE Linux)
fails when trying to use varargs. Due to a missing include
config.h we were using varargs with proto.h


svn path=/trunk/; revision=15117
2005-07-27 15:08:22 +00:00
Jörg Mayer e46478848e The latest patch used the fields
hf_qos_buf_ac, hf_qos_buf_load and hf_qos_buf_state
but failed to add them to the hf_ array. Commented out their
use for now.

svn path=/trunk/; revision=15116
2005-07-27 13:10:57 +00:00
Jörg Mayer f841f266ec Ankur Aggarwal:
IEEE 802.11 QoS decoding


svn path=/trunk/; revision=15115
2005-07-27 08:28:27 +00:00
Jörg Mayer b8d33c4add Fix >2600 warnings by doing char -> const char changes.
Additionally in dissectors/packet-ansi_map.c:
        Flag unused parameters as such and remove dummy
        param = param;
        statements.

svn path=/trunk/; revision=15114
2005-07-27 07:57:01 +00:00
Guy Harris d05a356383 Squelch another const warning.
svn path=/trunk/; revision=15111
2005-07-27 01:12:44 +00:00
Guy Harris 9b56028ade *Removing* an include is usally not the right way of removing warnings;
if some function takes, for example, a "char *" as an argument, but
you're passing it an "unsigned char *", you don't squelch the warning by
removing the include of the header that declares that function (you then
get warnings about the function not being declared, at least with some
compilers), you put in a cast (if the signedness doesn't matter) or
arrange that you pass a "char *".

svn path=/trunk/; revision=15110
2005-07-27 01:02:03 +00:00
Luis Ontanon 10844226cf Remove two warnings
svn path=/trunk/; revision=15109
2005-07-27 00:45:02 +00:00
Anders Broman bfdffc2c80 Rewrite of MAP_dialouge asn1 code, export and use of functions from gsm_map.
svn path=/trunk/; revision=15106
2005-07-26 20:42:07 +00:00
Gerald Combs 681825d9e9 Fixes from Gisle Vanem.
svn path=/trunk/; revision=15101
2005-07-26 19:11:31 +00:00
Luis Ontanon c5688891a1 new functions:
ep_tvb_memdup()
ep_alloc0()
ep_strsplit()

add all of the ep_ allocators to libethereal.def

svn path=/trunk/; revision=15100
2005-07-26 18:32:12 +00:00
Ulf Lamping 03fb862945 add "BadOutOfService" quality code
svn path=/trunk/; revision=15095
2005-07-26 18:02:42 +00:00
Gerald Combs de2803bc52 Don't add a new data source if we don't have any data.
svn path=/trunk/; revision=15089
2005-07-26 15:59:54 +00:00
Ronnie Sahlberg 9ed0d80bfc add iFCP ELS UNBIND dissection
svn path=/trunk/; revision=15087
2005-07-26 10:01:42 +00:00
Anders Broman 9c99a261f0 From Maynard, Chris :
The attached patches, generated via  svn diff , correct various compiler 

& lint warnings, among them: 

 

lemon.c(2582) : warning C4090: '=' : different 'const' qualifiers

packet-ber.c(212) : warning C4018: '<=' : signed/unsigned mismatch

packet-ber.c(228) : warning C4018: '>=' : signed/unsigned mismatch

packet-bootp.c(2112) : warning C4018: '<' : signed/unsigned mismatch

packet-iscsi.c(801) : warning C4018: '>=' : signed/unsigned mismatch


svn path=/trunk/; revision=15085
2005-07-26 09:52:06 +00:00
Anders Broman fbb92df9f4 Get rid of an unused variable.
svn path=/trunk/; revision=15082
2005-07-26 09:25:46 +00:00
Anders Broman 7e6e7b8b01 From Hannes Gredler:
a patch that adds support for
dissecting packets captured on ML-, LS- and AS PICs
using Multi-link PPP encapsulation,
running JUNOS 7.3 or higher;

additional there i did some clean-up in the
juniper dissector that makes future addition
of JUNIPER_DLTs easier;

svn path=/trunk/; revision=15081
2005-07-26 08:59:32 +00:00
Ronnie Sahlberg 6165bb328f add decoding of ELS iFCP CBIND packets
svn path=/trunk/; revision=15080
2005-07-26 08:47:46 +00:00
Jörg Mayer 7949c7f31c char -> const char warning fixes
svn path=/trunk/; revision=15079
2005-07-26 08:01:16 +00:00
Ronnie Sahlberg 0e9e556e5a From fred hoekstra
New protocol: DEC DNA Routing protocol


svn path=/trunk/; revision=15078
2005-07-26 01:18:25 +00:00
Ronnie Sahlberg 3e8894dd23 iFCP uses one dedicated TCP session per fc-endpoint pair.
The FC D_id and S_id fields in teh FC frame encapsulated inside iFCP unfortunately has "undefined" (semi-random) values    so we can not use th S_/D_id matching in FC when transported atop iFCP.


Change iFCP to call a new  fc_ifcp handler instead of the fc handler.

Add a new handler to FC specific to iFCP. 
Only set the pinfo->src/dst fields to the S_id/D_id fields IFF the FC frame was NOT transported ontop of iFCP.
Othervise  we just use the TCP/IP values that are already stored there.

Some Hosts use RelativeOffset fields for FC.  We can only dissect the RelOff field with offset 0.
Change FC to only call the FCP subdissector if offset==0  when relative offsets are used.


Some hosts when using relative offsets  do not specify a proper value for rxid in teh commands instead htey lkeave it as 0xffff
Change the FCP conversation matching to ignore RXID when searching for a conversation.



svn path=/trunk/; revision=15076
2005-07-26 00:54:16 +00:00
Luis Ontanon 60ae91aa5e Avoid leaking tap info by using emem allocators
svn path=/trunk/; revision=15075
2005-07-25 23:54:02 +00:00
Luis Ontanon 7796905fd8 From Thomas Anders:
SNMP Engine ID dissection according to RFC3411


svn path=/trunk/; revision=15073
2005-07-25 23:33:44 +00:00
Gerald Combs 6fa95413b8 From Ronnie: Offset checking/handling fix.
Fix up whitespace and newlines.

svn path=/trunk/; revision=15072
2005-07-25 23:11:32 +00:00
Ronnie Sahlberg 93a73781ee from aboo
fix  multiple pdus in one segment


svn path=/trunk/; revision=15069
2005-07-25 21:18:58 +00:00
Jörg Mayer 88895e2f02 Warning fixes
svn path=/trunk/; revision=15067
2005-07-25 21:08:14 +00:00
Anders Broman 415359db46 From Morro Roberto :
- bug fixes to the dissectors for the GENERALIZED_UNI and
 LABEL objects
 - improved dissector of flag field for the ERROR object
 - improved LABEL_SET object dissector
 - support for the new (proposed) ASSOCIATION object (see 
 draft-ietf-ccamp-gmpls-recovery-e2e-signaling).
 Moveover find also attached a patch to OSPF that fixes a line 
 of source code lost in the TNA TLV (the code compiled anyway).

svn path=/trunk/; revision=15066
2005-07-25 19:52:08 +00:00
Luis Ontanon caa15f2906 Get rid of a unused variable
svn path=/trunk/; revision=15065
2005-07-25 19:19:34 +00:00
Luis Ontanon a7cee8a93e Make the DLT an option, reduce the number of instances and rename them.
svn path=/trunk/; revision=15064
2005-07-25 19:06:02 +00:00
Luis Ontanon 28de1cec4d Fix the IP address representation string (was inverted on little endians)
svn path=/trunk/; revision=15063
2005-07-25 19:03:57 +00:00
Guy Harris 7a6f0a102c When reassembling a packet, all data, including data with
FD_NOT_MALLOCED set, has to be copied - all FD_NOT_MALLOCED means is
that the fragment's data is part of the old reassembled data, rather
than a malloced chunk of its own (this happens if, after reassembly, the
dissector says more reassembly is necessary, as can happen, for example,
in the case of HTTP and other protocols where reassembly continues until
a terminator is seen).  Not copying the data means that the reassembled
data is, in part, whatever random junk happens to be in the
newly-allocated buffer.

Back out the change not to copy the data, but add some sanity checks, in
the hopes of preventing the crash that caused the change not to copy the
data to be added, and in the hopes of discovering the ultimate source of
that crash and fixing it.

svn path=/trunk/; revision=15057
2005-07-25 18:03:19 +00:00
Gerald Combs 4d666be4b8 Break out of an infinite loop. Fixes bugs 296 and 297.
svn path=/trunk/; revision=15054
2005-07-25 15:43:38 +00:00
Ulf Lamping 4d6daa907c packet-http.c(484) : warning C4101: 'i' : unreferenced local variable
packet-http.c(486) : warning C4101: 'si' : unreferenced local variable
packet-kink.c(628) : warning C4101: 'quick_mode_payloads_length' : unreferenced local variable

svn path=/trunk/; revision=15051
2005-07-25 01:22:03 +00:00
Guy Harris 72560a2e04 Fix indentation.
svn path=/trunk/; revision=15050
2005-07-24 22:01:14 +00:00
Guy Harris 255b302a82 Fix some typoes.
Call "dissect_attribute_value_pairs()" regardless of whether we're
building a protocol tree, so the EAP subdissector is always called.

"dissect_attribute_value_pairs()" is only called when the length of AVPs
in the packet is non-zero; don't bother checking for a zero length.

Don't put two items in for each AVP - one is sufficient.

Add some more length checks when processing AVPs.  Don't require AVPs to
be at least 3 bytes long - they might have just a type and length; let
an exception be thrown if that's a problem.

Don't require that the entire AVP be available in the tvbuff before
processing it; let an exception be thrown as we're processing the AVP if
we don't have all the data, so the stuff before the end is processed.

Give the tvbuff for the AVP data a length that reflects the length of
data left in the tvbuff, so that the appropriate exception is thrown if
the packet was cut short by a snapshot length.

Don't have a fixed-length buffer for reassembled EAP messages; grow it
as necessary.

Don't special-case the initial part of the processing of EAP messages;
put in the standard length item, as well as, for fragments, an item for
the fragment data.

Check for non-consecutive EAP-Message attributes.

Set the columns non-writable while dissecting the EAP message, so
Protocol and Info reflect the RADIUS packet.

Doing the reassembly by gluing together all the consecutive EAP-Message
attributes means we don't need help from the EAP dissector, returning
the total length of the EAP message.  Get rid of the no-longer-needed
eap_fragment dissector; just call the regular EAP dissector.

svn path=/trunk/; revision=15046
2005-07-24 20:39:19 +00:00
Michael Tüxen 200571c143 Fix a typo.
svn path=/trunk/; revision=15044
2005-07-24 19:58:05 +00:00
Guy Harris 554f620001 Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst
warnings.

In the TACACS dissector, clean up the variables used in option parsing
to avoid some const-to-nonconst warnings.

Clean up some white space.

svn path=/trunk/; revision=15043
2005-07-24 19:01:28 +00:00
Guy Harris 72c01a62f8 "fragment_add_common()" isn't used outside this file - make it static.
Move to "show_fragment()" the code to append the fragment information to
the top-level item.

Fix indentation.

svn path=/trunk/; revision=15042
2005-07-24 17:48:10 +00:00
Jörg Mayer cb2d67351c Lars Ruoff:
Use correct offsets to decode bssid in all cases:
        Depending on the packet type the header contains
        up to 4 addresses but may contain less. The position/
        definition of the bssid changes as a result of this.

svn path=/trunk/; revision=15038
2005-07-24 11:35:41 +00:00
Luis Ontanon 3c8376dcf8 register the dissector by name
svn path=/trunk/; revision=15036
2005-07-24 10:32:37 +00:00
Ronnie Sahlberg 699e51ccdd some more ep_tvb_get_string updates
svn path=/trunk/; revision=15034
2005-07-24 04:24:30 +00:00
Luis Ontanon 05c7ac167e Autogenerate the sminmpec.c file from iana's enterprise-numbers file
svn path=/trunk/; revision=15033
2005-07-24 03:36:21 +00:00
Luis Ontanon 411ab7fa9d fix a leak of tap info data by replacing g_strdup with ep_strdup
svn path=/trunk/; revision=15032
2005-07-24 03:05:08 +00:00
Ronnie Sahlberg 9ef6568c56 some more dissectors converted to ep_tvb_get_string
again   at least one obvious memleak was found in the old code



svn path=/trunk/; revision=15031
2005-07-24 03:01:41 +00:00
Luis Ontanon b8a874be21 use ep_alloc instead of statically allocated buffers
svn path=/trunk/; revision=15030
2005-07-24 02:59:17 +00:00
Luis Ontanon 273dc953ea change g_strdup() calls with ep_strdup calls (fixing a significant leakage of tap data)
svn path=/trunk/; revision=15029
2005-07-24 02:56:41 +00:00
Luis Ontanon e9ec2c51aa - change the report_failure dialog for a less painful g_warning
- use ep_alloc for reassemling eap fragments instead of a static buffer
- use ep_strdup_printf() instead of a static buffe to return the cosine's VP/VC AVP label
- add few TODO comments


svn path=/trunk/; revision=15028
2005-07-24 02:53:09 +00:00
Ronnie Sahlberg 835df3a1d2 convert some uses of tvb_get_string() to ep_tvb_get_string()
there was at least one obvious memleak in one of the uses of tvb_get_string()



svn path=/trunk/; revision=15027
2005-07-24 02:43:41 +00:00
Luis Ontanon 910f98eb86 Replace two calls to tvb_get_string with the new ep_tvb_get_string (this fixes a leak I introdduced at the last checkin)
remove the stat_infos PtrArray as we do not need to free our tap data anymore, YEAH!


svn path=/trunk/; revision=15026
2005-07-24 02:43:20 +00:00
Ronnie Sahlberg 0d385f730f add
ep_tvb_get_string
that acts the same as tvb_get_string   but the buffer returned need not be freed.



svn path=/trunk/; revision=15024
2005-07-24 01:56:01 +00:00
Luis Ontanon 4f5c0a8cb2 move the stats_tree tap into the http dissector (not anymore in the plugin)
change several calls to g_memdup into ep_strndup, fix the free calls


svn path=/trunk/; revision=15022
2005-07-24 01:42:41 +00:00
Luis Ontanon 2803839cba I believe we should use DISSECTOR_ASSERT instead of g_assert.
fix and clean g_strdup_printf()


svn path=/trunk/; revision=15019
2005-07-24 01:21:38 +00:00
Luis Ontanon d9c2273262 add some utility functions that use ep_alloc instead of g_malloc.
ep_memdup
ep_strdup
ep_strndup
ep_strdup_printf


svn path=/trunk/; revision=15018
2005-07-24 00:29:57 +00:00
Jörg Mayer 30a8557868 More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
2005-07-23 11:41:25 +00:00
Jörg Mayer c5ab5374c2 Some more 'char*' -> 'const char*' changes
svn path=/trunk/; revision=15013
2005-07-23 06:53:59 +00:00
Jörg Mayer cd0744efd1 Add includes to fix warnings of type
gencode.c:383: warning: no previous declaration for
                        'dfw_interesting_fields'

svn path=/trunk/; revision=15012
2005-07-23 06:51:57 +00:00
Jörg Mayer fd9291e9c6 Move declaration of sttype_register_* functions from
syntax-tree.c to syntax-tree.h.

This fixes some warning of type
sttype-integer.c:33: warning: no previous declaration for
                                'sttype_register_integer'


svn path=/trunk/; revision=15011
2005-07-23 06:49:07 +00:00
Jörg Mayer fc4a2ddfe0 Move declaration of void ftype_register_* to ftypes-int.h.
This fixes some warnings like
ftype-bytes.c:52: warning: no previous declaration for 'bytes_fvalue_free'


svn path=/trunk/; revision=15010
2005-07-23 06:21:17 +00:00
Jörg Mayer 23486b484e Fix lots of warnings of type:
ftypes.c:257: warning: passing argument 1 of 'logfunc' discards
                        qualifiers from pointer target type
by changing 'char*' -> 'const char*'

svn path=/trunk/; revision=15009
2005-07-23 06:19:08 +00:00
Luis Ontanon 10f8560838 avoid a crash when tree is null
svn path=/trunk/; revision=15008
2005-07-23 02:07:02 +00:00
Ronnie Sahlberg ab0698d089 ICMP MPLS updates and a new preference option from
Brice Augustin and Maria-Luiza



svn path=/trunk/; revision=15007
2005-07-23 00:46:14 +00:00
Ronnie Sahlberg 6aaaedd633 we no longer need to g_free() teh string returned by dissect_rpc_string.
when checking the calls in packet-ndmp.c  we must have had a memleak there since it never freed those strings.



svn path=/trunk/; revision=15005
2005-07-23 00:22:02 +00:00
Ronnie Sahlberg c13d85f62d include stdlib instead of malloc.h
svn path=/trunk/; revision=15004
2005-07-22 23:38:51 +00:00
Ronnie Sahlberg 01206d0bd4 recode tvb_memdup() into more efficient emem fucntions.
Now that we dont have to  free() the memory explicitely we got rid of a few unnessecary g_strdup() as well.



svn path=/trunk/; revision=15003
2005-07-22 23:33:12 +00:00
Anders Broman d6babe2f76 No longer needed
svn path=/trunk/; revision=15002
2005-07-22 23:12:26 +00:00
Anders Broman 896131ebf1 From Martin Mathieson:
Collapsed the control and data protocols into dissector to cope with commands and data over the same TCP connection.  I've also prettified things a bit and now decoded a few more command parameters.

svn path=/trunk/; revision=15001
2005-07-22 23:11:11 +00:00
Ronnie Sahlberg fd34c9df89 recode the tvb_memdup() to use emem calls.
svn path=/trunk/; revision=15000
2005-07-22 23:04:52 +00:00
Ronnie Sahlberg badb5a40a3 remove a redundant tvb_memdup() and fix a potential buffer overflow at the same time.
svn path=/trunk/; revision=14999
2005-07-22 22:56:08 +00:00
Ronnie Sahlberg 336b300d03 replace one tvb_memdup() with a tvb_memcpy() using an automatically freed emem buffer
svn path=/trunk/; revision=14998
2005-07-22 22:45:36 +00:00
Jörg Mayer e1c6d9ac3d Fix some warnings (and one of my previous 'fixes')
svn path=/trunk/; revision=14997
2005-07-22 17:57:40 +00:00
Jörg Mayer 5731769818 Set svn:keywords and svn:eol-style
svn path=/trunk/; revision=14996
2005-07-22 17:55:47 +00:00
Gerald Combs 5800e255ef Fix a potential memory leak.
svn path=/trunk/; revision=14993
2005-07-22 15:51:20 +00:00
Anders Broman 418092ce05 From Graham Bloice
updates.

svn path=/trunk/; revision=14992
2005-07-22 15:20:57 +00:00
Anders Broman 2f08559cda From Maynard, Chris.
svn path=/trunk/; revision=14991
2005-07-22 13:37:19 +00:00
Anders Broman 120e20801e Use NULL intead of "" in all calls to packet-gsm_a.c
svn path=/trunk/; revision=14989
2005-07-22 08:56:41 +00:00
Anders Broman 3e7c25ba16 Add ep_init_chunk.
svn path=/trunk/; revision=14988
2005-07-22 08:55:06 +00:00
Ronnie Sahlberg 070351d090 convert all other nasty "rotating static array" from to_str.c and make them use the new emem api.
svn path=/trunk/; revision=14987
2005-07-22 08:27:20 +00:00
Jörg Mayer f67b00ad9a More 'char*' -> 'const char*' warning fixes
svn path=/trunk/; revision=14986
2005-07-22 07:55:51 +00:00
Jörg Mayer eb1ff24278 Beginning of radiotap's header dissection
svn path=/trunk/; revision=14985
2005-07-22 07:54:18 +00:00
Ronnie Sahlberg c841beb71b EMEM : a simple and FAST api to allocate memory that will be automatically freed() when the next packet is dissected.
This offesr memory allocation with a packet  scope making memory leaks less likely and memory management faster.


Add initialization calls for both tethereal and ethereal.

Convert the ip_to_str() function to use this and avoid doing the silly rotating buffers thing it previously did.


We also need an equivalent set of functions for allocation with capture file scope (free when next capture is loaded) but i dont know where to put the free_all call.



svn path=/trunk/; revision=14984
2005-07-22 07:46:58 +00:00
Ronnie Sahlberg 762fc4f4eb fix some bugs in a value string
this fixes bug 291



svn path=/trunk/; revision=14983
2005-07-22 02:07:43 +00:00
Ronnie Sahlberg 0138306bc7 fix for bug 290
v2 exchange code 37 is "INFORMATIONAL"



svn path=/trunk/; revision=14982
2005-07-22 02:00:04 +00:00
Gerald Combs c9bc1edd92 When trying to handle gzip-compressed data, don't seek past the end of our
compressed data buffer.  Fixes bug 288.

svn path=/trunk/; revision=14981
2005-07-21 21:40:57 +00:00
Ronnie Sahlberg 0ca30abe65 change the symbol dissect_ber_CHOICE back into dissect_ber_choice
svn path=/trunk/; revision=14980
2005-07-21 21:12:09 +00:00
Jörg Mayer 2280b847f9 More warining fixes: char -> const char
svn path=/trunk/; revision=14976
2005-07-21 17:23:29 +00:00
Jörg Mayer 553402acbf More warining fixes: char -> const char
svn path=/trunk/; revision=14975
2005-07-21 17:21:48 +00:00
Jörg Mayer fb0b83fedf One forgotten warning fix
svn path=/trunk/; revision=14974
2005-07-21 17:17:16 +00:00
Jörg Mayer 9bed71737c small warning fixes
svn path=/trunk/; revision=14973
2005-07-21 17:04:10 +00:00
Ulf Lamping 05f0ad566e "fix" bug #244: the implementation was correct but a bit hard to understand. I've added some small explanations, so it should be understandable somewhat better
svn path=/trunk/; revision=14972
2005-07-20 22:11:48 +00:00
Gerald Combs 0de3a392be In packet-gsm_a.c:
- Make sure every function that has an "add_string" argument, make sure
    it isn't NULL before we write to it.
    a null "add_string".
  - Use "_U_" instead of "add_string = add_string" to squelch compiler
    warnings.
  - Fix other compiler warnings.

In packet-uma.c, pass NULL instead of "" for the add_string argument to
de_mid().  Fixes bug 287.

svn path=/trunk/; revision=14971
2005-07-20 20:57:04 +00:00
Jörg Mayer 32b4bac3cc Convert the result of tvb_get_guint8 to (gint8) so that the display
as FT_INT32 shows a negative number if appropriate.

Is there a better way to solve this?
Does this problem occur in other places too?

svn path=/trunk/; revision=14970
2005-07-20 15:08:29 +00:00
Ronnie Sahlberg 10856f2f9a prettify the HW type and address printouts slightly.
svn path=/trunk/; revision=14969
2005-07-20 12:20:56 +00:00
Jörg Mayer 830d555224 Fix: packet-dis-enums.h:248: warning: comma at end of enumerator list
svn path=/trunk/; revision=14968
2005-07-20 12:05:14 +00:00
Ronnie Sahlberg 9de2aaec7c add proper decoding and presentation of domain strings in dhcpv6
this fixes bug 273


svn path=/trunk/; revision=14967
2005-07-20 11:44:57 +00:00
Jörg Mayer ca322883d6 Change proto_register_protocol to use 'const char*' instead of 'char*'
svn path=/trunk/; revision=14966
2005-07-20 11:01:35 +00:00
Ronnie Sahlberg 568266283e fix for bug 285
decode isakmp nat keepalive packets properly


svn path=/trunk/; revision=14964
2005-07-20 07:51:24 +00:00
Gerald Combs 570d352948 Move Win32-specific variable declaration to the beginning of a function.
Fixes a recent buildbot failure.

svn path=/trunk/; revision=14962
2005-07-19 22:24:28 +00:00
Ulf Lamping e8939e1f60 fix three doxygen warnings
svn path=/trunk/; revision=14959
2005-07-19 20:49:28 +00:00
Ronnie Sahlberg 3febc9f180 From Aboo
New protocol :    iFCP   protocol


svn path=/trunk/; revision=14957
2005-07-19 20:45:17 +00:00
Ulf Lamping 47d503303c from Graeme Hewson: "Fixes for ethereal config files"
svn path=/trunk/; revision=14956
2005-07-19 20:44:45 +00:00
Anders Broman 05e8481eed Fix an unpack_digits off by one error.
svn path=/trunk/; revision=14954
2005-07-19 19:48:02 +00:00
Ronnie Sahlberg 9f6a3801d9 minor fix to add required alignment for AueryPathInfo level 0x107
it decodes "better"   but might still be broken since none of the packets I have match any of the "standards"




svn path=/trunk/; revision=14952
2005-07-19 08:58:20 +00:00
Guy Harris 1dd2e0e8f4 DIS packets must be at least 12 bytes long. DIS uses port 3000, by
default, but the Cisco Redundant Link Management protocol can also use
that port; RLM packets are 8 bytes long, so we use this to distinguish
between them.

svn path=/trunk/; revision=14950
2005-07-18 09:55:54 +00:00
Gerald Combs 210deaf2cd Tweak the previous fix.
svn path=/trunk/; revision=14947
2005-07-17 22:30:56 +00:00
Gerald Combs 141f8341af Make the recent RADIUS changes work on IA64.
svn path=/trunk/; revision=14946
2005-07-17 22:16:59 +00:00
Jörg Mayer a795443a0f Add radius_dict.c to DISTCLEAN
svn path=/trunk/; revision=14945
2005-07-17 13:55:46 +00:00
Ulf Lamping 84424bb2da add radius_dict.c to the distclean target, don't know how to do this for Makefile.am
svn path=/trunk/; revision=14944
2005-07-17 13:39:24 +00:00
Guy Harris c0e24d4fff Fix the RCS ID.
svn path=/trunk/; revision=14942
2005-07-17 08:39:51 +00:00
Anders Broman c5a8a019e0 Update to the new per signatures.
svn path=/trunk/; revision=14941
2005-07-16 21:34:19 +00:00
Anders Broman c0de9d912b Remove some unused variables.
svn path=/trunk/; revision=14940
2005-07-16 19:59:21 +00:00
Anders Broman 53ff940b13 Remove an unused export
svn path=/trunk/; revision=14939
2005-07-16 19:58:23 +00:00
Guy Harris 3227fab080 List the new "packet-radius.h" file so it's included in the tarball.
svn path=/trunk/; revision=14938
2005-07-16 06:20:56 +00:00
Guy Harris 9859c05fbc Get rid of the newline between "radius:" and the error when trying to
read the RADIUS directory.

The error string from "radius_load_dictionary()" is g_malloced; free it,
and g_strdup the "Could not find the radius directory" error, so we
don't have to worry about constant vs. g_malloced strings.

svn path=/trunk/; revision=14937
2005-07-16 01:55:58 +00:00
Guy Harris 8e4007ef27 Throw in some casts to squelch warnings, at least with some compilers
(the values are const because nobody's supposed to modify them once
they've been allocated, but they *can* be freed - by us - when we're
done with them).

svn path=/trunk/; revision=14936
2005-07-16 01:33:22 +00:00
Ronnie Sahlberg ee55c8a608 new protocol
RFC3770   Wlan Certificate Extensions


svn path=/trunk/; revision=14935
2005-07-16 01:04:36 +00:00
Guy Harris 8935861396 epan/dissectors/packet-gtp.h has rung down the curtain and joined the
Choir Invisible.

svn path=/trunk/; revision=14933
2005-07-16 00:37:44 +00:00
Guy Harris 724a42adbe Fix the RCS ID.
svn path=/trunk/; revision=14931
2005-07-16 00:26:07 +00:00
Luis Ontanon 440f4871b5 propset and fix the filename
svn path=/trunk/; revision=14929
2005-07-15 21:45:34 +00:00
Luis Ontanon 910f6f94ac forgot to add the (c) notice
svn path=/trunk/; revision=14928
2005-07-15 21:41:47 +00:00
Luis Ontanon 07cc608f6a register the dissector by name
svn path=/trunk/; revision=14927
2005-07-15 21:32:12 +00:00
Luis Ontanon 853501a452 Radius Dictionary Support
Part 3: the makefiles


svn path=/trunk/; revision=14926
2005-07-15 21:18:32 +00:00
Luis Ontanon 9c341a333d Radius Dictionary Support
Part 2: the code

svn path=/trunk/; revision=14925
2005-07-15 21:12:27 +00:00
Anders Broman 4a1213344d Updare Id, and a comment.
svn path=/trunk/; revision=14922
2005-07-15 20:26:36 +00:00
Tomas Kukosa 1374231148 - PER helper functions for SET/SEQUENCE OF dissection were changed to have prototype similar to BER (per_sequence_t is used as parameter)
- asn2eth was updated to support new PER helper functions for SET/SEQUENCE OF
- #.FN_PARS implemented for SET/SEQUENCE OF and REAL
- PER SET/SEQUENCE OF field can be FT_UINTxx to display number of items
- PER dissectors regenerated

svn path=/trunk/; revision=14921
2005-07-15 15:20:40 +00:00
Anders Broman a5e89b2793 Packet-gtp.c - Fix up decoding of the rest of the IE:s use routines from packet-gsm_a.c
Packet-uma.c Let packet-gsm_a handle som IE dissection.
Packet-gsm.a add some IE dissection and export some routines.

svn path=/trunk/; revision=14918
2005-07-14 21:05:38 +00:00
Ronnie Sahlberg 98a0c9a590 ISAKMP version2 has changed the payload format of a CertificateRequest.
In version 2 this is just a concatenation of 20 byte SHA-1 hashes with no other encxapsulation.

this resolves bug 281




svn path=/trunk/; revision=14917
2005-07-14 08:10:30 +00:00
Luis Ontanon df4cce353b fix a string
svn path=/trunk/; revision=14915
2005-07-13 23:40:06 +00:00
Anders Broman 383564aff0 From Ilya Konstantinov :
fixes a tiny bug which caused the boolean fields not to refer to the same offset as their 
parent.

svn path=/trunk/; revision=14914
2005-07-13 21:38:07 +00:00
Ronnie Sahlberg 618724969c convert two other autogenerated dissectors to use FT_GUID
svn path=/trunk/; revision=14913
2005-07-13 08:24:05 +00:00
Ronnie Sahlberg 3905fca8bc make idl2eth generate FT_GUID hf fields for uuid_t and GUID types.
make dissect_dcerpc_uuid_t() accept eitehr FT_STRING (old style) and FT_GUID (new style) hf fields. once all dissectors are modified to use FT_GUID we can remove the FT_STRING support here.

regenerate the DRSUAPI interface with the new FT_GUID support.




svn path=/trunk/; revision=14912
2005-07-13 08:00:15 +00:00
Anders Broman 43c0144b8e From Ilya Konstantinov :
A patch to the AIM dissector to support Client Auto Response messages. I still don't know the meaning of all the fields as they weren't all mapped but this patch decodes all the important ones.

svn path=/trunk/; revision=14911
2005-07-13 05:06:38 +00:00
Ulf Lamping 1788358c55 code cleanup: use "correct" proto_tree_add_... functions for li and tpdu code fields
svn path=/trunk/; revision=14910
2005-07-12 21:21:14 +00:00
Ulf Lamping 6424332af2 add some more textual explanations of the protocol and it's fields
svn path=/trunk/; revision=14909
2005-07-12 21:09:34 +00:00
Anders Broman 70522b125b Fix decoding of quintuplets.
svn path=/trunk/; revision=14907
2005-07-12 20:30:33 +00:00
Jörg Mayer 9806180700 Add value for FCS (no decoding).
Fix a signedness warning.

svn path=/trunk/; revision=14905
2005-07-12 17:06:09 +00:00
Jörg Mayer e7c4db81c1 Remove/replace SPACES at the beginning of Makefile.am/Makefile.common
files as not all make implementation work with this.

Found by running
grep '^ ' `find . -name "Makefile.am" -o -name "Makefile.common"`

Gerald: Maybe adding this to the buildbot would be a good idea after all.

svn path=/trunk/; revision=14904
2005-07-12 12:44:42 +00:00
Guy Harris 2fcce4b6c4 Fix some more signed vs. unsigned warnings.
svn path=/trunk/; revision=14903
2005-07-12 01:01:19 +00:00
Guy Harris ef1bfb6f9b In NTLMSP_AUTH messages, include the domain name and user name in the
Info column.

svn path=/trunk/; revision=14902
2005-07-11 22:48:51 +00:00
Anders Broman 1484c99e0f DIS dissection
svn path=/trunk/; revision=14900
2005-07-11 22:23:57 +00:00
Anders Broman a063532343 From Jeremy j Ouellette:
DIS dissection.

svn path=/trunk/; revision=14899
2005-07-11 22:23:15 +00:00
Anders Broman 43e9a11b11 Dissect some more fields
svn path=/trunk/; revision=14897
2005-07-11 19:25:25 +00:00
Guy Harris 79beab421d Put the data (print job contents) in LPD requests under the LPD protocol
item, rather than making it a top-level item.

svn path=/trunk/; revision=14893
2005-07-10 09:26:20 +00:00
Jörg Mayer 5b442f2279 After doing "make maintainer-clean", "svn status --no-ignore | grep ^I"
returned quite a list of files. Add them to MAINTAINERCLEANFILES.

Whitespace changes (replace multiple spaces by TABs, in a few cases this
needed to be done at the beginning of Makefile lines.


svn path=/trunk/; revision=14891
2005-07-10 08:04:27 +00:00
Ronnie Sahlberg 85f38ef5fa For packets flagged as Retransmission
calculate RTO as the delta between the retransmitted frame and the last previous frame seen for this session (in the same direction).

while this is technically not the RTO  this delta is in most cases more important/useful than the tru RTO anyway since this measure represents the amount of thiime that the link went idle  while waiting for an RTO.




It would be nice with a statistics tap for TCP where one couls see, seeion by session :
Length in time of the session.
Total bytes transferred
Number of retransmissions
Time spent waiting for an RTO
Time spent waiting for an RTO in % of the total time.




svn path=/trunk/; revision=14890
2005-07-10 05:27:38 +00:00
Guy Harris 8647bbf353 Make a bunch of items in encryption code arrays of guint8, and make some
pointers either "void *" or "guint8 *", to reduce the level of compiler
warnings (the data in question is largely binary in those cases).

svn path=/trunk/; revision=14886
2005-07-09 03:25:25 +00:00
Guy Harris 34ae8c850f Fix up a bunch of arguments to "dissect_ber_identifier()" to match its
current signature ("class" is a "gint8 *", not a "guint8 *", and "tag"
is a "gint32 *", not a "guint32 *").  Re-generate the dissectors from
the ASN.1 and the .cnf files in the cases where the arguments were fixed
in a .cnf file.

Give some dissectors the right svn:keywords and svn:eol-style settings.

svn path=/trunk/; revision=14885
2005-07-09 02:58:07 +00:00
Guy Harris 9cb86fda9c Squelch various signed vs. unsigned warnings by:
making pointers to byte data be "guint8 *" rather than "char *",
	and making buffers holding byte data arrays of "guint8" rather
	than arrays of "char";

	making pointers to text strings "char *" rather than "guchar *";

	appropriately casting pointers (cast to "guint8 *" when passing
	to routines expecting "guint8 *" or when assigning to "guint8
	*");

	making port-number preferences "guint";

	making enum preferences "gint";

	making hf_ variables "int".

Clean up white space.

svn path=/trunk/; revision=14884
2005-07-09 00:53:17 +00:00
Guy Harris da80656d0e MAC addresses are arrays of bytes, not strings; make the destination MAC
address an array of guint8 - that squelches some compiler warnings.

Use -1 rather than tvb_length(tvb) to make the item for LWAPP go to the
end of the tvbuff.

svn path=/trunk/; revision=14883
2005-07-09 00:47:57 +00:00
Guy Harris a05302b67a Find the BitTorrent dissector immediately after registering it, and save
the handle, rather than finding it every time we need it.

Just make a guint8 array with the BitTorrent magic string length
followed by the string, and use "tvb_memeql()" to test against that - it
handles checking to make sure there's enough data in the tvbuff (if
not, it returns -1 as a "no match" indication) and then checks all of
the first 20 bytes in one operation.

Clean up white space.

svn path=/trunk/; revision=14882
2005-07-09 00:44:44 +00:00
Guy Harris 68b1ab41d7 Use "tvb_get_string()" rather than duplicating its functionality by
hand.

Use "g_strdup()" rather than duplicating its functionality by hand.

Make the magic number an array of "guint8", as "tvb_memeql()" expects a
pointer to "guint8".

svn path=/trunk/; revision=14881
2005-07-09 00:35:13 +00:00
Ulf Lamping 2c30357c48 checksum messages: use "[correct]" instead of "(correct)" and other "alike" messages
svn path=/trunk/; revision=14880
2005-07-08 22:11:13 +00:00
Anders Broman c50d7e229e Add some missing IMPLICIT tags, and use FN_PARS directive.
Add disection of some RR elements and command Handover.

svn path=/trunk/; revision=14878
2005-07-08 20:01:11 +00:00
Guy Harris f64a0aa20b Get rid of most unused arguments and variables (including some that are
set but not used).  (Leave "pi" around so the warning acts as a reminder
that the tap structure stuff needs a cleanup - currently, the tap
structures aren't freed; perhaps the new memory allocation scheme
proposed by Ronnie could be used for tap structures.)

Have "ac_istrace()" return NOT_ACTRACE for apparently non-actrace
packets and return the packet type for actrace packets, so that we don't
need a global variable for the packet type.

Make "actrace_udp_port" unsigned to squelch a signed vs. unsigned
warning.

Use "col_set_str()" rather than "col_add_str()" when setting the
Protocol column.

We don't recognized packets as CAS packets unless they're 48 bytes long,
so we don't need to test whether they're 48 bytes long in the CAS packet
dissection code.

Use the reported length, not the captured length, when doing length
checks.

svn path=/trunk/; revision=14874
2005-07-08 02:31:45 +00:00
Gerald Combs 5b7df3128b Make sure "which" is present before we verify our tools. Add "env" to
the list of programs to check.  Make sure our python scripts start with
"#!/usr/bin/env python" as recommended at

  http://www.python.org/doc/faq/library.html#how-do-i-make-a-python-script-executable-on-unix

svn path=/trunk/; revision=14871
2005-07-07 21:26:09 +00:00
Guy Harris e2d750eab5 Add a cast to SET_ADDRESS() to squelch GCC4 "differ in signedness"
warnings.  Use SET_ADDRESS in the VOIP calls code, rather than
explicitly filling in "pstn_add".

svn path=/trunk/; revision=14867
2005-07-07 04:03:35 +00:00
Ulf Lamping 2f2ab41ea4 fix *several* dissector bugs, found by private fuzz-tests
svn path=/trunk/; revision=14861
2005-07-05 22:33:22 +00:00
Gerald Combs 8434647836 Call proto_tree_add_guid_hidden() for an FT_GUID value. Fixes bugs 274,
276, and 277.

svn path=/trunk/; revision=14859
2005-07-05 20:20:15 +00:00
Gerald Combs 276f179b0b Don't crash if we're handed a zero-length fragment. Fixes bug 272. Although
we don't crash now, we still don't handle zero-length fragments correctly.

svn path=/trunk/; revision=14858
2005-07-05 20:04:03 +00:00
Tomas Kukosa b579d77b9a GUID lowercase form seems to be preferred
svn path=/trunk/; revision=14855
2005-07-05 18:55:17 +00:00