diff options
author | Michael Mann <mmann78@netscape.net> | 2019-01-01 17:07:55 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-01-02 08:26:28 +0000 |
commit | ee231105cc73ddcc8fc296915c2b626965439d17 (patch) | |
tree | 01cbd5f81bb7d4ecdf8796da24c6e228797d5671 /epan/dissectors/packet-dpaux.h | |
parent | ae2a75233cec4e1286964963e6ac4ba936322cb1 (diff) |
dpaux: Minor improvements
1. Pass dissector data to dpaux dissector directly instead of using p_get_proto_data.
2. Don't assume dissector data will always be present and default to "sink" if
that is the case.
3. tvb_memdup isn't needed for proto_tree_add_bytes
4. Use value_string to save switch cases.
5. Bugfix major/minor version dissection.
Change-Id: I018d923537ce276fda8be1884f5bb3a8b2eef862
Reviewed-on: https://code.wireshark.org/review/31297
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dpaux.h')
-rw-r--r-- | epan/dissectors/packet-dpaux.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dpaux.h b/epan/dissectors/packet-dpaux.h index e0ab61be03..828aba5687 100644 --- a/epan/dissectors/packet-dpaux.h +++ b/epan/dissectors/packet-dpaux.h @@ -11,8 +11,6 @@ #ifndef PACKET_DPAUX_H #define PACKET_DPAUX_H -extern int proto_dpaux; - struct dpaux_info { gboolean from_source; }; |