summaryrefslogtreecommitdiff
path: root/src/datatypes.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-12 23:39:51 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-12 23:39:51 +0000
commitb979b0be8ac5623ff3f4c3b5a5331edd953aa0bb (patch)
tree7e8c3d344412ce4f2b916a70caaa0f7838f4590d /src/datatypes.h
parentcleaned up includes (diff)
ported uAnytun sequence window to anytun
Diffstat (limited to 'src/datatypes.h')
-rw-r--r--src/datatypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datatypes.h b/src/datatypes.h
index f4c661a..536719c 100644
--- a/src/datatypes.h
+++ b/src/datatypes.h
@@ -32,7 +32,8 @@
#ifndef _DATATYPES_H_
#define _DATATYPES_H_
-#include<boost/cstdint.hpp>
+#include <boost/cstdint.hpp>
+#include <boost/integer_traits.hpp>
typedef boost::uint8_t u_int8_t;
typedef boost::uint16_t u_int16_t;
@@ -46,6 +47,7 @@ typedef boost::int64_t int64_t;
typedef u_int32_t window_size_t;
typedef u_int32_t seq_nr_t;
+#define SEQ_NR_MAX boost::integer_traits<seq_nr_t>::max()
typedef u_int16_t sender_id_t;
typedef u_int16_t payload_type_t;
typedef u_int16_t mux_t;