Commit graph

818 commits

Author SHA1 Message Date
Anders Broman
45aa6d1949 Add a dissector for RTP payload AMR RFC 3267
svn path=/trunk/; revision=12993
2005-01-08 15:49:37 +00:00
Anders Broman
5163475742 Generate "conversations" code correctly, adaptions to changes in asn2eth generator.
Regenerate with latest asn2eth compiler.

svn path=/trunk/; revision=12992
2005-01-08 14:42:12 +00:00
Guy Harris
d91588af2d Use BASE_NONE, not FT_NONE, for the "base" value of an FT_STRING field.
svn path=/trunk/; revision=12987
2005-01-07 19:34:36 +00:00
Guy Harris
4d47f84a1f Get rid of duplicate "element signature" field.
Clean up indentation.

The signatures are 4-byte strings - treat them as such.

Don't hide fields - dissectors should show what all bytes, other than
perhaps padding bytes, are.

Don't use the tvb_format_text-ified versions of strings as the value -
Ethereal already deals with non-printable characters when displaying
them.

When creating a subset tvbuff that runs to the end of the parent, use -1
as the length, don't calculate the length ourselves.

Use "tvb_reported_length()", not "tvb_length()", in loops that parse the
entire packet.

svn path=/trunk/; revision=12986
2005-01-07 19:29:54 +00:00
Gerald Combs
02520bcf9c Define data_handle at startup.
svn path=/trunk/; revision=12984
2005-01-07 15:08:24 +00:00
Guy Harris
8860bfa6ef From Mike Duigou: JXTA protocol support.
svn path=/trunk/; revision=12982
2005-01-07 12:58:43 +00:00
Guy Harris
b2aee79a35 From Carlos Pignataro:
o BGPv4 SAFI-Specific Attribute support
	  - draft-kapoor-nalawade-idr-bgp-ssa-00.txt
	o Tunnel SAFI support for BGP
	  - draft-nalawade-kapoor-tunnel-safi-02.txt
	o Small length fix

svn path=/trunk/; revision=12977
2005-01-07 11:43:05 +00:00
Guy Harris
a419637209 From Chris Maynard: free strings fetched with "tvb_fake_unicode()" when
we're done with them.

svn path=/trunk/; revision=12974
2005-01-07 10:44:44 +00:00
Guy Harris
0667d869b2 From Chris Maynard: free mallocated strings when we're done with them.
(There's still the risk of a leak if we throw an exception before we
free the string.)

Clean up indentation.

svn path=/trunk/; revision=12973
2005-01-07 10:39:51 +00:00
Guy Harris
87919fc4ef From Chris Maynard: free strings fetched with "tvb_get_string()".
Use "format_text()" or "tvb_format_text()" with the %s format, to handle
non-printable characters.

When uncompressing data into a new tvbuff, add it to the list of data
sources as we do elsewhere.

When putting items into the protocol tree from an uncompressed tvbuff,
use the offset into the tvbuff and the length of the item.

Fetch string lengths into a variable and use the variable rather than
repeatedly fetching the length from a tvbuff.

Use -1 rather than tvb_length_remaining() when putting a "to the end of
the tvbuff" item into the protocol tree.

Use "proto_tree_add_item()" to put items into the tree, rather than
"proto_tree_add_xxx" calls with a "tvb_get_yyy" call as the argument.

If we've fetched a value into a variable, don't re-fetch it in
"proto_tree_add_xxx" calls.

svn path=/trunk/; revision=12971
2005-01-07 10:09:34 +00:00
Guy Harris
50708fac46 Add a dissector to handle IEEE 802a's OUI Extended Ethertype; dissectors
can register an OUI, and PIDs for that OUI, in the same fashion that
they can do so for SNAP (after which the 802a OUI Extended Ethertype is
clearly modeled).

svn path=/trunk/; revision=12967
2005-01-06 08:37:43 +00:00
Guy Harris
586da2f14e Handle the case where nobody registers any OUIs and oui_info_table is
thus null.

svn path=/trunk/; revision=12966
2005-01-06 08:21:25 +00:00
Guy Harris
9f3573430b From Chris Maynard: catch a case where a string allocated with
"tvb_get_string()" wasn't freed.  (It appears there can also be leaks if
an exception is thrown while dissecting.)

svn path=/trunk/; revision=12965
2005-01-05 11:00:11 +00:00
Guy Harris
cf347c9f8b Use tvb_format_text() with %s format items, to handle non-printable
characters.

Clean up indentation.

svn path=/trunk/; revision=12964
2005-01-05 10:55:00 +00:00
Guy Harris
77762e2ddc From Chris Maynard: don't extract strings with "tvb_get_string()" if
we're not going to use them, and free them when we're done with them.

Clean up white space.

svn path=/trunk/; revision=12963
2005-01-05 10:51:05 +00:00
Guy Harris
45d7435bd3 From Chris Maynard: free strings allocated by "tvb_get_string()" after
we're done with them.

svn path=/trunk/; revision=12962
2005-01-05 10:45:43 +00:00
Guy Harris
de220d047d From Chris Maynard: free strings allocated by "tvb_fake_unicode()" after
we're done with them.

svn path=/trunk/; revision=12961
2005-01-05 10:42:26 +00:00
Guy Harris
652b22c0b9 From Chris Maynard: free mallocated data.
Don't assign the result of a routine that mallocates data to a const
pointer - that forces us to cast the pointer when freeing the data.

svn path=/trunk/; revision=12960
2005-01-05 10:38:50 +00:00
Guy Harris
6a8b0221f4 From Chris Maynard: free strings even if we don't put them into the
protocol tree.

svn path=/trunk/; revision=12959
2005-01-05 10:27:22 +00:00
Guy Harris
db204c7045 From Chris Maynard: free strings fetched with "tvb_fake_unicode()".
svn path=/trunk/; revision=12956
2005-01-05 10:17:09 +00:00
Guy Harris
c0f439e6ff Free the image type string as soon as we're done with it, so that we
don't leak it (even if we throw an exception processing the image).

svn path=/trunk/; revision=12955
2005-01-05 10:13:24 +00:00
Guy Harris
d4bf60e4ba From Chris Maynard: add a missing free of a string fetched with
tvb_get_string().

svn path=/trunk/; revision=12954
2005-01-05 10:05:03 +00:00
Guy Harris
33daa3e715 From Chris Maynard: don't fetch a string if we're not going to use it.
Also, move up the freeing of the tag string to immediately after we're
done with it, so we don't leak it if we throw an exception getting the
value.

svn path=/trunk/; revision=12953
2005-01-05 10:01:04 +00:00
Guy Harris
c2e6d1e686 Use "tvb_format_text()" with %s format strings, so that we handle
non-printable strings.

svn path=/trunk/; revision=12952
2005-01-05 09:53:03 +00:00
Guy Harris
81df0567ab Use "tvb_format_text()" to generate the text to use in
"proto_tree_add_text()" calls, so that we handle non-printable
characters if they happen to appear in the strings.

svn path=/trunk/; revision=12951
2005-01-05 09:46:43 +00:00
Guy Harris
51014ac699 Use "tvb_format_text()" to extract and format the buddy name string in
the top-level item for the buddy name, rather than extracting the string
into a mallocated buffer (and not freeing it...).

Put all the code to put stuff into the protocol tree inside "if(tree)".

svn path=/trunk/; revision=12950
2005-01-05 09:41:20 +00:00
Lars Roland
adcb6ff460 Fix broken parts of the new h225 dissector:
- add more data to the Info structure of the h225 taps.
- Fix the output to the Info Column

This patch is not complete, but statistics should basically work now.

svn path=/trunk/; revision=12948
2005-01-05 02:25:34 +00:00
Gerald Combs
4aee782dfa If the ICMP code is present, put it in the Info column.
svn path=/trunk/; revision=12934
2005-01-03 00:08:40 +00:00
Lars Roland
8dadc16642 fix a typo in new packet-h225.h
svn path=/trunk/; revision=12933
2005-01-02 22:56:25 +00:00
Anders Broman
08ab390705 Change the dissectors to asn2eth generated ones.
svn path=/trunk/; revision=12932
2005-01-02 22:05:47 +00:00
Guy Harris
ffaf53a9d6 *Correctly* append to the filter string.
svn path=/trunk/; revision=12926
2005-01-02 10:01:05 +00:00
Guy Harris
4d38774957 Unlike the detailed description of resource record types, the
detailed description of classes is pretty much redundant - remove it.

svn path=/trunk/; revision=12925
2005-01-02 09:40:26 +00:00
Guy Harris
f7bffeb9f7 "inet_pton()" isn't getting declared on Windows; include "inet_v6defs.h"
if NEED_INET_V6DEFS_H is defined, as is done in "packet-sdp.c", the
other module using "inet_pton()".

svn path=/trunk/; revision=12920
2005-01-01 23:40:56 +00:00
Guy Harris
a46d94072b Get rid of some warnings about variables whose values might be lost in a
longjmp, by properly qualifying those variables as volatile.

svn path=/trunk/; revision=12914
2005-01-01 23:11:46 +00:00
Guy Harris
4df2c4abd9 Make the signatures of functions passed to "register_tap_listener()"
match what "register_tap_listener()" expects (rather than squelching
warnings about the differences by casting function pointers to "void
*").

Make static some functions not used outside the module in which they're
defined. 

svn path=/trunk/; revision=12913
2005-01-01 12:49:54 +00:00
Guy Harris
71217a8007 As we've made the tap_specific_data field of a tap_packet_t structure a
const pointer (so that we don't get complaints when we make the
tap-specific data argument to "tap_queue_packet()" a const pointer,
allowing dissectors to hand const data to a tap without a complaint), we
should make the tap per-packet function take a const pointer as an
argument as well.  Do so.

In some taps, use _U_, or actually use the argument, rather than
sticking in dummy "X = X" assignments to fake use of parameters.  (This
means that the tap functions in question no longer have the notion that
they act on a particular static structure wired in.)

svn path=/trunk/; revision=12910
2005-01-01 02:57:02 +00:00
Guy Harris
3f0d0ca5ea Note what Fibre Channel spec documents this protocol.
Don't assign the const pointers passed to hash routines to non-const
pointers.

In "zonenm_to_str()", don't assume there's a null terminator in the
packet - use "tvb_get_string()" so that the buffer into which it's
copied is explicitly null-terminated.

Put the Domain & Port into the protocol tree as a "0xXXXXXXXX" string,
rather than as a string with one blank in it.

svn path=/trunk/; revision=12909
2004-12-31 22:00:44 +00:00
Guy Harris
ed15a73962 Don't bother copying the switch name to a buffer - we can just use
"tvb_get_ptr()".

svn path=/trunk/; revision=12908
2004-12-31 21:40:22 +00:00
Guy Harris
e58a199e9a Fix a bug introduced in the previous checkin.
Make the names for list record types match the names used before the
previous checkin.

svn path=/trunk/; revision=12907
2004-12-31 21:36:08 +00:00
Guy Harris
43ee35425a FC-over-IP is now covered by RFCs; update the specification references.
Make the protcol/version information an array of 8 bytes, not 2 guints;
not all the world's a (little-endian) PC!

svn path=/trunk/; revision=12906
2004-12-31 21:20:46 +00:00
Guy Harris
21cd2e1603 Note what Fibre Channel spec documents this protocol.
Don't assign the const pointers passed to hash routines to non-const
pointers.

Don't use "tvb_get_ptr()" to get a pointer to a data structure, and
dereference that pointer - there's no guarantee that the structure in
question will be located on an appropriate boundary in the data from the
packet (regardless of whether it's properly aligned within the data for
the protocol being dissected).

Put the record length for an EFP request into the protocol tree.

Check the sanity of the payload length for that request.

In "zonenm_to_str()", don't assume there's a null terminator in the
packet - use "tvb_get_string()" so that the buffer into which it's
copied is explicitly null-terminated.

Put the Domain & Port into the protocol tree as a "0xXXXXXXXX" string,
rather than as a string with one blank in it.

svn path=/trunk/; revision=12905
2004-12-31 20:58:23 +00:00
Guy Harris
16a61cc9c0 Note what Fibre Channel spec documents this protocol.
Don't assign the const pointers passed to hash routines to non-const
pointers.

Don't assume that strings the spec says are null-terminated are
necessarily null-terminated in the packet - use "tvb_strsize()" to find
the length of the purported null-terminated string; it'll throw the
appropriate exception if no null is found.

svn path=/trunk/; revision=12904
2004-12-31 20:35:55 +00:00
Guy Harris
43cf3c2480 Use "proto_tree_add_item()" to add a chunk of bytes to the protocol
tree.

svn path=/trunk/; revision=12900
2004-12-31 03:18:13 +00:00
Guy Harris
1d4bf3263b Don't assign const pointers to non-const pointers, especially if the
object pointed to by the non-const pointer won't be modified.

svn path=/trunk/; revision=12899
2004-12-31 03:17:00 +00:00
Guy Harris
018883dea9 "string_to_hex()" doesn't modify its first argument, so make it a
"const" pointer, and don't cast away the constness of "tvb_get_ptr()"s
result when passing it to "string_to_hex()".

svn path=/trunk/; revision=12898
2004-12-31 03:14:18 +00:00
Guy Harris
85f89615ea Don't cast away the constness of pointers passed to "ip_to_str()" -
"ip_to_str()" takes a "const guint8 *" argument.

svn path=/trunk/; revision=12897
2004-12-31 03:12:51 +00:00
Guy Harris
d9f4b6c9eb There are no guarantees that "strncasecmp()" works with
non-null-terminated strings, so be safe and fetch the metatag string
with "tvb_get_string()".

svn path=/trunk/; revision=12896
2004-12-31 03:10:11 +00:00
Guy Harris
29c1d25ddc Use "tvb_memeql()" to check whether specified bytes in a packet have a
specified value.

Make a constant array "const".

svn path=/trunk/; revision=12895
2004-12-31 02:48:53 +00:00
Guy Harris
9d9687dd5a Don't cast away the constness of argument pointers.
Don't supply our own definition of AF_INET or our own declaration of
"inet_pton()" - use the system ones if they're available.

"mkipv4_address()" doesn't modify the string passed to it - make it a
const pointer.

svn path=/trunk/; revision=12894
2004-12-31 02:16:05 +00:00
Guy Harris
8d80985ef7 Don't roll our own code to display IPv4 or IPv6 addresses, use
"ip_to_str()" and "ip6_to_str()".

Check the length of items for IPv4 and IPv6 addresses before displaying
them as such.

svn path=/trunk/; revision=12893
2004-12-31 02:13:42 +00:00
Guy Harris
31cbbecd00 Don't assign the const pointers passed to hash routines to non-const
pointers.

Now that "col_set_str()" takes a "const char *" as the second argument,
we don't have to cast away the constness of strings passed to it.

svn path=/trunk/; revision=12892
2004-12-31 02:11:13 +00:00
Guy Harris
b39dd4b7cc Don't assign a const pointer argument to a non-const pointer variable.
svn path=/trunk/; revision=12891
2004-12-31 02:09:48 +00:00
Guy Harris
caf46302c8 Don't assign the const pointers passed to hash routines to non-const
pointers.

svn path=/trunk/; revision=12890
2004-12-31 02:08:01 +00:00
Jörg Mayer
9522cf61c0 Make sure print_buff is \0-terminated
svn path=/trunk/; revision=12886
2004-12-31 01:56:22 +00:00
Jörg Mayer
22dad47c9a As pointed out by Guy: We should be able to filter on the original SSID,
so use a copy of the existing one for printing.

svn path=/trunk/; revision=12885
2004-12-31 01:37:54 +00:00
Guy Harris
a0de9d34c7 Add a "tvb_bytes_to_str_punct()" routine, which wraps
"bytes_to_str_punct()", and use it instead of extracting the bytes and
formatting them by hand.

svn path=/trunk/; revision=12876
2004-12-30 23:47:52 +00:00
Anders Broman
d7bda80c71 Change a function name in preparation for genereating H.245 and H.225 dissectors with asn2etrh
svn path=/trunk/; revision=12873
2004-12-30 22:40:21 +00:00
Gerald Combs
3969acf046 From Vincent Jardin: Fix the dissection of relayed messages.
svn path=/trunk/; revision=12868
2004-12-30 16:45:37 +00:00
Guy Harris
d1fd7820b4 In the "capture_null()" routine, handle IPv6.
svn path=/trunk/; revision=12865
2004-12-30 02:27:00 +00:00
Guy Harris
7e7d12b446 Update a URL.
svn path=/trunk/; revision=12864
2004-12-30 02:21:33 +00:00
Guy Harris
0ccf418724 Add a "get_addr_name()" routine that takes an "address *" and attempts
to resolve it to a name.

Fix up some const-pointer-to-non-const-pointer, and
function-pointer-to-void-*, conversions.

Fix some comments.

svn path=/trunk/; revision=12863
2004-12-30 02:10:24 +00:00
Guy Harris
0e6504201f From Albert Chin: get rid of C99/GCCisms (initializing automatic
structures with non-constant values).

svn path=/trunk/; revision=12861
2004-12-29 22:17:04 +00:00
Guy Harris
a16a9d2096 Add Ethernet type for DEC Local Area Systems Transport.
svn path=/trunk/; revision=12850
2004-12-29 00:44:45 +00:00
Ulf Lamping
89c7567797 fix a freebsd buildbot compile error, caused by myself :-(
svn path=/trunk/; revision=12845
2004-12-27 21:35:09 +00:00
Ulf Lamping
c8a328e2b9 fix a solaris buildbot compile error
svn path=/trunk/; revision=12844
2004-12-27 16:11:08 +00:00
Ulf Lamping
5bcad85d01 Again, some warnings removed.
svn path=/trunk/; revision=12842
2004-12-27 13:17:20 +00:00
Ulf Lamping
b026aa4bc2 Again, another warning (hopefully) removed.
svn path=/trunk/; revision=12841
2004-12-27 10:11:28 +00:00
Guy Harris
c6bdaa41c6 From Jouni Malinen: use a length field from the packet to determine how
much data is available, rather than using "tvb_length_remaining()".

svn path=/trunk/; revision=12840
2004-12-26 22:52:16 +00:00
Guy Harris
1220516388 From Yaniv Kaul: add Ethernet address-to-name (or, at least, address-to-
vendor-name-and-next-three-bytes-in-hex) resolution for Ethernet/802.x
hardware addresses.

Move the ARP hardware types into a header file, for use by dissectors
other than the ARP dissector.

svn path=/trunk/; revision=12839
2004-12-26 22:26:02 +00:00
Gerald Combs
dce666e0d1 From Vincent Jardin:
- support for new DHCPv6 options
 - fix for the support of OPTION_RELAY_MSG 

svn path=/trunk/; revision=12838
2004-12-26 18:58:52 +00:00
Ulf Lamping
bf5bf359e0 Again, some warnings removed.
svn path=/trunk/; revision=12837
2004-12-26 10:11:42 +00:00
Guy Harris
355c52a0b3 From Jouni Malinen: dissect TLS extensions (RFC 3546) for ClientHello
and ServerHello.

svn path=/trunk/; revision=12836
2004-12-26 00:28:47 +00:00
Guy Harris
ce604cf8f0 From Luis Ontanon: add more filterable fields to DNS, PGM, GTP, and RADIUS.
svn path=/trunk/; revision=12835
2004-12-26 00:22:16 +00:00
Ulf Lamping
5a89cfc00b Again, some warnings removed.
svn path=/trunk/; revision=12834
2004-12-25 18:35:21 +00:00
Ulf Lamping
872a860814 Fix a core dump causing the buildbot test menagerie to fail. It was caused by incorrectly trying to proto_tree_add_item() with a very huge length. However, someone with more SQL knowledge than me should have a qualified look at that place and do a better fix.
svn path=/trunk/; revision=12833
2004-12-25 14:46:40 +00:00
Ulf Lamping
78ff68d4b5 a lot of warnings removed, most of them about pointer to int casts without using the appropriate GLib macros
svn path=/trunk/; revision=12832
2004-12-25 13:49:30 +00:00
Ulf Lamping
e8459f4ea1 Again, some warnings removed.
svn path=/trunk/; revision=12831
2004-12-25 10:30:58 +00:00
Ulf Lamping
dc0fc1896e use GLib's pointer to int conversion macros to prevent compiler warnings
svn path=/trunk/; revision=12830
2004-12-24 23:17:38 +00:00
Guy Harris
ed556cd7c4 Note the RFC that describes VJ compression.
svn path=/trunk/; revision=12829
2004-12-24 22:21:23 +00:00
Ronnie Sahlberg
e0945a4762 New protocol RFC2510 PKIXCMP Certificate Management Protocol
svn path=/trunk/; revision=12828
2004-12-24 12:39:21 +00:00
Ronnie Sahlberg
0d1474e9a7 export ResonFlags from pkix1implicit
svn path=/trunk/; revision=12827
2004-12-24 12:22:52 +00:00
Ronnie Sahlberg
03ded18485 export Certificate and CertificateList from pkix1explicit
svn path=/trunk/; revision=12826
2004-12-24 12:16:27 +00:00
Ronnie Sahlberg
131c4164b4 New "protocol" the support functions from RFC2511 Certificate Request Message Format CRMF
svn path=/trunk/; revision=12825
2004-12-24 11:32:13 +00:00
Ronnie Sahlberg
69dd4345c1 export EnvelopedData
svn path=/trunk/; revision=12824
2004-12-24 11:24:35 +00:00
Ronnie Sahlberg
6b8c77703e RST segmetns are never WindowFull segments.
svn path=/trunk/; revision=12823
2004-12-23 19:56:29 +00:00
Ronnie Sahlberg
0b6ae100fe add another error code to dcerpc
svn path=/trunk/; revision=12822
2004-12-23 19:53:24 +00:00
Ulf Lamping
0da82dce11 Again, some warnings removed.
svn path=/trunk/; revision=12819
2004-12-23 00:27:20 +00:00
Richard Sharpe
8190410fb3 Clean up one more instance of 8-byte timestamps in SMB. Have to work on
the 4-byte ones soon.


svn path=/trunk/; revision=12818
2004-12-22 19:44:42 +00:00
Guy Harris
9e176608c5 RFC 2868 says that the length of a "tagged string" field must be at
least 3 - 2 for type+length and 1 for the tag - so treat a "tagged
string" field as bad if there isn't at least one byte of data.  (It's a
bit odd that the RFC says that the tag must be in the range 0x01-0x1F -
that sounds suspiciously as if they're saying "printable characters
aren't valid tags", to allow untagged strings, which might suggest that
a field with a length of 2 should be interpreted as an empty string.)

svn path=/trunk/; revision=12817
2004-12-22 19:27:09 +00:00
Guy Harris
e501ee7f01 Check for all bogus ACE lengths, i.e. all lengths < 4.
Clean up indentation.

Add a comment asking whether the revision in an ACL is *really* 2 bytes
and the ACE count is *really* 4 bytes.

svn path=/trunk/; revision=12816
2004-12-22 10:44:20 +00:00
Guy Harris
af7dca469a Add only one protocol tree item for the "weak IV" flag - add it as a
non-hidden Boolean, and use "proto_tree_add_boolean_format()" to add it
to include the key byte.

svn path=/trunk/; revision=12815
2004-12-22 09:58:28 +00:00
Richard Sharpe
80e3a2ed9c Add a dissection for the GET_NETWORK_FILE_OPEN_INFO and make some stuff that
we do in several places into a subroutine. We need to do it also with the 
4-byte time stamps that are dissected all over the place. 

I had thought that that last unknown in the returned structure might be 
a count of the number of clients that have the file open, but a simple test
suggests that that is not the case.


svn path=/trunk/; revision=12812
2004-12-22 02:40:33 +00:00
Guy Harris
d7ba617f71 In the "rdconvertXXXtostr()" routines, check that the length passed in
is >= 0 (if it's not, that's a bug), and make the buffer index and total
length variables int as well, to match the length.

svn path=/trunk/; revision=12811
2004-12-22 01:51:00 +00:00
Guy Harris
88cbf869eb Move the RADIUS_TIMESTAMP, RADIUS_INTEGER4_TAGGED, and RADIUS_UNKNOWN
case branches up, so the case branches are in the same order as the
elements of the enum are, and add length checks to RADIUS_TIMESTAMP and
RADIUS_INTEGER4_TAGGED.

svn path=/trunk/; revision=12810
2004-12-22 01:42:54 +00:00
Guy Harris
ce604f09d8 Properly declare a variable as volatile, as the longjmp done by the
exception mechanism might clobber it otherwise.

svn path=/trunk/; revision=12809
2004-12-22 00:30:39 +00:00
Guy Harris
7402efa058 Add some checks to make sure the AVP length is large enough for the item
we're fetching from the AVP.

In the case of a tagged string, if the length is 2 (meaning the data
length is 0), assume there's no tag.

svn path=/trunk/; revision=12808
2004-12-22 00:23:55 +00:00
Guy Harris
6270a8e27b Fix one comment, and put in another one giving a note about where you
can get the protocol specs.

svn path=/trunk/; revision=12807
2004-12-21 23:26:01 +00:00
Olivier Biot
7661effba5 From Victor Stratan: GSM SMS fixes:
- Corrected incorrect Timezone output due to byte overflow.

 - Added descriptions for address string decoding.


svn path=/trunk/; revision=12806
2004-12-21 21:17:44 +00:00
Guy Harris
c415e09f20 Use "format_text()" on strings, to better handle non-printable
characters.

svn path=/trunk/; revision=12805
2004-12-21 20:36:50 +00:00
Guy Harris
5694ead821 Put the strings for the X-Mms-Previously-Sent-By header under the MMSE
tree rather than at the top level.

svn path=/trunk/; revision=12804
2004-12-21 20:03:47 +00:00
Guy Harris
9461951d50 Make the array for the "setup method" for RTP, RTCP, and T.38
conversations large enough to hold the maximum setup method size plus a
trailing '\0'.  Make the maximum setup method size 7, so that when the
trailing '\0' is included the total array length is a power of 2.  (The
longest string currently used is "Skinny", which fits in 7 characters).

This fixes problems in the RTP and RTCP dissectors similar to the one
found in the T.38 dissector.

Undo the previous change to packet-t38.c, as it's now safe to store in
method[MAX_T38_SETUP_METHOD_SIZE], because the array now has
MAX_T38_SETUP_METHOD_SIZE+1 characters.

(Should we use "strlcpy()", and supply our own "strlcpy()" if the system
and/or C library doesn't supply it?  Its semantics are a bit cleaner
than those of the "strncpy()"/null-terminate idiom, perhaps making it
less likely that mistakes of this sort will be made.)

svn path=/trunk/; revision=12803
2004-12-21 19:28:48 +00:00
Ronnie Sahlberg
97755f83fc from metze
make ethereal handle gss-api encrypted ldap blobs


svn path=/trunk/; revision=12802
2004-12-21 17:05:14 +00:00
Ronnie Sahlberg
cba7da7b6c abs_time_to_str() returns a staticly allocated string. dont g_free() it.
fix two instances of wrong parameter list to proto_tree_add_string_format()

if we call proto_tree_string()  the hf field has to be of a string format as well.



now it dissects christophe's capture without dumping core  but it looks weird.
mmse and telco people can read the specs and find ut what it wrong.



svn path=/trunk/; revision=12801
2004-12-21 16:44:11 +00:00
Jörg Mayer
337d6a27f0 Abhijit Menon-Sen:
- Make port configurable via prefs
        - Highlight keywords in addition to values in hexpane

svn path=/trunk/; revision=12800
2004-12-21 13:18:08 +00:00
Jörg Mayer
773681fca3 Giles Scott: Add Wlan tap
svn path=/trunk/; revision=12799
2004-12-21 12:30:24 +00:00
Ulf Lamping
dc3f1c1c2a Again, some warnings removed.
svn path=/trunk/; revision=12797
2004-12-21 10:02:42 +00:00
Gerald Combs
687a2d71eb Fix an off-by-one error when terminating a string.
svn path=/trunk/; revision=12796
2004-12-21 03:50:14 +00:00
Jörg Mayer
f774652d9b Abhijit Menon-Sen: Postgres v3 support
svn path=/trunk/; revision=12795
2004-12-20 23:24:13 +00:00
Guy Harris
b40e2e4dfb Get rid of extra include of <string.h>.
svn path=/trunk/; revision=12794
2004-12-20 22:51:05 +00:00
Ulf Lamping
da27f1fac3 Removed some of the unix related warnings. I'll remove the remaining DCOM related ones in the next days, step by step (by looking at the buildbot output).
svn path=/trunk/; revision=12793
2004-12-20 22:29:24 +00:00
Guy Harris
65d7e1d97c Include <string.h> to declare various functions.
svn path=/trunk/; revision=12792
2004-12-20 22:25:13 +00:00
Guy Harris
e20d80ea57 Use "plurality()" rather than locally-defined "PLURALIZE()" macros, and
get rid of the definition of "PLURALIZE()" in modules that don't use it.

svn path=/trunk/; revision=12791
2004-12-20 22:13:48 +00:00
Gerald Combs
8e36c366f8 Remove an unneeded "ntohl()" call.
svn path=/trunk/; revision=12790
2004-12-20 16:15:29 +00:00
Jörg Mayer
d9c383275a Found by Buildbot Solaris: isprint.h include only works on glib2 systems
svn path=/trunk/; revision=12787
2004-12-20 10:49:12 +00:00
Guy Harris
4cc0fdc5dd Put in a stub "dissector" for LDAP_FILTER EXTENSIBLE, so we can at least
dissect packets containing that filter type.

Note that if a dissector for a particular operation fails, we should
stop dissecting rather than trying to dissect the controls.

svn path=/trunk/; revision=12786
2004-12-20 09:53:27 +00:00
Ronnie Sahlberg
1574f4dd5e g_strescape only takes one parameter in glib 1.x
this makes ethereal compile for those of us that are not on the bleeding edge.
(gtk1 is much better anyway)


svn path=/trunk/; revision=12785
2004-12-20 08:44:10 +00:00
Jörg Mayer
4ba6d382b7 - Diplay SSID in mangemntframes
- Display unprintable characters in SSID as '.' (SSID charaters
  are of type octet, not alphanum).

svn path=/trunk/; revision=12784
2004-12-20 00:00:06 +00:00
Ulf Lamping
b2c9c74aed removed some gcc warnings (hopefully)
svn path=/trunk/; revision=12783
2004-12-19 17:26:23 +00:00
Ulf Lamping
2b02b27b29 add some IRemUnknown dissectors
svn path=/trunk/; revision=12782
2004-12-19 16:49:34 +00:00
Ulf Lamping
1143f7e2ca tweak some comments
svn path=/trunk/; revision=12781
2004-12-19 16:30:25 +00:00
Ulf Lamping
519e81d46c add dissection of RemoteActivation method
svn path=/trunk/; revision=12780
2004-12-19 16:29:08 +00:00
Ulf Lamping
e3f96e79e7 add a lot of dissect stuff to the OXID resolver, moved some details of the DUALSTRINGARRAY to packet-dcom.c
svn path=/trunk/; revision=12779
2004-12-19 16:13:05 +00:00
Ulf Lamping
ae802a6a02 bugfix: remove empty line, probably caused by eol confusion
svn path=/trunk/; revision=12778
2004-12-19 16:04:09 +00:00
Ulf Lamping
f2fd0e2424 renamed all DCOM related interface dissectors from packet-dcerpc-... to packet_dcom_... and add DCOM IDispatch dissector (incomplete, but better than nothing... ;-)
svn path=/trunk/; revision=12777
2004-12-19 14:08:03 +00:00
Ulf Lamping
ea0baf468e (on behalf of the PROFIBUS Nutzerorganisation e.V. Deutschland):
another part of the PROFINET dissectors (PN-CBA, including a lot of generic DCOM dissection) still some work to be done ...

svn path=/trunk/; revision=12776
2004-12-19 13:46:09 +00:00
Ulf Lamping
1f73d0df93 Merge dissection of EndpointMapper interfaces of version 3 and 4 into one file, as the dissection of both interface versions are (currently) identical. (Jaime, could you please check, if EPM4 dissection is still working well?)
svn path=/trunk/; revision=12775
2004-12-19 10:30:33 +00:00
Ronnie Sahlberg
d0fbb2596a add detection to TCP Analysis to detect and flag segments that will completely fill the window advertized from the other side.
I.e. when a segment is seen that would (as far as ethereal can tell from the ACKs it has seen in the other direction) fill the window completely.

It is similar to but not exactly the same as the XeroWindow detection since there are many instances where ZeroWindow detection would not work (i.e. an ACK where win==0    since many many situations occur where the window is full but no zerowindowack is ever generated)


Someone that has good english could, please, update the Wiki with this option.
It is very very useful to spot performance issues where the tcp window size is too small to accomodate the enmd-to-end latency.





svn path=/trunk/; revision=12774
2004-12-19 07:18:04 +00:00
Ronnie Sahlberg
62f26aaeb4 abort trying to dissect ldap controls if the header doesnt look right.
it will not solve the problem in the c06-  testmenageri capture that
contains unknown types of ldap commands   but it will at least 
stop the ldap controls dissector from dumping core.

someone interested in ldap might want to look at those "unknown ldap packets"
in the trace.



svn path=/trunk/; revision=12773
2004-12-19 04:10:05 +00:00
Jörg Mayer
1e51ddbae3 Giles Scott: Port weak key detection from Airsnort
svn path=/trunk/; revision=12772
2004-12-19 04:04:49 +00:00
Ronnie Sahlberg
9f87afbca5 mark some fields as GENERATED fields
svn path=/trunk/; revision=12771
2004-12-19 03:30:46 +00:00
Ronnie Sahlberg
7def0aa70c the mid values in smb are too unreliable for request/response matching since they wrap so quickly.
This has the effect that if you have a capture file with a hole in it, sa say when snoop or similar stops capturing packets for a while while writing the data to disk   you often end up with a packet just after the hole that is a response packet  and which ethereal mistakenly matches with a request/response from before the hole.


now,  when the first response is seen to a request   remove the entry from the unmatched table so that no other response can match the same request.



svn path=/trunk/; revision=12770
2004-12-19 03:19:53 +00:00
Ronnie Sahlberg
5d1b339131 make ndmp use tcp_dissect_pdus()
so that it will track pdu boundaries properly

not tracking pdu boundaries caused pain since it would miss too many
commands


svn path=/trunk/; revision=12769
2004-12-18 22:09:06 +00:00
Guy Harris
b321d9fbfe When the LMP dissector rejects a packet because it {is, isn't} UDP, let
some other dissector have it.

svn path=/trunk/; revision=12766
2004-12-17 19:27:46 +00:00
Guy Harris
3609ea96c3 From Stefan Metzmacher: basic decoding for LDAP Controls.
svn path=/trunk/; revision=12765
2004-12-17 19:14:24 +00:00
Guy Harris
14c5bed304 From Yaniv Kaul: add the CCM_POST method.
Tweak indentation.

svn path=/trunk/; revision=12761
2004-12-15 17:50:11 +00:00
Guy Harris
c2b55b8d97 From Yaniv Kaul: DCERPC-over-HTTP(!) support. (But why didn't whoever
came up with that not go whole hog and implement RFC 3093?)

svn path=/trunk/; revision=12756
2004-12-15 09:10:07 +00:00
Jörg Mayer
adf24fd4b1 Fix the following gcc-4 error:
==============
packet-ocsp.c:191: error: static declaration of 'Version_vals' follows non-static declaration
packet-x509af.h:39: error: previous declaration of 'Version_vals' was here
packet-ocsp.c: In function 'dissect_ocsp_T_response':
packet-ocsp.c:398: warning: pointer targets in passing argument 5 of 'dissect_ber_identifier' differ in signedness
packet-ocsp.c:398: warning: pointer targets in passing argument 7 of 'dissect_ber_identifier' differ in signedness
make[4]: *** [packet-ocsp.lo] Error 1
==============

This fix is in the generated file only - please fix in the right
source file too.


svn path=/trunk/; revision=12751
2004-12-14 13:41:36 +00:00
Guy Harris
4fef292099 From Victor Stratan: correct offset calculation and add TP-PID decoding
in SMS-SUBMIT-REPORT decoding based on 3GPP TS 23.040 V6.5.0 9.2.3.11.

svn path=/trunk/; revision=12750
2004-12-14 08:20:32 +00:00
Guy Harris
21a206c37f In the "PPP in HDLC-Like Framing" items, consider the starting delimiter
part of the packet's data.

If a packet has a starting and ending frame delimiter - i.e., the
delimiter at the end is followed by another delimiter - consider the
ending delimiter part of the first packet's raw data.

svn path=/trunk/; revision=12749
2004-12-14 08:15:13 +00:00
Anders Broman
6ced79161a Don't display the end delimiter as a fragment and change the bytes higligted with "PPP DATA" to exclude
the delimiters(or shold they both be included?)

svn path=/trunk/; revision=12748
2004-12-13 22:19:03 +00:00
Ronnie Sahlberg
fed43e3c12 get rid of some asn2eth warnings for x509ce
svn path=/trunk/; revision=12745
2004-12-13 12:53:35 +00:00
Ronnie Sahlberg
eeeadf7b7b remove some asn2eth warnings
svn path=/trunk/; revision=12744
2004-12-13 12:43:48 +00:00
Ronnie Sahlberg
d5ed983336 change the incorrect BER_UNI_TAG_TeletextString into BER_UNI_TAG_TeletexString
svn path=/trunk/; revision=12743
2004-12-13 11:59:48 +00:00
Ronnie Sahlberg
396ae4d70d remove some asn2eth warnings
svn path=/trunk/; revision=12742
2004-12-13 11:51:20 +00:00
Guy Harris
3f0412a729 Add a protocol layer for the raw byte stream for PPP in HDLC-like
framing, and put the raw packet and fragment data at that layer.

Add a common routine to dissect un-escaped PPP data that might have 0xff
0x03, and use it both for the raw PPP in HDLC-like framing and for
processing un-escaped data.

Check for an escape byte not followed by another byte (e.g., because the
packet is too short).

Handle the case where a chunk of that raw byte data doesn't begin with
0x7e, but starts with cruft from a previous PPP packet split across
lower-level packets.

svn path=/trunk/; revision=12741
2004-12-13 10:10:51 +00:00
Ronnie Sahlberg
8afae320de update of the asn2eth compiler to use the types ber_[choice|sequence]_t instead of ber_[choice|sequence]
regenerated all dissectors


fixed the choice/sequence struct to use unsigned entities for class and tag
(to reduce some compiler warning and because it should be signed quantities)



svn path=/trunk/; revision=12740
2004-12-13 08:15:34 +00:00
Guy Harris
b14f3dbba8 Get rid of an unused parameter.
svn path=/trunk/; revision=12736
2004-12-13 01:34:35 +00:00
Ronnie Sahlberg
593131d132 some cmip updates to handle m-Action and m-Action-confirmed
svn path=/trunk/; revision=12734
2004-12-12 23:33:40 +00:00
Ronnie Sahlberg
97f465c157 make the unknown_ber helper try to dissect NumericString and ENUMERATED when it encounters them
svn path=/trunk/; revision=12733
2004-12-12 22:59:43 +00:00
Ronnie Sahlberg
896737c467 update the helper for BER GeneralizedTime to handle implicit tag and update all dissectors using GeneralizedTime
svn path=/trunk/; revision=12732
2004-12-12 22:47:24 +00:00