summaryrefslogtreecommitdiffstats
path: root/include/ipfix_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ipfix_protocol.h')
-rw-r--r--include/ipfix_protocol.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/ipfix_protocol.h b/include/ipfix_protocol.h
new file mode 100644
index 0000000..3bcf05c
--- /dev/null
+++ b/include/ipfix_protocol.h
@@ -0,0 +1,29 @@
+#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 */
+
+/* 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