Commit graph

16 commits

Author SHA1 Message Date
Guy Harris
a002a0fec4 From Christian Falckenberg: beginnings of a MEGACO dissector.
Move SCTP payload protocol IDs to a header file, and get the PPIDs from
that header file rather than defining them in dissectors running atop
SCTP.  Use both the old(?) and official PPID for ASAP.

svn path=/trunk/; revision=6926
2003-01-14 23:53:40 +00:00
Michael Tüxen
78266cfe46 Added support for version 2 of the ID, port number can now be selected.
Based on a patch of Jeff Morriss.

svn path=/trunk/; revision=6595
2002-11-09 19:00:09 +00:00
Michael Tüxen
972849fff1 Fixed a bug in packet-m2pa.c regarding the handling of Acks.
svn path=/trunk/; revision=6312
2002-09-22 12:12:32 +00:00
Michael Tüxen
5800ff03d9 Updated to version 06 of the Internet Draft.
svn path=/trunk/; revision=6305
2002-09-20 06:35:15 +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
Michael Tüxen
d20fafc816 - updated to support draft-ietf-sigtran-m2pa-05.txt
- restructured the code.
- fixed some cosmetic bugs.

svn path=/trunk/; revision=6101
2002-08-27 19:28:23 +00:00
Guy Harris
22d6c611b1 From Michael Tuexen: fix SCTP port number for M2PA to be the
IANA-assigned number rather than the M2UA number.

svn path=/trunk/; revision=5718
2002-06-20 20:58:07 +00:00
Guy Harris
e7aa22129f From Michael Tuexen: show the filler only if present.
svn path=/trunk/; revision=5505
2002-05-18 22:25:40 +00:00
Guy Harris
629600a3d2 From Michael Tuexen:
- fix a bug with the LI field
	- remove some out of date comments
	- remove some unnecessary #includes

svn path=/trunk/; revision=5128
2002-04-08 19:18:11 +00:00
Guy Harris
7644017ed8 From Michael Tuexen: update to draft-ietf-sigtran-m2pa-04.txt.
svn path=/trunk/; revision=5037
2002-03-28 21:41:30 +00:00
Guy Harris
ee5ca25d31 Include files from the "epan" directory and subdirectories thereof with
"epan/..." pathnames, so as to avoid collisions with header files in any
of the directories in which we look (e.g., "proto.h", as some other
package has its own "proto.h" file which it installs in the top-level
include directory).

Don't add "-I" flags to search "epan", as that's no longer necessary
(and we want includes of "epan" headers to fail if the "epan/" is left
out, so that we don't re-introduce includes lacking "epan/").

svn path=/trunk/; revision=4586
2002-01-21 07:37:49 +00:00
Guy Harris
92915713d3 Allow a length of -1 to be specified when adding FT_NONE and FT_PROTOCOL
items to the protocol tree; it's interpreted as "the rest of the data in
the tvbuff".  This can be used if

	1) the item covers the entire packet or the remaining payload in
	   the packet

or

	2) the item's length won't be known until it's dissected, and
	   will be then set with "proto_item_set_len()" - if an
	   exception is thrown in the dissection, it means the item ran
	   *past* the end of the tvbuff, so saying it runs to the end of
	   the tvbuff is reasonable.

Convert a number of "proto_tree_add_XXX()" calls using
"tvb_length_remaining()", values derived from the result of
"tvb_length()", or 0 (in the case of items whose length is unknown) to
use -1 instead (using 0 means that if an exception is thrown, selecting
the item highlights nothing; using -1 means it highlights all the data
for that item that's available).

In some places where "tvb_length()" or "tvb_length_remaining()" was used
to determine how large a packet is, use "tvb_reported_length()" or
"tvb_reported_length_remaining()", instead - the first two calls
indicate how much captured data was in the packet, the latter two calls
indicate how large the packet actually was (and the fact that using the
latter could cause BoundsError exceptions to be thrown is a feature - if
such an exception is thrown, the frame really *was* short, and it should
be tagged as such).

Replace some "proto_tree_add_XXX()" calls with equivalent
"proto_tree_add_item()" calls.

Fix some indentation.

svn path=/trunk/; revision=4578
2002-01-20 22:12:39 +00:00
Guy Harris
23319ff023 Move the pointer to the "column_info" structure in the "frame_data"
structure to the "packet_info" structure; only stuff that's permanently
stored with each frame should be in the "frame_data" structure, and the
"column_info" structure is not guaranteed to hold the column values for
that frame at all times - it was only in the "frame_data" structure so
that it could be passed to dissectors, and, as all dissectors are now
passed a pointer to a "packet_info" structure, it could just as well be
put in the "packet_info" structure.

That saves memory, by shrinking the "frame_data" structure (there's one
of those per frame), and also lets us clean up the code a bit.

svn path=/trunk/; revision=4370
2001-12-10 00:26:21 +00:00
Guy Harris
28e886cb0b Update of M2PA support to draft 3, from Michael Tuexen.
svn path=/trunk/; revision=4316
2001-12-03 20:35:14 +00:00
Guy Harris
bced8711f6 Make "dissector_add()", "dissector_delete()", and "dissector_change()"
take a dissector handle as an argument, rather than a pointer to a
dissector function and a protocol ID.  Associate dissector handles with
dissector table entries.

svn path=/trunk/; revision=4308
2001-12-03 04:00:26 +00:00
Guy Harris
81a6c19ccf M2PA support, from Jeff Morriss.
svn path=/trunk/; revision=3596
2001-06-21 22:25:53 +00:00