aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis-hello.c
Commit message (Collapse)AuthorAgeFilesLines
* From Hannes Gredler: make the IS-IS dissector more verbose in the INFOGuy Harris2002-08-291-16/+19
| | | | | | | | | | | | | | field - specifically for IIHs the System-ID of the Hello; LSPs the LSP-ID, Sequence #, Lifetime; CSNPs the LAN-ID, Start LSP-ID, End LSP-ID. and change the display of some IDs. Clean up white space. svn path=/trunk/; revision=6128
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-54/+54
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-5/+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. svn path=/trunk/; revision=5932
* From Joerg Mayer: mark unused arguments as such.Guy Harris2002-05-021-32/+34
| | | | | | | | | | Add a check in "dissect_hello_restart_clv()" that the length of the TLV is correct. Use "val_to_str()" to get the name of the adjacency state in "dissect_hello_ptp_adj_clv()". svn path=/trunk/; revision=5357
* Get rid of the unused hf_ value "hf_isis_hello_clv_restart".Guy Harris2002-04-071-2/+4
| | | | | | | | | | | | | 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
* Get rid of unused "pinfo" arguments.Guy Harris2002-04-071-64/+37
| | | | svn path=/trunk/; revision=5112
* Support for the new restart TLV, from Hannes Gredler.Guy Harris2002-02-091-3/+56
| | | | svn path=/trunk/; revision=4712
* Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris2002-01-241-3/+2
| | | | | | | | | | | | arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. svn path=/trunk/; revision=4605
* Include files from the "epan" directory and subdirectories thereof withGuy Harris2002-01-211-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
* From Hannes Gredler:Guy Harris2001-12-261-2/+3
| | | | | | | | | | | System IDs in IS neighbor CLVs in Hello PDUs are assumed to be MAC addresses, so use "get_ether_name()" on them to try to resolve them to host names. Properly label IS type values of ISIS_LSP_TYPE_LEVEL_2 as being "Level 1 and Level 2 IS". svn path=/trunk/; revision=4451
* Put the Hello, LSP, and {C,P}SNP ISIS stuff into the ISIS protocol,Guy Harris2001-12-201-37/+18
| | | | | | rather than having them each have their own protocol. svn path=/trunk/; revision=4432
* Moved from using dissect_data() to using call_dissector()Ed Warnicke2001-11-261-2/+9
| | | | svn path=/trunk/; revision=4269
* Fixes from Hannes Gredler.Guy Harris2001-08-221-7/+7
| | | | svn path=/trunk/; revision=3864
* Fetch values only once from the tvbuff, and save them in a variable,Guy Harris2001-07-021-16/+23
| | | | | | | | | | | | | | | | | rather than calling the tvbuff accessor multiple times. Use "proto_tree_add_item()" for fields whose values we don't care about in the code. BTW, apologies to Hannes Gredler - the changes with More IS-IS updates. HELLO message support in RSVP. were from him, but I forgot to put that in the checkin message. svn path=/trunk/; revision=3628
* Tvbuffified ISIS dissector, from Ronnie Sahlberg.Guy Harris2001-07-021-149/+166
| | | | svn path=/trunk/; revision=3626
* Add HFILL to explicitly fill in some additional structure members.Guy Harris2001-06-261-2/+2
| | | | svn path=/trunk/; revision=3609
* More IS-IS updates.Guy Harris2001-06-231-4/+125
| | | | | | HELLO message support in RSVP. svn path=/trunk/; revision=3604
* From Joerg Mayer: explicitly fill in all members of aGuy Harris2001-06-181-10/+10
| | | | | | | "header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
* hmac-md5 authentication support for IS-IS, from Hannes Gredler.Guy Harris2001-06-051-2/+2
| | | | svn path=/trunk/; revision=3517
* Various ISIS improvements (ISIS IPv6 routing TLV dissection, ISISGuy Harris2001-05-141-1/+53
| | | | | | | traffic engineering TLV dissection, IS neighbor and IP reachability TLVs given their own subtree types), from Jean-Christian Pennetier. svn path=/trunk/; revision=3413
* Assorted ISIS enhancements from Hannes Gredler.Guy Harris2001-04-161-4/+4
| | | | | | | When dissecting the ISIS NLPID CLV, use the "nlpid_vals" array to convert NLPID values to protocol names. svn path=/trunk/; revision=3308
* OSI network layer over PPP support, fix to P2P ISIS processing, and ISISGuy Harris2001-04-081-10/+11
| | | | | | hostname TLV support, from Hannes Gredler. svn path=/trunk/; revision=3271
* Have "proto_register_protocol()" build a list of data structures forGuy Harris2001-01-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810
* Add the "Edit:Protocols..." feature which currently only implementsLaurent Deniel2000-08-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the following: It is now possible to enable/disable a particular protocol decoding (i.e. the protocol dissector is void or not). When a protocol is disabled, it is displayed as Data and of course, all linked sub-protocols are disabled as well. Disabling a protocol could be interesting: - in case of buggy dissectors - in case of wrong heuristics - for performance reasons - to decode the data as another protocol (TODO) Currently (if I am not wrong), all dissectors but NFS can be disabled (and dissectors that do not register protocols :-) I do not like the way the RPC sub-dissectors are disabled (in the sub-dissectors) since this could be done in the RPC dissector itself, knowing the sub-protocol hfinfo entry (this is why, I've not modified the NFS one yet). Two functions are added in proto.c : gboolean proto_is_protocol_enabled(int n); void proto_set_decoding(int n, gboolean enabled); and two MACROs which can be used in dissectors: OLD_CHECK_DISPLAY_AS_DATA(index, pd, offset, fd, tree) CHECK_DISPLAY_AS_DATA(index, tvb, pinfo, tree) See also the XXX in proto_dlg.c and proto.c around the new functions. svn path=/trunk/; revision=2267
* Make the "isis_hello.source_id" an FT_BYTES field rather than anGuy Harris2000-06-191-56/+84
| | | | | | | | | | | | | | | | 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
* Add routines for adding items to a protocol tree that take arguments ofGuy Harris2000-05-311-5/+5
| | | | | | | | | | | | | | | | | 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
* Add tvbuff class.Gilbert Ramirez2000-05-111-10/+10
| | | | | | | | | | | | | | | 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
* Ralf Schneider's changes to enhance to OSI CLNP, CLTP, and ISIS supportGuy Harris2000-04-151-62/+47
| | | | | | and to add OSI ESIS support. svn path=/trunk/; revision=1865
* Fix from Ralf Schneider to the IS Neighbor dissection.Guy Harris2000-03-281-2/+2
| | | | svn path=/trunk/; revision=1754
* Change dfilter_init() to check for empty-string abbreviations and forGilbert Ramirez2000-03-201-12/+12
| | | | | | | duplicate abbreviations. All mods to packet-*.c files are fixes to remove those cases. svn path=/trunk/; revision=1733
* Break proto_tree_add_item_format() into multiple functions:Gilbert Ramirez2000-03-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto_tree_add_protocol_format() proto_tree_add_uint_format() proto_tree_add_ipxnet_format() proto_tree_add_ipv4_format() proto_tree_add_ipv6_format() proto_tree_add_bytes_format() proto_tree_add_string_format() proto_tree_add_ether_format() proto_tree_add_time_format() proto_tree_add_double_format() proto_tree_add_boolean_format() If using GCC 2.x, we can check the print-format against the variable args passed in. Regardless of compiler, we can now check at run-time that the field type passed into the function corresponds to what that function expects (FT_UINT, FT_BOOLEAN, etc.) Note that proto_tree_add_protocol_format() does not require a value field, since the value of a protocol is always NULL. It's more intuitive w/o the vestigial argument. Fixed a proto_tree_add_item_format-related bug in packet-isis-hello.c Fixed a variable usage bug in packet-v120.c. (ett_* was used instead of hf_*) Checked in Guy's fix for the function declearation for proto_tree_add_text() and proto_tree_add_notext(). svn path=/trunk/; revision=1713
* Fix a bunch of dissectors to use "pi.captured_len" rather thanGuy Harris2000-01-241-4/+4
| | | | | | | | | | "fd->cap_len" for the frame length - or to use macros such as "BYTES_ARE_IN_FRAME()", "IS_DATA_IN_FRAME()", and "END_OF_FRAME", which use "pi.captured_len" - so that they correctly handle frames where the actual data length of the packet is less than the size of the raw frame, e.g. with encapsulations such as ISL. svn path=/trunk/; revision=1530
* Stuart Stanley's ISIS dissection support.Guy Harris1999-12-151-0/+580
svn path=/trunk/; revision=1340