aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis-clv.c
AgeCommit message (Collapse)AuthorFilesLines
2003-06-04Use "g_string_append()" rather than "g_string_sprintfa()" if we're justguy1-3/+3
appending a constant string. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7781 f5534014-38df-0310-8fa8-9805f1628bb7
2003-05-24Use a GString to store the formatted authentication information. (Thisguy1-21/+32
also fixes a bug where we were putting a null terminator past the end of an on-the-stack string buffer.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7735 f5534014-38df-0310-8fa8-9805f1628bb7
2003-05-24Fix more string-related nits found by Timo Sirainen/gerald1-7/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7732 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-02We don't use snprintf, so we don't need to include snprintf.h.guy1-5/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7396 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-02"proto_tree_add_text()" takes printf-style arguments; there's no need toguy1-8/+5
use snprintf to format a string into a buffer and then supply that string to "proto_tree_add_text()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7395 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-47/+47
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-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-29Use a GString to hold the formatted area address, so that we don'tguy1-26/+41
overflow a fixed-length buffer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5802 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-28From Hannes Gredler: fix display of one-byte NETs in ISIS dissector.guy1-14/+28
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5786 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-07Get rid of the unused hf_ value "hf_isis_hello_clv_restart".guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5113 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-07Get rid of unused "pinfo" arguments.guy1-36/+27
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5112 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-02Just use "proto_tree_add_item()" to add IP addresses - don't botherguy1-11/+3
copying to a variable and then using that. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5079 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-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/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2001-08-22Fixes from Hannes Gredler.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3864 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-02Tvbuffified ISIS dissector, from Ronnie Sahlberg.guy1-108/+121
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3626 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-23More IS-IS updates.guy1-3/+54
HELLO message support in RSVP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3604 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-05hmac-md5 authentication support for IS-IS, from Hannes Gredler.guy1-25/+35
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3517 f5534014-38df-0310-8fa8-9805f1628bb7
2001-05-14Various ISIS improvements (ISIS IPv6 routing TLV dissection, ISISguy1-1/+44
traffic engineering TLV dissection, IS neighbor and IP reachability TLVs given their own subtree types), from Jean-Christian Pennetier. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3413 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-16Assorted ISIS enhancements from Hannes Gredler.guy1-5/+48
When dissecting the ISIS NLPID CLV, use the "nlpid_vals" array to convert NLPID values to protocol names. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3308 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-08OSI network layer over PPP support, fix to P2P ISIS processing, and ISISguy1-1/+48
hostname TLV support, from Hannes Gredler. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3271 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-11Miscellaneous code cleaningdeniel1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2254 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-10Fix decoding of short ISIS CLV data frames.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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2244 f5534014-38df-0310-8fa8-9805f1628bb7
2000-06-19Make the "isis_hello.source_id" an FT_BYTES field rather than anguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2080 f5534014-38df-0310-8fa8-9805f1628bb7
2000-05-31Add routines for adding items to a protocol tree that take arguments ofguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2031 f5534014-38df-0310-8fa8-9805f1628bb7
2000-05-11Add tvbuff class.gram1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1939 f5534014-38df-0310-8fa8-9805f1628bb7
2000-04-15Ralf Schneider's changes to enhance to OSI CLNP, CLTP, and ISIS supportguy1-2/+4
and to add OSI ESIS support. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1865 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-15Include "snprintf.h" on platforms that don't have an "snprintf()" ofguy1-1/+10
their own. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1348 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-15Stuart Stanley's ISIS dissection support.guy1-0/+333
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1340 f5534014-38df-0310-8fa8-9805f1628bb7