diff options
author | Michael Mann <mmann78@netscape.net> | 2014-11-09 21:13:38 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-11-13 05:21:52 +0000 |
commit | d1ccc338d6ca2926193b86186ab3f11d3d4e7838 (patch) | |
tree | 454a462ac091421dc9d74fcc1e1a95fdf52de73b /epan/dissectors/packet-sflow.h | |
parent | 17798bc70b6b4f1b4adb640478b57eddf4251969 (diff) |
Add dissector table for sFlow header dissection.
Change-Id: I189a5b2d5f769395fa5e387f8be49b81903fb252
Reviewed-on: https://code.wireshark.org/review/5262
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>
Diffstat (limited to 'epan/dissectors/packet-sflow.h')
-rw-r--r-- | epan/dissectors/packet-sflow.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sflow.h b/epan/dissectors/packet-sflow.h new file mode 100644 index 0000000000..d2a32c420f --- /dev/null +++ b/epan/dissectors/packet-sflow.h @@ -0,0 +1,65 @@ +/* packet-sflow.h + * sFlow v5 dissection implemented according to the specifications + * at http://www.sflow.org/sflow_version_5.txt + * + * 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_SFLOW_H__ +#define __PACKET_SFLOW_H__ + +#define SFLOW_245_HEADER_ETHERNET 1 +#define SFLOW_245_HEADER_TOKENBUS 2 +#define SFLOW_245_HEADER_TOKENRING 3 +#define SFLOW_245_HEADER_FDDI 4 +#define SFLOW_245_HEADER_FRAME_RELAY 5 +#define SFLOW_245_HEADER_X25 6 +#define SFLOW_245_HEADER_PPP 7 + +/* We don't have an SMDS dissector yet + * + * Switched multimegabit data service (SMDS) was a connectionless service + * used to connect LANs, MANs and WANs to exchange data. SMDS was based on + * the IEEE 802.6 DQDB standard. SMDS fragmented its datagrams into smaller + * "cells" for transport, and can be viewed as a technological precursor of ATM. + */ +#define SFLOW_245_HEADER_SMDS 8 + +/* + * No AAL5 (ATM Adaptation Layer 5) dissector available. + * What does the packet look like? An AAL5 PDU? Where + * do the VPI/VCI pair appear, if anywhere? + */ +#define SFLOW_245_HEADER_AAL5 9 +#define SFLOW_245_HEADER_AAL5_IP 10 + +#define SFLOW_245_HEADER_IPv4 11 +#define SFLOW_245_HEADER_IPv6 12 +#define SFLOW_245_HEADER_MPLS 13 + +/* wireshark does not have POS dissector yet */ +#define SFLOW_5_HEADER_POS 14 + +#define SFLOW_5_HEADER_80211_MAC 15 + +/* XXX - No handles for these, need to be converted into "dissectors" */ +#define SFLOW_5_HEADER_80211_AMPDU 16 /* "wlan_aggregate" */ +#define SFLOW_5_HEADER_80211_AMSDU_SUBFRAME 17 + +#endif |