Commit Graph

18 Commits

Author SHA1 Message Date
Jörg Mayer 3f020f582e Compiling with -pedantic:
warning: comma at end of enumerator list

svn path=/trunk/; revision=9383
2003-12-21 04:31:58 +00:00
Ashok Narayanan 880564ef36 Added support for LMP draft version -09. Support for older draft
versions -02 and -03 is still present (since they are in use),
selectable by a protocol preference.

svn path=/trunk/; revision=8765
2003-10-23 18:49:50 +00:00
Guy Harris af5b47a0c2 When registering a field, make sure its ID is -1 or 0 - if it's not,
that probably means you've registered two fields with the same field ID
variable, which is an error.

Fix the bugs doing so found.

svn path=/trunk/; revision=8629
2003-10-06 20:46:52 +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
Guy Harris 59932f2722 Don't cast away constness, and fix variable and structure member
qualifiers as necessary to ensure that we don't have to.

"strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't
test their results as if they did.

Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes.

Update Michael Tuexen's e-mail address.

svn path=/trunk/; revision=6726
2002-12-02 23:43:30 +00:00
Guy Harris 9fb669df43 The Boolean field for EndVerifyAck messages was missing, causing a crash
if such a message (or something that happened to look enough like such a
message) was ever seen.

svn path=/trunk/; revision=6441
2002-10-17 01:29:30 +00:00
Jörg Mayer 7c4176d868 Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Jörg Mayer 173fe5aef4 Replace the types from sys/types.h and netinet/in.h by their glib.h
equivalents for the toplevel directory. The removal of winsock2.h will
hopefully not cause any problems under MSVC++, as those files using
struct timeval still include wtap.h, which still includes winsock2.h.

svn path=/trunk/; revision=5932
2002-08-02 23:36:07 +00:00
Guy Harris 77fa06b899 From Joerg Mayer:
dftest.c:
	     Remove #if-0-ed includes

	packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c,
        packet-wtp.c, ethereal_gen.py:
	     Remove redundant include varargs (already in snprintf.h,
	     and required only for snprintf.h)

	Remove unused include of snprintf.h from files not using
	"snprintf()".

svn path=/trunk/; revision=5889
2002-07-17 00:43:03 +00:00
Gerald Combs 0641e38087 Return an error for an invalid class instead of dumping core.
svn path=/trunk/; revision=5686
2002-06-16 17:08:43 +00:00
Gerald Combs cf247c7360 Require that the LMP and RSVP message types be greater than 0.
svn path=/trunk/; revision=5612
2002-06-02 23:55:11 +00:00
Gerald Combs 0caa130763 Mark a frame invalid if its message type value exceeds
LMPF_MSG_CHANNEL_STATUS_RESP.

svn path=/trunk/; revision=5611
2002-06-02 21:42:58 +00:00
Ashok Narayanan 292d541884 - Added support for LMP draft versions -02 and -03 (selectable in
protocol preferences)

- Added OSPF display filtering support, including OSPF/TE extensions

svn path=/trunk/; revision=5437
2002-05-10 18:37:38 +00:00
Guy Harris 9a80f0a521 Removal (or, at least, #ifdeffing out) of unused variables and
functions, from David Frascone.

svn path=/trunk/; revision=5288
2002-04-29 08:20:18 +00:00
Guy Harris 3af29ce7bf Use "%.10g", rather than "%f", for floating-point numbers. That will
display values that would fit in a 32-bit integer as integers, leaving
out all trailing zeroes after the decimal point (and leaving out the
decimal point if there are no digits left after the decimal point once
trailing zeroes are removed), and will use scientific notation for small
fractions or large numbers.

svn path=/trunk/; revision=5248
2002-04-25 06:34:42 +00:00
Guy Harris 36674e8e56 Use "tvb_get_ntohieee_float()" to fetch floating-point numbers.
Display those numbers as floating-point.

svn path=/trunk/; revision=5241
2002-04-24 20:18:01 +00:00
Guy Harris db31932941 From Joerg Mayer:
Declares some variables static.

	Creates a new include file packet-rsvp.h, and make use of it
	(change some extern decls to #inlcude).

	Move the file packet-pgm.h into packet-pgm.c as it is not used
	by anything outside packet-pgm.c.

svn path=/trunk/; revision=5162
2002-04-14 23:04:04 +00:00
Ashok Narayanan 60fae99640 Added support for the Link Management Protocol (LMP), used for optical
signalling and Generalized MPLS. This commit contains code for the
protocol version described in draft-ietf-ccamp-lmp-03.txt.

svn path=/trunk/; revision=5138
2002-04-10 22:00:49 +00:00