xref: /freebsd/sys/netgraph/netflow/netflow.h (revision 2ff63af9b88c7413b7d71715b5532625752a248e)
1a752e82dSGleb Smirnoff /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3fe267a55SPedro F. Giffuni  *
45dcd9c10SGleb Smirnoff  * Copyright (c) 2010-2011 Alexander V. Chernikov <melifaro@ipfw.ru>
50b7925dfSGleb Smirnoff  * Copyright (c) 2004 Gleb Smirnoff <glebius@FreeBSD.org>
6a752e82dSGleb Smirnoff  * All rights reserved.
7a752e82dSGleb Smirnoff  *
8a752e82dSGleb Smirnoff  * Redistribution and use in source and binary forms, with or without
9a752e82dSGleb Smirnoff  * modification, are permitted provided that the following conditions
10a752e82dSGleb Smirnoff  * are met:
11a752e82dSGleb Smirnoff  * 1. Redistributions of source code must retain the above copyright
12a752e82dSGleb Smirnoff  *    notice, this list of conditions and the following disclaimer.
13a752e82dSGleb Smirnoff  * 2. Redistributions in binary form must reproduce the above copyright
14a752e82dSGleb Smirnoff  *    notice, this list of conditions and the following disclaimer in the
15a752e82dSGleb Smirnoff  *    documentation and/or other materials provided with the distribution.
16a752e82dSGleb Smirnoff  *
17a752e82dSGleb Smirnoff  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18a752e82dSGleb Smirnoff  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19a752e82dSGleb Smirnoff  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20a752e82dSGleb Smirnoff  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21a752e82dSGleb Smirnoff  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22a752e82dSGleb Smirnoff  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23a752e82dSGleb Smirnoff  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24a752e82dSGleb Smirnoff  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25a752e82dSGleb Smirnoff  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26a752e82dSGleb Smirnoff  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27a752e82dSGleb Smirnoff  * SUCH DAMAGE.
28a752e82dSGleb Smirnoff  *
29a752e82dSGleb Smirnoff  *	 $SourceForge: netflow.h,v 1.8 2004/09/16 17:05:11 glebius Exp $
30a752e82dSGleb Smirnoff  */
31a752e82dSGleb Smirnoff 
32a752e82dSGleb Smirnoff /* netflow timeouts in seconds */
33a752e82dSGleb Smirnoff 
34a752e82dSGleb Smirnoff #define	ACTIVE_TIMEOUT		(30*60)	/* maximum flow lifetime is 30 min */
35a752e82dSGleb Smirnoff #define	INACTIVE_TIMEOUT	15
36a752e82dSGleb Smirnoff 
377edf55d7SMaxim Konovalov /*
387edf55d7SMaxim Konovalov  * More info can be found in these Cisco documents:
397edf55d7SMaxim Konovalov  *
407edf55d7SMaxim Konovalov  * Cisco IOS NetFlow, White Papers.
417edf55d7SMaxim Konovalov  * http://www.cisco.com/en/US/products/ps6601/prod_white_papers_list.html
427edf55d7SMaxim Konovalov  *
437edf55d7SMaxim Konovalov  * Cisco CNS NetFlow Collection Engine User Guide, 5.0.2, NetFlow Export
447edf55d7SMaxim Konovalov  * Datagram Formats.
457edf55d7SMaxim Konovalov  * http://www.cisco.com/en/US/products/sw/netmgtsw/ps1964/products_user_guide_chapter09186a00803f3147.html#wp26453
467edf55d7SMaxim Konovalov  *
475dcd9c10SGleb Smirnoff  * Cisco Systems NetFlow Services Export Version 9
485dcd9c10SGleb Smirnoff  * http://www.ietf.org/rfc/rfc3954.txt
495dcd9c10SGleb Smirnoff  *
50a752e82dSGleb Smirnoff  */
51a752e82dSGleb Smirnoff 
52a752e82dSGleb Smirnoff #define NETFLOW_V1 1
53a752e82dSGleb Smirnoff #define NETFLOW_V5 5
545dcd9c10SGleb Smirnoff #define NETFLOW_V9 9
55a752e82dSGleb Smirnoff 
56a752e82dSGleb Smirnoff struct netflow_v1_header
57a752e82dSGleb Smirnoff {
58a752e82dSGleb Smirnoff   uint16_t version;	/* NetFlow version */
59a752e82dSGleb Smirnoff   uint16_t count;	/* Number of records in flow */
60a752e82dSGleb Smirnoff   uint32_t sys_uptime;	/* System uptime */
61a752e82dSGleb Smirnoff   uint32_t unix_secs;	/* Current seconds since 0000 UTC 1970 */
62a752e82dSGleb Smirnoff   uint32_t unix_nsecs;	/* Remaining nanoseconds since 0000 UTC 1970 */
63a752e82dSGleb Smirnoff } __attribute__((__packed__));
64a752e82dSGleb Smirnoff 
65a752e82dSGleb Smirnoff struct netflow_v5_header
66a752e82dSGleb Smirnoff {
67a752e82dSGleb Smirnoff   uint16_t version;	/* NetFlow version */
68a752e82dSGleb Smirnoff   uint16_t count;	/* Number of records in flow */
69a752e82dSGleb Smirnoff   uint32_t sys_uptime;	/* System uptime */
70a752e82dSGleb Smirnoff   uint32_t unix_secs;	/* Current seconds since 0000 UTC 1970 */
71a752e82dSGleb Smirnoff   uint32_t unix_nsecs;	/* Remaining nanoseconds since 0000 UTC 1970 */
72a752e82dSGleb Smirnoff   uint32_t flow_seq;	/* Sequence number of the first record */
73a752e82dSGleb Smirnoff   uint8_t engine_type;	/* Type of flow switching engine (RP,VIP,etc.) */
74a752e82dSGleb Smirnoff   uint8_t engine_id;	/* Slot number of the flow switching engine */
75a752e82dSGleb Smirnoff   uint16_t pad;		/* Pad to word boundary */
76a752e82dSGleb Smirnoff } __attribute__((__packed__));
77a752e82dSGleb Smirnoff 
785dcd9c10SGleb Smirnoff struct netflow_v9_header
795dcd9c10SGleb Smirnoff {
805dcd9c10SGleb Smirnoff   uint16_t version;	/* NetFlow version */
815dcd9c10SGleb Smirnoff   uint16_t count;	/* Total number of records in packet */
825dcd9c10SGleb Smirnoff   uint32_t sys_uptime;	/* System uptime */
835dcd9c10SGleb Smirnoff   uint32_t unix_secs;	/* Current seconds since 0000 UTC 1970 */
845dcd9c10SGleb Smirnoff   uint32_t seq_num;	/* Sequence number */
855dcd9c10SGleb Smirnoff   uint32_t source_id;	/* Observation Domain id */
865dcd9c10SGleb Smirnoff } __attribute__((__packed__));
875dcd9c10SGleb Smirnoff 
88a752e82dSGleb Smirnoff struct netflow_v1_record
89a752e82dSGleb Smirnoff {
90a752e82dSGleb Smirnoff   uint32_t src_addr;	/* Source IP address */
91a752e82dSGleb Smirnoff   uint32_t dst_addr;	/* Destination IP address */
92a752e82dSGleb Smirnoff   uint32_t next_hop;	/* Next hop IP address */
93a752e82dSGleb Smirnoff   uint16_t in_ifx;	/* Source interface index */
94a752e82dSGleb Smirnoff   uint16_t out_ifx;	/* Destination interface index */
95a752e82dSGleb Smirnoff   uint32_t packets;	/* Number of packets in a flow */
96a752e82dSGleb Smirnoff   uint32_t octets;	/* Number of octets in a flow */
97a752e82dSGleb Smirnoff   uint32_t first;	/* System uptime at start of a flow */
98a752e82dSGleb Smirnoff   uint32_t last;	/* System uptime at end of a flow */
99a752e82dSGleb Smirnoff   uint16_t s_port;	/* Source port */
100a752e82dSGleb Smirnoff   uint16_t d_port;	/* Destination port */
101a752e82dSGleb Smirnoff   uint16_t pad1;	/* Pad to word boundary */
102a752e82dSGleb Smirnoff   uint8_t prot;		/* IP protocol */
103a752e82dSGleb Smirnoff   uint8_t tos;		/* IP type of service */
104a752e82dSGleb Smirnoff   uint8_t flags;	/* Cumulative OR of tcp flags */
1057edf55d7SMaxim Konovalov   uint8_t pad2;		/* Pad to word boundary */
106a752e82dSGleb Smirnoff   uint16_t pad3;	/* Pad to word boundary */
107a752e82dSGleb Smirnoff   uint8_t reserved[5];	/* Reserved for future use */
108a752e82dSGleb Smirnoff } __attribute__((__packed__));
109a752e82dSGleb Smirnoff 
110a752e82dSGleb Smirnoff struct netflow_v5_record
111a752e82dSGleb Smirnoff {
112a752e82dSGleb Smirnoff   uint32_t src_addr;	/* Source IP address */
113a752e82dSGleb Smirnoff   uint32_t dst_addr;	/* Destination IP address */
114a752e82dSGleb Smirnoff   uint32_t next_hop;	/* Next hop IP address */
115a752e82dSGleb Smirnoff   uint16_t i_ifx;	/* Source interface index */
116a752e82dSGleb Smirnoff   uint16_t o_ifx;	/* Destination interface index */
117a752e82dSGleb Smirnoff   uint32_t packets;	/* Number of packets in a flow */
118a752e82dSGleb Smirnoff   uint32_t octets;	/* Number of octets in a flow */
119a752e82dSGleb Smirnoff   uint32_t first;	/* System uptime at start of a flow */
120a752e82dSGleb Smirnoff   uint32_t last;	/* System uptime at end of a flow */
121a752e82dSGleb Smirnoff   uint16_t s_port;	/* Source port */
122a752e82dSGleb Smirnoff   uint16_t d_port;	/* Destination port */
1237edf55d7SMaxim Konovalov   uint8_t pad1;		/* Pad to word boundary */
124a752e82dSGleb Smirnoff   uint8_t flags;	/* Cumulative OR of tcp flags */
125a752e82dSGleb Smirnoff   uint8_t prot;		/* IP protocol */
126a752e82dSGleb Smirnoff   uint8_t tos;		/* IP type of service */
127a752e82dSGleb Smirnoff   uint16_t src_as;	/* Src peer/origin Autonomous System */
128a752e82dSGleb Smirnoff   uint16_t dst_as;	/* Dst peer/origin Autonomous System */
129a752e82dSGleb Smirnoff   uint8_t src_mask;	/* Source route's mask bits */
130a752e82dSGleb Smirnoff   uint8_t dst_mask;	/* Destination route's mask bits */
131a752e82dSGleb Smirnoff   uint16_t pad2;	/* Pad to word boundary */
132a752e82dSGleb Smirnoff } __attribute__((__packed__));
133a752e82dSGleb Smirnoff 
134a752e82dSGleb Smirnoff #define NETFLOW_V1_MAX_RECORDS 24
135a752e82dSGleb Smirnoff #define NETFLOW_V5_MAX_RECORDS 30
136a752e82dSGleb Smirnoff 
137a752e82dSGleb Smirnoff #define NETFLOW_V1_MAX_SIZE (sizeof(netflow_v1_header)+ \
138a752e82dSGleb Smirnoff 			     sizeof(netflow_v1_record)*NETFLOW_V1_MAX_RECORDS)
139a752e82dSGleb Smirnoff #define NETFLOW_V5_MAX_SIZE (sizeof(netflow_v5_header)+ \
140a752e82dSGleb Smirnoff 			     sizeof(netflow_v5_record)*NETFLOW_V5_MAX_RECORDS)
141494e177aSGleb Smirnoff 
142494e177aSGleb Smirnoff struct netflow_v5_export_dgram {
143494e177aSGleb Smirnoff 	struct netflow_v5_header	header;
144494e177aSGleb Smirnoff 	struct netflow_v5_record	r[NETFLOW_V5_MAX_RECORDS];
145494e177aSGleb Smirnoff } __attribute__((__packed__));
1465dcd9c10SGleb Smirnoff 
1475dcd9c10SGleb Smirnoff /* RFC3954 field definitions */
1485dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IN_BYTES		1	/* Input bytes count for a flow. Default 4, can be 8 */
1495dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IN_PKTS		2	/* Incoming counter with number of packets associated with an IP Flow. Default 4 */
1505dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FLOWS			3	/* Number of Flows that were aggregated. Default 4 */
1515dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_PROTOCOL		4	/* IP protocol byte. 1 */
1525dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_TOS			5	/* Type of service byte setting when entering the incoming interface. 1 */
1535dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_TCP_FLAGS		6	/* TCP flags; cumulative of all the TCP flags seen in this Flow. 1 */
1545dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_L4_SRC_PORT		7	/* TCP/UDP source port number. 2 */
1555dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV4_SRC_ADDR		8	/* IPv4 source address. 4 */
1565dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_SRC_MASK		9	/* The number of contiguous bits in the source subnet mask (i.e., the mask in slash notation). 1 */
1575dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_INPUT_SNMP		10	/* Input interface index. Default 2 */
1585dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_L4_DST_PORT		11	/* TCP/UDP destination port number. 2 */
1595dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV4_DST_ADDR		12	/* IPv4 destination address. 4 */
1605dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_DST_MASK		13	/* The number of contiguous bits in the destination subnet mask (i.e., the mask in slash notation). 1 */
1615dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_OUTPUT_SNMP		14	/* Output interface index. Default 2 */
1625dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV4_NEXT_HOP		15	/* IPv4 address of the next-hop router. 4 */
1635dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_SRC_AS			16	/* Source BGP autonomous system number. Default 2, can be 4 */
1645dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_DST_AS			17	/* Destination BGP autonomous system number. Default 2, can be 4 */
1655dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_BGP_IPV4_NEXT_HOP	18	/* Next-hop router's IP address in the BGP domain. 4 */
1665dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MUL_DST_PKTS		19	/* IP multicast outgoing packet counter for packets associated with IP flow. Default 4 */
1675dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MUL_DST_BYTES		20	/* IP multicast outgoing Octet (byte) counter for the number of bytes associated with IP flow. Default 4 */
1685dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_LAST_SWITCHED		21	/* sysUptime in msec at which the last packet of this Flow was switched. 4 */
1695dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FIRST_SWITCHED		22	/* sysUptime in msec at which the first packet of this Flow was switched. 4 */
1705dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_OUT_BYTES		23	/* Outgoing counter for the number of bytes associated with an IP Flow. Default 4 */
1715dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_OUT_PKTS		24	/* Outgoing counter for the number of packets associated with an IP Flow. Default 4 */
1725dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_SRC_ADDR		27	/* IPv6 source address. 16 */
1735dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_DST_ADDR		28	/* IPv6 destination address. 16 */
1745dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_SRC_MASK		29	/* Length of the IPv6 source mask in contiguous bits. 1 */
1755dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_DST_MASK		30	/* Length of the IPv6 destination mask in contiguous bits. 1 */
1765dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_FLOW_LABEL	31	/* IPv6 flow label as per RFC 2460 definition. 3 */
1775dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_ICMP_TYPE		32	/* Internet Control Message Protocol (ICMP) packet type; reported as ICMP Type * 256 + ICMP code. 2 */
1785dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MUL_IGMP_TYPE		33	/* Internet Group Management Protocol (IGMP) packet type. 1 */
1795dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_SAMPLING_INTERVAL	34	/* When using sampled NetFlow, the rate at which packets are sampled; for example, a value of 100 indicates that one of every hundred packets is sampled. 4 */
1805dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_SAMPLING_ALGORITHM	35	/* For sampled NetFlow platform-wide: 0x01 deterministic sampling 0x02 random sampling. 1 */
1815dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FLOW_ACTIVE_TIMEOUT	36	/* Timeout value (in seconds) for active flow entries in the NetFlow cache. 2 */
1825dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FLOW_INACTIVE_TIMEOUT	37	/* Timeout value (in seconds) for inactive Flow entries in the NetFlow cache. 2 */
1835dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_ENGINE_TYPE		38	/* Type of Flow switching engine (route processor, linecard, etc...). 1 */
1845dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_ENGINE_ID		39	/* ID number of the Flow switching engine. 1 */
1855dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_TOTAL_BYTES_EXP	40	/* Counter with for the number of bytes exported by the Observation Domain. Default 4 */
1865dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_TOTAL_PKTS_EXP		41	/* Counter with for the number of packets exported by the Observation Domain. Default 4 */
1875dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_TOTAL_FLOWS_EXP	42	/* Counter with for the number of flows exported by the Observation Domain. Default 4 */
1885dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_TOP_LABEL_TYPE	46	/* MPLS Top Label Type. 1 */
1895dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_TOP_LABEL_IP_ADDR	47	/* Forwarding Equivalent Class corresponding to the MPLS Top Label. 4 */
1905dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FLOW_SAMPLER_ID	48	/* Identifier shown in "show flow-sampler". 1 */
1915dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FLOW_SAMPLER_MODE	49	/* The type of algorithm used for sampling data. 2 */
1925dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_FLOW_SAMPLER_RANDOM_INTERVAL		50	/* Packet interval at which to sample. 4. */
1935dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_DST_TOS		55	/* Type of Service byte setting when exiting outgoing interface. 1. */
1945dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_SRC_MAC		56	/* Source MAC Address. 6 */
1955dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_DST_MAC		57	/* Destination MAC Address. 6 */
1965dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_SRC_VLAN		58	/* Virtual LAN identifier associated with ingress interface. 2 */
1975dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_DST_VLAN		59	/* Virtual LAN identifier associated with egress interface. 2 */
1985dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IP_PROTOCOL_VERSION	60	/* Internet Protocol Version. Set to 4 for IPv4, set to 6 for IPv6. If not present in the template, then version 4 is assumed. 1. */
1995dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_DIRECTION		61	/* Flow direction: 0 - ingress flow 1 - egress flow. 1 */
2005dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_NEXT_HOP		62	/* IPv6 address of the next-hop router. 16 */
2015dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_BGP_IPV6_NEXT_HOP	63	/* Next-hop router in the BGP domain. 16 */
2025dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_IPV6_OPTION_HEADERS	64	/* Bit-encoded field identifying IPv6 option headers found in the flow */
2035dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_1		70	/* MPLS label at position 1 in the stack. 3 */
2045dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_2		71	/* MPLS label at position 2 in the stack. 3 */
2055dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_3		72	/* MPLS label at position 3 in the stack. 3 */
2065dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_4		73	/* MPLS label at position 4 in the stack. 3 */
2075dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_5		74	/* MPLS label at position 5 in the stack. 3 */
2085dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_6		75	/* MPLS label at position 6 in the stack. 3 */
2095dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_7		76	/* MPLS label at position 7 in the stack. 3 */
2105dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_8		77	/* MPLS label at position 8 in the stack. 3 */
2115dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_9		78	/* MPLS label at position 9 in the stack. 3 */
2125dcd9c10SGleb Smirnoff #define NETFLOW_V9_FIELD_MPLS_LABEL_10		79	/* MPLS label at position 10 in the stack. 3 */
2135dcd9c10SGleb Smirnoff 
2145dcd9c10SGleb Smirnoff #define NETFLOW_V9_MAX_RESERVED_FLOWSET		0xFF	/* Clause 5.2 */
215