mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user