Commit Graph

12683 Commits

Author SHA1 Message Date
Guy Harris 7e9dc12dd0 Rewrap a paragraph, for the benefit of us old-timers who typically use
80-column wide terminal windows (which also lets more windows fit than
would fit with wider windows).

svn path=/trunk/; revision=12935
2005-01-03 01:36:35 +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
Anders Broman a44bb3b080 This file is needed if h225 or h245 is generated separately.
svn path=/trunk/; revision=12931
2005-01-02 22:03:12 +00:00
Anders Broman 422d331c09 asn2eth generated h225 dissector
svn path=/trunk/; revision=12930
2005-01-02 22:01:32 +00:00
Anders Broman edc4b8fff5 asn2eth generated h245 dissector
svn path=/trunk/; revision=12928
2005-01-02 21:58:45 +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 bc7a4459e1 Don't cast pointers passed as arguments - pass a pointer to the right
type of variable and assign the value; that squelches "dereferencing
type-punned pointer will break strict-aliasing rules" warnings from some
versions of GCC.


svn path=/trunk/; revision=12924
2005-01-02 04:01:00 +00:00
Guy Harris c1e2dc025b Cast away the constness of the argument to "g_tree_lookup()" - another
GLib function with an unfortunate signature.

svn path=/trunk/; revision=12923
2005-01-02 03:58:08 +00:00
Guy Harris 7e58bd88ca Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters.

svn path=/trunk/; revision=12922
2005-01-02 00:23:50 +00:00
Guy Harris 90c434d5ac Add casts of OBJECT_SET_DATA() arguments in cases where that's
appropriate.

Use %u, not %d, to convert unsigned values to strings.

svn path=/trunk/; revision=12921
2005-01-01 23:54:32 +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 60ea0d10e2 Don't explicitly cast the last argument to OBJECT_SET_DATA() to
"gpointer" - callers should do that if appropriate (or perhaps change
the call to pass a different argument if that's more appropriate), and
even if casting it were the right thing to do, the argument needs to be
surrounded with parentheses so the correct value is cast.

svn path=/trunk/; revision=12919
2005-01-01 23:29:05 +00:00
Guy Harris f7a9294fab Cast away the constness of the geom_name argument to
"window_new_with_geom()" - there's no way to tell the compiler that
we're not going to be modifying it, but we aren't.

The right way to check whether a pointer is null and get a Boolean is to
test it against null, not to cast it to a Boolean type - as Boolean
types in C89/C90, at least, are just integral types, that cast might
just throw away the upper 32 bits; that probably yields the results you
want, but the compiler might well justifiably warn about that on an LP64
platform.

svn path=/trunk/; revision=12918
2005-01-01 23:25:49 +00:00
Guy Harris 7abf048c5f Fix the signature of "iostat_packet()" - the pointer to data supplied by
the dissector is a const pointer.

svn path=/trunk/; revision=12917
2005-01-01 23:22:10 +00:00
Guy Harris 3a8f2634bb When computing a hash value based on, among other things, a
conversation, use the "index" member of the conversation_t - that lets
you get a value that fits in a guint, but without provoking the warning
you might get from a compiler if you cast a pointer to the conversation
to a guint.

svn path=/trunk/; revision=12916
2005-01-01 23:21:05 +00:00
Guy Harris 0067b4b94e The right way to check whether a pointer is null and get a Boolean is to
test it against null, not to cast it to a Boolean type - as Boolean
types in C89/C90, at least, are just integral types, that cast might
just throw away the upper 32 bits; that probably yields the results you
want, but the compiler might well justifiably warn about that on an LP64
platform.

svn path=/trunk/; revision=12915
2005-01-01 23:19:11 +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 5da116d531 Throw in a cast to squelch an (unavoidable, and probably harmless -
GTK+'s function signatures aren't necessarily what they should be)
warning.

svn path=/trunk/; revision=12912
2005-01-01 12:32:28 +00:00
Guy Harris 87c98feed8 "address_to_str()" and "address_to_str_buf()" don't modify the "address"
structure pointed to them by reference, so make the argument a "const"
pointer.

svn path=/trunk/; revision=12911
2005-01-01 12:29:26 +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
Lars Roland 9e0391990e Update some function declarations in the plugin api
svn path=/trunk/; revision=12903
2004-12-31 14:53:17 +00:00
Lars Roland 2ce1e037f6 From Luis Ontanon for Mate:
- moved gop and gog indexes into gopcfgs, which is a propedeutic
change for upcoming changes in the way gops are to be grouped
-  changed the way gog-keys are kept in memory
- every gopkey attribute is copied into the gop->extras to avoid
redundancy in the configuration
- added timers to gogs mate.gog_type.StartTime and mate.gog_type.Time
- fixed a bug in scs_subscribe that mangled some strings
- minor interface improvement to scs propedeutic to having types avp
values in a future
- changed medium and large into mate_medium and mate_large in the
scs_collection
- fixed Mode=Replace in Transforms, now it works
- fixed a crash at reinit due to impropper initialization of mate_items

svn path=/trunk/; revision=12902
2004-12-31 14:27:38 +00:00
Lars Roland fd39b4ddca Fix from Luis Ontanon:
Bring tap-h225counter.c in sync with newest revision of the h225 dissector

svn path=/trunk/; revision=12901
2004-12-31 14:14:44 +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
Guy Harris f2972f0925 Properly cast the pointer assigned to col_info->col_data.
svn path=/trunk/; revision=12889
2004-12-31 02:03:16 +00:00
Guy Harris 55465228b2 "proto_registrar_get_byname()" doesn't modify its argument, so make it
"const char *".

svn path=/trunk/; revision=12888
2004-12-31 02:02:19 +00:00
Guy Harris ea4568dba5 Make arguments "const *" if the routine doesn't modify the object to
which they point.

svn path=/trunk/; revision=12887
2004-12-31 02:01:03 +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 e75910e7cb In column sort routines, make the row pointers "const" pointers, as the
arguments passed in corresponding to those pointers are gconstpointers.

svn path=/trunk/; revision=12884
2004-12-31 00:33:54 +00:00