diff options
author | Anthony Coddington <anthony.coddington@endace.com> | 2016-06-14 13:27:25 +1200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-07-30 17:44:38 +0000 |
commit | 765f3b53cfef707272652852639a9194c81f9c3d (patch) | |
tree | 79cd07e42b4a6e306c926fed28d1bafd7c53b6f8 /epan/dissectors/packet-ptp.h | |
parent | 183d7f3b78de30581390244a72c6ab328e6338f0 (diff) |
PTP: Expose ptp_v2 value strings for use by other dissectors
Also rename ptp_v2 value strings in packet-ptp for better consistency.
TODO: could also be used and combined with definitions in packet-cip.
Change-Id: I84a9ae566ae6abdd95910cb5709bb63c2b7c26b8
Reviewed-on: https://code.wireshark.org/review/16781
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-ptp.h')
-rw-r--r-- | epan/dissectors/packet-ptp.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ptp.h b/epan/dissectors/packet-ptp.h new file mode 100644 index 0000000000..4962833928 --- /dev/null +++ b/epan/dissectors/packet-ptp.h @@ -0,0 +1,31 @@ +/* packet-ptp.h + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __PACKET_PTP_H__ +#define __PACKET_PTP_H__ + +extern value_string_ext ptp_v2_networkProtocol_vals_ext; +extern value_string_ext ptp_v2_clockAccuracy_vals_ext; +extern value_string_ext ptp_v2_timeSource_vals_ext; +extern value_string_ext ptp_v2_portState_vals_ext; +extern const value_string ptp_v2_delayMechanism_vals[]; + +#endif /* packet-ptp.h */ |