aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lat.c
AgeCommit message (Collapse)AuthorFilesLines
2019-07-26HTTPS (almost) everywhere.Guy Harris1-1/+1
Change all wireshark.org URLs to use https. Fix some broken links while we're at it. Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c Reviewed-on: https://code.wireshark.org/review/34089 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-12-13Adjust proto_tree_add_uint_format_value calls to use unit stringMichael Mann1-4/+2
Several calls to proto_tree_add_uint_format_value could be better served using BASE_UNIT_STRING with a "unit string" in hf_ field. There also a few cases where proto_tree_add_uint_format_value could just be proto_tree_add_uint. Added a few more "common" unit string values to unit_strings.[ch] Change-Id: Iaedff82c515269c9c31ab9100dff19f5563c932d Reviewed-on: https://code.wireshark.org/review/19242 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-07-06LAT: use ENC_ASCII when adding strings.Jeff Morriss1-10/+10
Change-Id: If3970fbc25d4085037fb975498de02449e2c25c1 Reviewed-on: https://code.wireshark.org/review/16317 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-07-06LAT: register several hf's.Jeff Morriss1-0/+16
Found by checkhf.pl Change-Id: If985d04f24a188ac402bc11cf61d29aa418ad242 Reviewed-on: https://code.wireshark.org/review/16314 Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-23Fix whitespace.Guy Harris1-4/+4
Change-Id: I9ec492c90e22813f6336130a875b9bca7179af6a Reviewed-on: https://code.wireshark.org/review/14580 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-03-23Expand the LAT dissection.Guy Harris1-146/+1718
Base it on the DEC specification, not on whatever the Linux DECNET people managed to reverse-engineer. Change-Id: I60586f52e35f9f61e4aed93f315bfaceebe68cce Reviewed-on: https://code.wireshark.org/review/14579 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-03-20Create call_data_dissector() to call data dissector.Michael Mann1-3/+0
This saves many dissectors the need to find the data dissector and store a handle to it. There were also some that were finding it, but not using it. For others this was the only reason for their handoff function, so it could be eliminated. Change-Id: I5d3f951ee1daa3d30c060d21bd12bbc881a8027b Reviewed-on: https://code.wireshark.org/review/14530 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-16LAT: Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-2/+0
Change-Id: I3e2fad7f0307e599802c37040b34c899efb0e603 Reviewed-on: https://code.wireshark.org/review/13328 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-11LAT: fix no previous prototype for 'proto_register/reg_handoff_lat' ↵Alexis La Goutte1-0/+3
[-Wmissing-prototypes] Change-Id: Ifac7943f909fdb73395824f7bb6925476edc8cff Reviewed-on: https://code.wireshark.org/review/13181 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-09No need to include <sys/types.h>.Guy Harris1-59/+28
(If it turns out that there is a need, I'll fix the code to remove the need.) Use BASE_NONE for string fields, and reformat the hf[] array a bit. Change-Id: I62805e3054266589c3fa25a0047ea3e7114484d6 Reviewed-on: https://code.wireshark.org/review/13141 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-09Get rid of unused variable.Guy Harris1-2/+1
Change-Id: Ic9104ddba17797a3e541cebd4326035e874b27de Reviewed-on: https://code.wireshark.org/review/13143 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-09Add routines to add an item and return the item's real length.Guy Harris1-2/+3
proto_item_get_len() is *not* guaranteed to return a correct value. Even if there's a non-null tree item, it might be pointing to a "faked" item; it really shouldn't be used. So add proto_tree_add_item_ret_length() and proto_tree_add_item_new_ret_length(), which calculate the real length themselves and return it through a pointer. Fix as many places as we straightforwardly can to use them rather than to use proto_item_get_len(). (There's a Lua API for proto_item_get_len(), so we keep it around, but we should add Lua APIs for the new routines, and deprecate the old API.) Fix ptvcursor_add() to do the same thing that proto_tree_add_item_ret_length() and proto_tree_add_item_new_ret_length() do. Split the TRY_TO_FAKE_THIS_ITEM macros into a macro to check for the tree being null and to try to fake the item. We don't always use the former macro, as we might need to do more than just return NULL if the incoming tree is null (for example, calculating the item's real length and using it...). new_field_info() never returns NULL; remove checks for it. The check for a null tree is done before the calls to new_field_info(). Change-Id: I002a218d1f810c73e0de837e0ac6ebcde21bacec Reviewed-on: https://code.wireshark.org/review/13139 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08LAT: Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+1
Change-Id: Id8acd15334650ce07de9991fadf3a0c8c09cddcc Reviewed-on: https://code.wireshark.org/review/13126 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-08Again, command values are in decimal, not hex, in DEC's LAT spec.Guy Harris1-1/+1
Change-Id: I693eabbba3f9140bccb9a5e490633ba139f13193 Reviewed-on: https://code.wireshark.org/review/13129 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08The DEC spec gives command codes in decimal.Guy Harris1-1/+1
Change-Id: I938152dc6f3ee8b17e4c1463249d326efd29266f Reviewed-on: https://code.wireshark.org/review/13127 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08LAT: fix indent and modelinesAlexis La Goutte1-3/+16
Change-Id: Ic6086d0dcbda425aee362d31b1b939d50ed85011 Reviewed-on: https://code.wireshark.org/review/13123 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08Match DEC's spec.Guy Harris1-128/+179
More to dissect, if somebody has the time and energy. Change-Id: I27eca69f141ec391b48d03398f54a8c4b6ecf39f Reviewed-on: https://code.wireshark.org/review/13122 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08Update the copyright.Guy Harris1-3/+3
As I said, 15 years. :-) Change-Id: Iaca3805547b0a822d160b87cb2b8ff453839db00 Reviewed-on: https://code.wireshark.org/review/13120 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08Remove trailing whitespace.Guy Harris1-5/+5
Change-Id: Ic115862d4bf9f2847c768cd539d83883e32eeed2 Reviewed-on: https://code.wireshark.org/review/13119 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08LAT dissector.Guy Harris1-0/+514
Only 15 years later: https://www.wireshark.org/lists/ethereal-dev/200010/msg00070.html as I clean up stuff I've had lying around for a while. LAT spec found at bitsavers.org; further work can use that. Change-Id: I486e4ab1ffb74d6e0b323202514cc352d63e9eef Reviewed-on: https://code.wireshark.org/review/13118 Reviewed-by: Guy Harris <guy@alum.mit.edu>