aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vrt.c
AgeCommit message (Collapse)AuthorFilesLines
2023-11-20Remove init of proto variablesStig Bjørlykke1-167/+167
Remove init of proto, header field, expert info and subtree variables. This will reduces the binary size by approximate 1266320 bytes due to using .bss to zero-initialize the fields. The conversion is done using the tools/convert-proto-init.py script.
2023-11-18dissectors: Remove init of hf and ett variable arraysStig Bjørlykke1-6/+4
Manually remove init of hf and ett variable arrays because this cannot be easily done using the convert script.
2023-11-17dissectors: Remove init of hf and ett variable arraysStig Bjørlykke1-1/+1
Manually remove init of hf and ett variable arrays because this cannot be easily done using the convert script.
2023-09-19Use `register_dissector()` for more protocolsDavid Perry1-3/+4
Changes several calls of `create_dissector_handle()` to instead call `register_dissector()` with a name for the dissector. This should handle all dissectors in `epan/` from `packet-p*` to `packet-v*`. This change allows affected dissectors to be findable by calls to `find_dissector()`. In turn, this opens up more command-line use for these protocols, including fuzzshark and rawshark, as well as lua use via `Dissector.get()`. Where needed, move the call from the protocol handoff function to the protocol register function, save the result in a static variable, and use that variable in the handoff function. There were some calls to `create_dissector_handle()` or `register_dissector()` which passed `-1` as the protocol argument. When I saw those I corrected them to pass the actual `proto_foo` identifier instead. Partially addresses #5612
2023-06-27Fix more full item masks that should not be.Martin Mathieson1-2/+2
2023-03-22add ability to dissect VITA-49 encapsulated in RTPBill Durr1-0/+3
2023-02-02Fix some spelling errorsMartin Mathieson1-1/+1
2023-01-31VRT: add decoding of more CIF1 fields to VITA 49 dissectorCody Planteen1-8/+174
2022-11-18Fix some cppcheck issuesMartin Mathieson1-1/+1
2022-11-10VRT: add context packet support to VITA 49 dissectorCody Planteen1-3/+1651
Add complete decoding of CIF0 context packet fields per ANSI/VITA 49.2-2017 standard. Includes framework for future CIF1-CIF3 support with partial implementation of CIF1.
2021-10-07Fix some field mask widths.Martin Mathieson1-2/+2
2020-06-21VRT: fix the type of elements of an array of pointers to hf_ values.Guy Harris1-2/+2
"int * const a[]" means "array of const pointers to (non-const) int". so the array elements are all const; "const int *a[]" means "array of (non-const) pointrs to const int". Change-Id: I790f6ecb2d9616ff1ae9ca47364e1d5443e36ace Reviewed-on: https://code.wireshark.org/review/37528 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
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-05-02VITA 49: add an explicit option to activate Ettus UHD header workaroundPascal Quantin1-1/+12
Bug: 14641 Change-Id: Ie3259a831c3736f8879b1e87f3dff31d6d036b40 Reviewed-on: https://code.wireshark.org/review/27249 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
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-10-13Convert most UDP dissectors to use "auto" preferences.Michael Mann1-36/+12
Similar to the "tcp.port" changes in I99604f95d426ad345f4b494598d94178b886eb67, convert dissectors that use "udp.port". More cleanup done on dissectors that use both TCP and UDP dissector tables, so that less preference callbacks exist. Change-Id: If07be9b9e850c244336a7069599cd554ce312dd3 Reviewed-on: https://code.wireshark.org/review/18120 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-12-09new_create_dissector_handle -> create_dissector_handle for dissector directory.Michael Mann1-1/+1
Some of the ASN.1 dissectors still generate a new_create_dissector_handle from the tool itself, so leave those for now. Change-Id: Ic6e5803b1444d7ac24070949f5fd557909a5641f Reviewed-on: https://code.wireshark.org/review/12484 Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-11-19Fixing picosecond timestamp for vrt protocol. Needs to be parsed as uint64 ↵Nick Bedbury1-1/+1
not double Change-Id: I4c3cf4aa84a9208c382fa4a50ca3c2ffb1773ead Reviewed-on: https://code.wireshark.org/review/11962 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-11-18create_dissector_handle -> new_create_dissector_handleMichael Mann1-2/+3
Picking off "easy" dissectors that only have one or two exit points at most. Change-Id: I9c7d1c092bbae896ec0c2832617891346927f2e1 Reviewed-on: https://code.wireshark.org/review/11932 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-13Fix various issues:Bill Meier1-123/+128
- Display of header bit fields was incorrect; - Computation of the data length was incorrect; - Display of trailer 'indicator enable' & 'indicator' bit fields was incorrect; - 'Display' field of certain hf[] entries was incorrect. - Pedantic: Use ENC_BIG_ENDIAN instead of ENC_NA in certain places. See Bug #9539 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9539 svn path=/trunk/; revision=54067
2013-12-10- Forward declaration of register functions.Anders Broman1-0/+2
svn path=/trunk/; revision=53911
2013-03-29From Dario Lombardo via ↵Pascal Quantin1-57/+57
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8506 : Fix incompatible display filters using the same name svn path=/trunk/; revision=48638
2013-03-29Fix two instances of col_set_str being used with ephemeral memory returnedEvan Huus1-1/+1
from val_to_str. Use col_add_str instead. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8537 svn path=/trunk/; revision=48636
2013-03-28From Dario Lombardo via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8506Evan Huus1-7/+5
Proper authorship and attribution information for VITA 49 Radio Transport dissector. svn path=/trunk/; revision=48617
2013-03-25From Dario Lombardo, Alexander Chemeris and Ivan Klyuchnikovhis viaEvan Huus1-0/+682
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8506 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8507 Dissectors for the VRT (VITA 49 Radio Transport) and UHD protocols. From me: modelines and misc trivial cleanups. svn path=/trunk/; revision=48550