aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/dclib-network.h
diff options
context:
space:
mode:
authorWiimm <none>2020-09-30 13:20:16 +0200
committerWiimm <none>2020-09-30 13:20:16 +0200
commit646b95d113309378591b75a290ee6c62a04f3772 (patch)
treea94864e8cef5fc0fbffb7e69d46d688e7caaae3d /project/dclib/dclib-network.h
parenteaf1f8f8ce68b80ebdcefb45896461a89b47e1e1 (diff)
SZS v2.20a.beta1: Test Mac build
Diffstat (limited to '')
-rw-r--r--project/dclib/dclib-network.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/project/dclib/dclib-network.h b/project/dclib/dclib-network.h
index b533761..4cf099f 100644
--- a/project/dclib/dclib-network.h
+++ b/project/dclib/dclib-network.h
@@ -444,17 +444,17 @@ typedef struct ip4_head_t
{
// http://de.wikipedia.org/wiki/IP-Paket
- u8 vers_ihl; // high nibble: version, low nibble: IHL (Ip Header Len)
- u8 tos;
- u16 total_len;
- u16 id;
- u16 frag_off; // low 12 bits: fragment offset, high 4 bits: flags
- u8 ttl;
- u8 protocol;
- u16 checksum;
- u32 ip_src;
- u32 ip_dest;
- // optional: options + padding
+ /*00*/ u8 vers_ihl; // high nibble: version, low nibble: IHL (Ip Header Len)
+ /*01*/ u8 tos;
+ /*02*/ u16 total_len;
+ /*04*/ u16 id;
+ /*06*/ u16 frag_off; // low 12 bits: fragment offset, high 4 bits: flags
+ /*08*/ u8 ttl;
+ /*09*/ u8 protocol;
+ /*0a*/ u16 checksum;
+ /*0c*/ u32 ip_src;
+ /*10*/ u32 ip_dest;
+ /*14*/ // optional: options + padding
}
__attribute__ ((packed)) ip4_head_t;