diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2008-12-01 16:26:20 -0600 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-12-04 22:51:54 -0800 |
commit | e0c07b868cab405ab4b5335a0247899bfc5ea0b6 (patch) | |
tree | 940c58efbe5344adb637655621c078978777c784 /include | |
parent | 23afaba65ec5206757e589ef334a8b38168c045f (diff) | |
download | u-boot-imx-e0c07b868cab405ab4b5335a0247899bfc5ea0b6.zip u-boot-imx-e0c07b868cab405ab4b5335a0247899bfc5ea0b6.tar.gz u-boot-imx-e0c07b868cab405ab4b5335a0247899bfc5ea0b6.tar.bz2 |
net: Define IP flag field values
These defines were pulled from the "Add simple
IP/UDP fragmentation support" patch from Frank
Haverkamp <haver@vnet.ibm.com>.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index a5a256b..d2d394f 100644 --- a/include/net.h +++ b/include/net.h @@ -200,6 +200,12 @@ typedef struct { ushort udp_xsum; /* Checksum */ } IP_t; +#define IP_OFFS 0x1fff /* ip offset *= 8 */ +#define IP_FLAGS 0xe000 /* first 3 bits */ +#define IP_FLAGS_RES 0x8000 /* reserved */ +#define IP_FLAGS_DFRAG 0x4000 /* don't fragments */ +#define IP_FLAGS_MFRAG 0x2000 /* more fragments */ + #define IP_HDR_SIZE_NO_UDP (sizeof (IP_t) - 8) #define IP_HDR_SIZE (sizeof (IP_t)) |