Commit Graph

6965 Commits

Author SHA1 Message Date
Guy Harris f88816e60f Add WTAP_ENCAP_FRELAY_WITH_PHDR for use with Frame Relay capture files
that have direction information.

Support writing WTAP_ENCAP_FRELAY_WITH_PHDR and WTAP_ENCAP_PPP_WITH_PHDR
captures out in libpcap format - we throw away the direction
information, but so it goes.

When reading/writing Windows Sniffer format, read and write the
direction flag.

svn path=/trunk/; revision=7052
2003-01-31 01:02:14 +00:00
Tim Potter 1c898c8a11 Fixed memory leak in dissect_unistr2().
Fixed double free bug in GetPrinterData occuring when applying a filter.

Cleaned up same bit of code in OpenPrinterEx.

svn path=/trunk/; revision=7051
2003-01-30 23:41:28 +00:00
Tim Potter 3405e80d33 Don't append string to upper-level proto_items if item == NULL.
svn path=/trunk/; revision=7050
2003-01-30 22:42:57 +00:00
Guy Harris 60e77fd780 The MemberType field in various bindery operations is 2 bytes, not 1
byte or 4 bytes.

svn path=/trunk/; revision=7049
2003-01-30 22:39:51 +00:00
Guy Harris 3f0e5dad19 Add support for writing Frame Relay files in NetXRay format 2.x.
svn path=/trunk/; revision=7048
2003-01-30 22:38:47 +00:00
Laurent Deniel 41f553295b Remove unprotected use of GCC __attribute__ in an unused #define
svn path=/trunk/; revision=7047
2003-01-30 22:25:03 +00:00
Guy Harris c71ab1ad32 Put in URLs for copies of the now-expired I-D for MSN Messenger, and a
note that it really should be dissected like other FTP-flavored
protocols.  (Or is that "SMTP-flavored"?  Which was the first Internet
protocol to have that "command/response-with-3-digit-error-code" form?)

svn path=/trunk/; revision=7046
2003-01-30 19:00:10 +00:00
Guy Harris ee3449d08b From Chris Waters: MSN Messenger support.
svn path=/trunk/; revision=7045
2003-01-30 18:49:47 +00:00
Jörg Mayer 758685ca0d AC_ARG_ENABLE takes 4 argument: The 3rd specifies what to do in case a
configure option is given on the command line. The value of the arguement
is passwd in the enableval variable. The 4th argument tells what to do in
case no command line argument was given.
This causes --disable-gtk2 (which is the default) to behave differently
from the case when no option is given.
I do not really understand where the difference in the behaviour of the
generated codes comes from, but I definitely see a difference.

Fixed all occurrences where the 3rd arguement was empty.

svn path=/trunk/; revision=7044
2003-01-30 10:20:47 +00:00
Guy Harris 5dc66497b7 Generalize "cb_str_postprocess()" to allow the string to be appended to
items N levels up from the item being processed, and use that to
decorate the tree as it was decorated before.

svn path=/trunk/; revision=7043
2003-01-30 08:19:39 +00:00
Guy Harris f2861263ec FT_STRING and FT_STRINGZ have no base, so use BASE_NONE.
The payload isn't a text string, it's an array of bytes; make it
FT_BYTES, not FT_STRING.

svn path=/trunk/; revision=7042
2003-01-30 08:11:20 +00:00
Guy Harris fc025eb3b8 NDR strings begin with a uint32, so they start on a 4-byte boundary.
svn path=/trunk/; revision=7041
2003-01-30 06:08:10 +00:00
Tim Potter 497042348b Display random useful tidbits in COL_INFO.
svn path=/trunk/; revision=7040
2003-01-30 05:38:56 +00:00
Tim Potter 1d68476f15 Factor out srvsvc_dissect_pointer_UNICODE_STRING() and replace it with
calls to our dissect_ndr_str_pointer_item() helper function.

svn path=/trunk/; revision=7039
2003-01-30 05:35:10 +00:00
Guy Harris 4c3b13dd11 Get rid of the "sap_server_ident" structure - just fetch stuff from that
structure in the packet as required.

The server name in that structure is not necessarily null-terminated;
use "%.48s", not "%s", to print it.

svn path=/trunk/; revision=7038
2003-01-30 05:21:34 +00:00
Tim Potter 448023934d Clean up the handling of null buffers in getprinter, getform,
getjob and getprinterdriver2.

svn path=/trunk/; revision=7037
2003-01-30 05:11:33 +00:00
Tim Potter d486235430 Put the computer_name in COL_INFO when dissecting a
BROWSE_REQUEST_ANNOUNCE packet.

svn path=/trunk/; revision=7036
2003-01-30 04:51:30 +00:00
Laurent Deniel 477e939a4e Add some missing specific configure options.
svn path=/trunk/; revision=7035
2003-01-29 22:55:05 +00:00
Guy Harris 60f5f856fd Fix a couple of checks for families with renamed preferences.
svn path=/trunk/; revision=7034
2003-01-29 21:27:36 +00:00
Jörg Mayer fb2884ff99 Add the FAQ to the help menu
svn path=/trunk/; revision=7033
2003-01-29 12:58:48 +00:00
Guy Harris 297fa30af2 From Huagang Xie: more robust parsing for illegal SSH packet.
svn path=/trunk/; revision=7032
2003-01-29 07:03:39 +00:00
Guy Harris 3b6d2f5df9 More completely explain the "name" argument to the
"prefs_register_XXX_preference" routines, to note that it should *NOT*
include the protocol name - the protocol name is automatically prepended
to it, with a "." separator, as the preference is registered in a module
whose name is that of the protocol.

svn path=/trunk/; revision=7031
2003-01-29 00:39:02 +00:00
Guy Harris 231f28ce08 Panic if a preference starts with the name of the module to which it
belongs, as that's redundant.

Fix a bunch of cases where that was done, and map the old name to the
new name.

Instead of marking "mtp3.mtp3_standard" as obsolete, map it to
"mtp3.standard".

svn path=/trunk/; revision=7030
2003-01-28 23:56:40 +00:00
Tim Potter 081f25299f Removed some out of date comments.
svn path=/trunk/; revision=7029
2003-01-28 23:26:11 +00:00
Laurent Deniel 327767a838 * Fix compilation errors with some installation of NET-SNMP
* Fix some compilation warnings (conservative changes here)

svn path=/trunk/; revision=7028
2003-01-28 22:53:22 +00:00
Tim Potter b846a41c05 Cleanup of filterable fields for printer data and devicemodes.
Added a stack of value_strings for devicemode fields that didn't
have them already.

svn path=/trunk/; revision=7027
2003-01-28 22:51:54 +00:00
Tim Potter d35211cc8b Added constants for devicemode value_strings.
svn path=/trunk/; revision=7026
2003-01-28 22:49:19 +00:00
Guy Harris e5d7b5dff7 Get rid of the extra "pcli." in the "pcli.pcli.udp_port" preference.
Map "pcli.pcli.udp_port" to "pcli.udp_port".

svn path=/trunk/; revision=7025
2003-01-28 22:27:20 +00:00
Guy Harris effa1b3a7c Add the MEGACO and PCLI plugins.
svn path=/trunk/; revision=7024
2003-01-28 22:18:06 +00:00
Guy Harris e82619ca3a Booleans are 1 byte, not 4 bytes.
svn path=/trunk/; revision=7023
2003-01-28 22:02:26 +00:00
Michael Tüxen 3bae16fc66 Minor corrections and modifications.
svn path=/trunk/; revision=7022
2003-01-28 20:08:36 +00:00
Guy Harris 5f09391096 Thou shalt not cast pointers of unknown alignment to pointers to
multi-byte integral quantities and blithely dereference them, lest thou
enrage those of us who work on machines that trap on unaligned
references.

svn path=/trunk/; revision=7021
2003-01-28 18:35:40 +00:00
Guy Harris 7d46021720 Do the usual "isprint()" workaround for versions of GTK+ that assume
UTF-8 strings.

svn path=/trunk/; revision=7020
2003-01-28 16:31:03 +00:00
Guy Harris 77b96651e2 From Huagang Xie: SSH version 1 support.
svn path=/trunk/; revision=7019
2003-01-28 16:21:26 +00:00
Tim Potter 8af5b67b4e Convert dissector to callback based version of dissect_ndr_pointer().
This fixes a bunch of neat stuff that was broken after the conversion
to the dissect_ndr_* functions like printer handle tracking by name
and many COL_INFO things.

svn path=/trunk/; revision=7018
2003-01-28 06:42:20 +00:00
Tim Potter 1d6acba45c Convert dissector to callback based version of dissect_ndr_pointer().
Strings that used to call with levels != -1 should call the
callback helper which will append the string to the pointer item.

svn path=/trunk/; revision=7017
2003-01-28 06:39:41 +00:00
Tim Potter 6114714a5c Defined a useful callback function for dissect_ndr_pointer() which can
be used to help out in most DCERPC strings.  The cb_str_postprocess()
function reads the callback_args and either appends the value of the
string to the COL_INFO field, appends it to the NDR pointer item, or
saves the string to dcv->private_data.  Calling cb_str_postprocess()
with CB_STR_ITEM is the same as calling dissect_ndr_pointer() with
levels = 0.

Renamed some of the pointer dissection functions with a suffix of _cb
and created helpers of the original which call the _cb function with
NULL args.  This should help minimise the amount of code changes in
the bulk of the DCERPC dissectors.

svn path=/trunk/; revision=7016
2003-01-28 06:27:01 +00:00
Tim Potter 2bccc6dcf0 Replace the 'levels' argument to dissect_ndr_pointer() with a callback
function and a void * callback args.  The callback is executed after
the dissection of the ndr pointer buffer which may be called,
depending on the number of pointers in the structure, after the return
of the dissect_ndr_pointer() call.

The callback function is of type:

void (dcerpc_callback_fnct_t)(packet_info *pinfo, proto_tree *tree,
proto_item *item, tvbuff_t *tvb, int start_offset, int end_offset,
void *callback_args);

where the proto tree and item are the tree and item created by
dissect_ndr_pointer() and the tvb plus offsets are the buffer pointed
to by the pointer.

svn path=/trunk/; revision=7015
2003-01-28 06:17:09 +00:00
Guy Harris d798b5065d From Akira Endoh: BGP support for draft-ietf-idr-as4bytes-06.txt and
draft-ietf-idr-dynamic-cap-03.txt.

Fix his AUTHORS entry to put the (presumed) given name first and family
name last.

svn path=/trunk/; revision=7014
2003-01-28 05:25:18 +00:00
Guy Harris 3fc16d1496 Fix a similar problem in the RFC 3332 version of the protocol.
svn path=/trunk/; revision=7013
2003-01-27 23:17:39 +00:00
Laurent Deniel 7f1af8207c Compilation warning fixes
svn path=/trunk/; revision=7012
2003-01-27 22:44:01 +00:00
Laurent Deniel 20a3721d9a Code cleaning & compilation warning fixes
svn path=/trunk/; revision=7011
2003-01-27 22:19:10 +00:00
Guy Harris 98d422ac68 "hf_afs_bos_status" is an FT_INT32, so it can't be put into the tree
with "proto_tree_add_uint()", which "OUT_UINT()" uses; use "OUT_INT()"
instead.

svn path=/trunk/; revision=7010
2003-01-27 22:11:52 +00:00
Guy Harris de50f9e2c2 From Jeff Morriss: dissect parameters regardless of whether a protocol
tree is being generated or not, so that subdissectors get called.

svn path=/trunk/; revision=7009
2003-01-27 21:40:40 +00:00
Guy Harris 29e490ef65 Make the list of column format descriptions "static", and size it based
on the number of column formats - and fix that list by adding a missing
comma between "Circuit ID" and "Src PortIdx".

Add to "col_format_desc()" a check that the argument is valid.

svn path=/trunk/; revision=7008
2003-01-27 20:45:42 +00:00
Guy Harris 27e4186a2d Check "$prefix/include/pcap" before checking "$prefix/include" for
"pcap.h", in case $prefix is set to "/usr/include" or
"/usr/local/include" on a system with the Red Hat "feature" of burying
pcap.h in a "pcap" subdirectory.

svn path=/trunk/; revision=7007
2003-01-27 20:09:06 +00:00
Guy Harris cb123a9ed0 From Yaniv Kaul: add names and types for ZLIB compression and AES
ciphers, and categorize compression methods in the reserved and private
range as such.

svn path=/trunk/; revision=7006
2003-01-27 19:50:05 +00:00
Guy Harris 89cabdabfa From Huagang Xu: treat all SSH sesions where the version cannot be
determined as having an unknown version of SSH rather than as using
SSHv1.

svn path=/trunk/; revision=7005
2003-01-27 19:40:55 +00:00
Guy Harris ca679be5d7 From Hannes Gredler: support MPLS over CHDLC.
svn path=/trunk/; revision=7004
2003-01-27 19:28:52 +00:00
Laurent Deniel 1a66f9aec9 Update my email address in various places since my old one no longer works
svn path=/trunk/; revision=7003
2003-01-26 19:35:31 +00:00