Commit Graph

72 Commits

Author SHA1 Message Date
hannes
7310e34463 display cosmetics: add missing colons and show codepoints for gmpls 2003-10-20 10:35:20 +00:00
hannes
31a4462cfe support for generalized label as per rfc3471, correct offset for waveband c-type, support for recover label as per rfc3474 2003-06-07 23:05:19 +00:00
hannes
4254cbe7d1 add support for GMPLS related objects as per rfc3473 2003-06-07 22:41:31 +00:00
hannes
0364e27192 fix format string & arguments 2003-05-08 14:52:20 +00:00
hannes
c1af4ad9fd added subobject flag parsing for the RRO object, added additional SESSION_ATTR_OBJ flag codepoints 2003-03-14 10:03:52 +00:00
guy
d85d9ee28c Make format argument lists match the format strings. 2003-03-11 06:40:58 +00:00
hannes
5379087cc4 bugfix: wrong starting pointer for Session name in RSVP_OBJ_SESSION_ATTRIBUTE 2003-03-05 11:28:21 +00:00
hannes
15e66a139f added support for parsing the RSVP Properties and Error Spec Object 2003-03-05 11:13:34 +00:00
hannes
19a360850c IPv4, IPv6 C-Types for Sender Template Obj., display of break bit in intserv per-service header 2002-12-14 02:03:10 +00:00
hannes
9c58a41455 rework of the intserv service type dissector 2002-12-14 01:38:32 +00:00
hannes
52fe86f06d added support for RSVP CONFIRM object 2002-12-12 18:31:58 +00:00
hannes
2644a5e317 -modularized the decoding of intserv related parameters in rsvp_intserv_print()
- added support for parameters 4,6,8,10
-support for the remaining missing intserv (SENDER_TSPEC,ADSPEC) objects
2002-12-12 15:58:33 +00:00
hannes
bdfe570710 support for fastreroute and detour RSVP objects as per draft-ietf-mpls-rsvp-lsp-fastreroute-01 2002-12-12 13:29:20 +00:00
guy
ae560894b5 Use "%.10g" rather than "%.3f" to print floating-point numbers, as it
1) switches to "e" format for sufficiently large or small
	   numbers;

	2) doesn't put out any unnecessary trailing 0's.
2002-12-11 07:18:08 +00:00
guy
fcc82f451d The "__attribute__((packed))" tag on structures causes some files not to
compile with Sun C, as "interface.h" isn't being included before the
structures are being declared.

Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun
C to generate code that's safe with unaligned accesses, as
"__attribute__" is defined as a do-nothing macro with compilers that
don't support it.

Therefore, we get rid of that tag on the structures to which it was
added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch
16-bit and 32-bit big-endian quantities from packets.  We also fix some
other references to multi-byte quantities to get rid of code that tries
to do unaligned loads on platforms that don't support them.

We also throw in a hack that makes those macros use
"__attribute__((packed))" on structures containing only one 16-bit or
32-bit integer to get the compiler to generate unaligned-safe code
rather than doing it by hand.  (GCC on SPARC produces the same code that
doing it by hand does; I don't know if GCC on any other big-endian
strict-alignment processor generates better code for that case.  On
little-endian processors, as "ntohs()" and "ntohl()" might be functions,
that might actually produce worse code.)

Fix some places to use "%u" rather than "%d" to print unsigned
quantities.
2002-12-11 07:13:49 +00:00
guy
c44ee4aace "%.f" is not a valid format string; you need a number after the ".".
Use "%.3f".

The floating-point numbers in RSVP packets are stored in big-endian
format; extract them as such, so that when we process them as numbers
they're in native byte order, not network byte order.
2002-12-10 08:16:22 +00:00
hannes
657c5df865 add some more (intserv) related RSVP objects 2002-12-04 19:04:56 +00:00
itojun
10afb02ac8 put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and so
forth while i'm here
2002-11-09 17:19:16 +00:00
hannes
d504292ba8 support for RSVP session attribute object 2002-10-18 13:53:42 +00:00
hannes
87b71d4a5d support for HELLO,SESSION,STYLE,SENDER_TEMPLATE object - improved output of unknown c-types 2002-10-10 19:34:51 +00:00
hannes
f7653c76cf better handling of c-type display, support for restart cap object 2002-10-06 08:00:26 +00:00
hannes
3e12b0b42c initial checkin 2002-10-03 16:01:58 +00:00