aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rsvp.c
AgeCommit message (Collapse)AuthorFilesLines
2004-05-19Fixes to LMP for draft-09 support.ashokn1-3/+3
Minor fix to RSVP for G-UNI object number. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10920 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-24Use "tvb_format_text()" to display a string, so that non-printableguy1-4/+3
characters are handled reasonably. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10473 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-23Change return type of tvb_format_text from guint8* to gchar*.jmayer1-2/+2
Remove now unnecessary casts in two files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9801 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-11From Mohammad Hanif: fix dissection of RSVP DETOUR object code.guy1-5/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8943 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-08From Mohammad Hanif:guy1-9/+44
correct and enhance support for RSVP FAST_REROUTE and DETOUR objects (source: draft-ietf-mpls-rsvp-lsp-fastreroute-03.txt); support an RSVP SESSION_OBJECT object with ctype = 1. This object contains resource affinities (source: RFC 3209). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8913 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-10From Akira Endoh: Diffserv MPLS signaling protocol support.guy1-3/+154
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8671 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-06When registering a field, make sure its ID is -1 or 0 - if it's not,guy1-5/+1
that probably means you've registered two fields with the same field ID variable, which is an error. Fix the bugs doing so found. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8629 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-22Remove undefined code.deniel1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7536 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-22From Akira Endoh:guy1-73/+198
- fix the bug by dissecting the Flags field in RRO IPv4/IPv6/label sub-object (The 1.80 version of packet-rsvp.c dissects the wrong field in a packet.) - erase unnecessary commas when displaying RRO IPv4 sub-object - add support for displaying the error value, written explanation in ERROR object - add support for draft-ietf-mpls-nodeid-subobject-00.txt git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7524 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-28Panic if a preference starts with the name of the module to which itguy1-2/+2
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". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7030 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-24From Albert Chin: get rid of trailing commas in enums, as Digital's,guy1-3/+3
err, umm, Compaq's, err, umm, HP's Tru64 C compiler doesn't like them. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6994 f5534014-38df-0310-8fa8-9805f1628bb7
2002-12-02Don't cast away constness, and fix variable and structure memberguy1-8/+8
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6726 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-24Don't use "unsigned long" to mean "32-bit unsigned integer", as it's notguy1-3/+3
32 bits on all platforms - it's 64 bits on some platforms. Use "guint32" instead. The same applies for "unsigned short" and "guint16". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6489 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-23Added support for Label Request Type 2 (ATM Label Range) andashokn1-2/+75
Type 3 (Frame Label Range) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6485 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-08- Fixed RRO flag support that got dropped in the previous commit.ashokn1-46/+266
- Added support for FRR as per draft-ietf-mpls-rsvp-lsp-fastreroute-00.txt git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6383 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-02Updates to RSVPashokn1-558/+585
- Added the RESTART_CAP and PROTECTION_INFO objects (GMPLS) - Cleaned up the tree variables & removed duplication - Cleaned up the RRO/ERO subobject decoding and removed duplication - Added IF-ID ERRORSPEC support - Cleaned up the HOP IF-ID code and removed duplication git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6365 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-706/+706
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-9/+1
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-31Don't loop forever in "find_rsvp_session_tempfilt()" orguy1-3/+10
"dissect_rsvp_msg_tree()" if there's a zero-length object. In "find_rsvp_session_tempfilt()", check to make sure the data exists before fetching it, so that it doesn't throw an exception - the information it returns is only used to put items into the protocol tree, so there's no reason to quit dissecting the packet just because it can't find that information because, for example, not enough of the packet data was captured. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5919 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-15Added support for dissecting RSVP Bundle Messagesashokn1-203/+290
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5881 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-14Add Booleans for the Ack and Srefresh messages, and move the Boolean forguy1-5/+13
the HELLO message to be in numerical message-code order. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5871 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-14Add a Boolean field for the Bundle message type.guy1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5870 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-06Properly check for unknown RSVP message types.guy1-19/+50
Note where the message types are defined. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5634 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-02Require that the LMP and RSVP message types be greater than 0.gerald1-3/+10
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5612 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-30From Albert Chin: fix various non-GCC compiler warnings.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5600 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-18Add a "break;" after a "default:" to fix an MSVC++ compilation error.gerald1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5498 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-16- Major cleanup of the RSVP dissectorashokn1-1741/+2702
- Added support for OIF O-UNI 1.0 (as per 125.7 standard) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5492 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-25Use "%.10g", rather than "%f", for floating-point numbers. That willguy1-15/+15
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5248 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-24Use "tvb_get_ntohieee_float()" to fetch floating-point numbers.guy1-35/+34
Display those numbers as floating-point. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5240 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-14From Joerg Mayer: get rid of some unused variables and arguments.guy1-2/+1
Use "tvb_get_ntohs()" to fetch the checksum from a VJ compressed packet, rather than doing the ntoh by hand. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5163 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-14From Joerg Mayer:guy1-3/+4
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5162 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-29Changed TBA GMPLS object numbers to proposed IETF numbers.ashokn1-11/+57
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5039 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-02"ulong" isn't defined on MacOS X (and probably isn't defined on someguy1-3/+3
other platforms, either) - don't use it. Instead, use "guint32", as the item in question is a 32-bit unsigned integer. In fact, it's a 32-bit unsigned integer containing a bit set, and the data type isn't a "long", so print it with "0x%08x", rather than "0x%04lx", so that all 8 hex digits are printed, and so that the format matches the data type. It also doesn't have to be initialized - the only code path in which it's used sets it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4842 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-01Added RSVP support for the Administrative Status object.ashokn1-1/+68
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4839 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-14GMPLS extensions for OSPF Opaque LSAsashokn1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4730 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-02Put in a "break" statement after the "default:" clause; GCC may allowguy1-1/+2
you to have a label with no statement after it, but other C compilers (e.g, MSVC++ 6.0) don't. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4678 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-31Added support for LSP-TUNNEL INTERFACE-ID object.ashokn1-35/+155
Some generic cleanups. Added sensible information to message and object summaries. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4654 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-3/+3
"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/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-29Changes to RSVP:ashokn1-151/+324
- Cleaned up TSpec and Flowspec support to handle multiple parameters - Added support for Compression Hint (RFC3006) - Added support for DCLASS (RFC2996) - Corrected some bugs in support for Null Service (RFC2997) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4459 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-26Added support for Generalized MPLS (GMPLS) to RSVPashokn1-20/+406
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4452 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"guy1-7/+7
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4370 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"guy1-3/+5
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-26Fix the rest of the signed/unsigned comparison warnings.gram1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4088 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-26Add HFILL to explicitly fill in some additional structure members.guy1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3609 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-23More IS-IS updates.guy1-5/+52
HELLO message support in RSVP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3604 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-18From Joerg Mayer: explicitly fill in all members of aguy1-42/+42
"header_field_info" structure, including the ones that are later set by the routines to register fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3561 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-14Cosmetic: Corrected "Maximum policed unit" to "Maximum packet size"ashokn1-7/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3546 f5534014-38df-0310-8fa8-9805f1628bb7
2001-05-01Bugfix: Removed an unnecessary and potentially spurious include from RSVP.ashokn1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3393 f5534014-38df-0310-8fa8-9805f1628bb7
2001-05-01- Added support for RSVP Refresh Reduction Extensionsashokn1-18/+215
(draft-ietf-rsvp-refresh-reduct-05). - Added one-line summary of each RSVP object in the object line. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3392 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-23Get rid of some unnecessary includes.guy1-2/+1
Fix up Gerald's e-mail address. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3371 f5534014-38df-0310-8fa8-9805f1628bb7