aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sflow.h
blob: d2a32c420f6099684e355b27c12822f35b1d4ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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