blob: 95241cd3aa91dec2fb10c5c3a3e5d79820d024fe (
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
|
#ifndef _IPFIX_PROTOCOL_H
#define _IPFIX_PROTOCOL_H
/* This header file defines structures for the IPFIX protocol in accordance with
* draft-ietf-ipfix-protocol-03.txt */
#define IPFIX_VENDOR_IETF 0x00000000
#define IPFIX_VENDOR_NETFILTER 0x23424223
/* Section 8.1 */
struct ipfix_msg_hdr {
u_int16_t version;
u_int16_t length;
u_int32_t export_time;
u_int32_t seq;
u_int32_t source_id;
};
/* Section 8.2 */
struct ipfix_ietf_field {
u_int16_t type;
u_int16_t length;
};
struct ipfix_vendor_field {
u_int16_t type;
u_int16_t length;
u_int32_t enterprise_num;
};
#endif
|