aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis-clv.c
AgeCommit message (Collapse)AuthorFilesLines
2003-12-08From Hannes Gredler:Guy Harris1-11/+39
- unify the IS-IS CLV space IS-IS uses a unified CLV space across all Level and PDU Types there is no need to define PDU- and Level- Specific CLV Types; - clean up Authentication CLV TLV #10 is the official supported TLV for carrying authentication information- todays code displays TLV #10 as non-standard which is wrong; also the notion of "Domain" "Authentication" and "Link" password has disappeared from contemporary routing SW; - add IP Authentication CLV dissector this CLV is depreciated - however it is using different semantics than TLV #10 so we need a dedicated dissector; - add Checksum CLV dissector add support for RFC 3358 Checksum CLVs majority of code re-used from the LSP checksum verification dissector. svn path=/trunk/; revision=9204
2003-06-04Use "g_string_append()" rather than "g_string_sprintfa()" if we're justGuy Harris1-3/+3
appending a constant string. svn path=/trunk/; revision=7781
2003-05-24Use a GString to store the formatted authentication information. (ThisGuy Harris1-21/+32
also fixes a bug where we were putting a null terminator past the end of an on-the-stack string buffer.) svn path=/trunk/; revision=7735
2003-05-24Fix more string-related nits found by Timo Sirainen/Gerald Combs1-7/+9
svn path=/trunk/; revision=7732
2003-04-02We don't use snprintf, so we don't need to include snprintf.h.Guy Harris1-5/+1
svn path=/trunk/; revision=7396
2003-04-02"proto_tree_add_text()" takes printf-style arguments; there's no need toGuy Harris1-8/+5
use snprintf to format a string into a buffer and then supply that string to "proto_tree_add_text()". svn path=/trunk/; revision=7395
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-47/+47
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-6/+2
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-06-29Use a GString to hold the formatted area address, so that we don'tGuy Harris1-26/+41
overflow a fixed-length buffer. svn path=/trunk/; revision=5802
2002-06-28From Hannes Gredler: fix display of one-byte NETs in ISIS dissector.Guy Harris1-14/+28
svn path=/trunk/; revision=5786
2002-04-07Get rid of the unused hf_ value "hf_isis_hello_clv_restart".Guy Harris1-41/+41
Use the "tree_id" argument to "isis_dissect_mt_clv()" for the 2-byte MT IDs, and arrange that the two hf_ values passed as that argument actually be defined for protocol fields. Fix the loop in "isis_dissect_mt_clv()" so that it actually catches an odd byte at the end (i.e., loop until there is data at all, not until there is 1 or fewer bytes), and put that odd byte, if it exists, into the tree as a 1-byte text item, not a 2-byte text item. svn path=/trunk/; revision=5113
2002-04-07Get rid of unused "pinfo" arguments.Guy Harris1-36/+27
svn path=/trunk/; revision=5112
2002-04-02Just use "proto_tree_add_item()" to add IP addresses - don't botherGuy Harris1-11/+3
copying to a variable and then using that. svn path=/trunk/; revision=5079
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-2/+2
"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
2001-08-22Fixes from Hannes Gredler.Guy Harris1-2/+2
svn path=/trunk/; revision=3864
2001-07-02Tvbuffified ISIS dissector, from Ronnie Sahlberg.Guy Harris1-108/+121
svn path=/trunk/; revision=3626
2001-06-23More IS-IS updates.Guy Harris1-3/+54
HELLO message support in RSVP. svn path=/trunk/; revision=3604
2001-06-05hmac-md5 authentication support for IS-IS, from Hannes Gredler.Guy Harris1-25/+35
svn path=/trunk/; revision=3517
2001-05-14Various ISIS improvements (ISIS IPv6 routing TLV dissection, ISISGuy Harris1-1/+44
traffic engineering TLV dissection, IS neighbor and IP reachability TLVs given their own subtree types), from Jean-Christian Pennetier. svn path=/trunk/; revision=3413
2001-04-16Assorted ISIS enhancements from Hannes Gredler.Guy Harris1-5/+48
When dissecting the ISIS NLPID CLV, use the "nlpid_vals" array to convert NLPID values to protocol names. svn path=/trunk/; revision=3308
2001-04-08OSI network layer over PPP support, fix to P2P ISIS processing, and ISISGuy Harris1-1/+48
hostname TLV support, from Hannes Gredler. svn path=/trunk/; revision=3271
2000-08-11Miscellaneous code cleaningLaurent Deniel1-9/+5
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-08-10Fix decoding of short ISIS CLV data frames.Laurent Deniel1-2/+2
But there is still a problem with the isis_dissect_unknown procedure which calls proto_tree_add_text: the va_list arguments are incorrectly decoded in proto.c. I suspect a problem with inclusion of stdarg.h vs. varargs.h but for now, I can't figure out where ... (problem on Linux intel with gcc 2.91.66). svn path=/trunk/; revision=2244
2000-06-19Make the "isis_hello.source_id" an FT_BYTES field rather than anGuy Harris1-3/+4
FT_ETHER field; the ISIS spec doesn't say it's necessarily a 6-byte Ethernet address (and, if it's FT_BYTES, you can test it in a filter much the same way you test an Ethernet address). Make "isis_hello.lan_id" an FT_BYTES field rather than an FT_STRING field - it's an array of bytes, not a character string. Don't require that "system ID" fields be 6 octets; use the size value from the ISIS PDU header. (This means that PDUs containing "system ID" fields can't be described as C structures; dissect them by stepping the offset instead.) svn path=/trunk/; revision=2080
2000-05-31Add routines for adding items to a protocol tree that take arguments ofGuy Harris1-2/+2
a particular type, rather than taking a varargs list, along the lines of the "proto_tree_add_XXX_format()" routines. Replace most calls to "proto_tree_add_item()" and "proto_tree_add_item_hidden()" with calls to those routines. Rename "proto_tree_add_item()" and "proto_tree_add_item_hidden()" to "proto_tree_add_item_old()" and "proto_tree_add_item_hidden_old()", and add new "proto_tree_add_item()" and "proto_tree_add_item_hidden()" routines that don't take the item to be added as an argument - instead, they fetch the argument from the packet whose tvbuff was handed to them, from the offset handed to them. svn path=/trunk/; revision=2031
2000-05-11Add tvbuff class.Gilbert Ramirez1-7/+7
Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
2000-04-15Ralf Schneider's changes to enhance to OSI CLNP, CLTP, and ISIS supportGuy Harris1-2/+4
and to add OSI ESIS support. svn path=/trunk/; revision=1865
1999-12-15Include "snprintf.h" on platforms that don't have an "snprintf()" ofGuy Harris1-1/+10
their own. svn path=/trunk/; revision=1348
1999-12-15Stuart Stanley's ISIS dissection support.Guy Harris1-0/+333
svn path=/trunk/; revision=1340