diff options
author | Balasubramanian Manoharan <bala.manoharan@linaro.org> | 2014-12-08 17:32:54 +0530 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-12-10 15:54:35 +0300 |
commit | 08796a4634fd40e558425752bd2352176e70f10d (patch) | |
tree | f501bdf1c71e3c5a4e9e15297b101afb1933d206 /platform/linux-generic | |
parent | 1c823b1ca0c6616b90d9f0adf45421a482fb3b53 (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.h | 7 |
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 |