aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic
diff options
context:
space:
mode:
authorBalasubramanian Manoharan <bala.manoharan@linaro.org>2014-12-08 17:32:54 +0530
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-12-10 15:54:35 +0300
commit08796a4634fd40e558425752bd2352176e70f10d (patch)
treef501bdf1c71e3c5a4e9e15297b101afb1933d206 /platform/linux-generic
parent1c823b1ca0c6616b90d9f0adf45421a482fb3b53 (diff)
helper: odph_tcp header description
Adds TCP header description struct odph_tcphdr_t in helper directory. This structure is used for accessing TCP header information from the packet Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Victor Kamensky <victor.kamensky@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic')
-rw-r--r--platform/linux-generic/include/api/odp_byteorder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-generic/include/api/odp_byteorder.h b/platform/linux-generic/include/api/odp_byteorder.h
index 79ddd75dd..5d7cceb4a 100644
--- a/platform/linux-generic/include/api/odp_byteorder.h
+++ b/platform/linux-generic/include/api/odp_byteorder.h
@@ -19,6 +19,7 @@ extern "C" {
#endif
#include <endian.h>
+#include <asm/byteorder.h>
#include <odp_std_types.h>
#include <odp_compiler.h>
@@ -45,6 +46,12 @@ extern "C" {
/** Little endian byte order */
#define ODP_LITTLE_ENDIAN __LITTLE_ENDIAN
+/** Big endian bit field */
+#define ODP_BIG_ENDIAN_BITFIELD __BIG_ENDIAN_BITFIELD
+
+/** Little endian bit field */
+#define ODP_LITTLE_ENDIAN_BITFIELD __LITTLE_ENDIAN_BITFIELD
+
/** Selected byte order */
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ODP_BYTE_ORDER ODP_LITTLE_ENDIAN