aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/dclib-network.h
diff options
context:
space:
mode:
Diffstat (limited to 'project/dclib/dclib-network.h')
-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;