git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Enabled heaps of debug in ATA driver to try and solve Qemu issue
[tpg/acess2.git]
/
Modules
/
IPStack
/
ipv6.h
1
/*
2
* Acess2 IP Stack
3
* - IPv6 Definitions
4
*/
5
#ifndef _IPV6_H_
6
#define _IPV6_H_
7
8
#include "ipstack.h"
9
10
typedef struct sIPv6Header tIPv6Header;
11
12
struct sIPv6Header
13
{
14
#if 1
15
// High 4: Version
16
// Next: Traffic Class
17
// Low 20: Flow Label
18
Uint32 Head;
19
#else
20
struct {
21
unsigned Version: 4;
22
unsigned TrafficClass: 8;
23
unsigned FlowLabel: 20;
24
} __attribute__((packed));
25
#endif
26
Uint16 PayloadLength;
27
Uint8 NextHeader; // Type of payload data
28
Uint8 HopLimit;
29
tIPv6 Source;
30
tIPv6 Destination;
31
};
32
33
#define IPV6_ETHERNET_ID 0x86DD
34
35
#endif
UCC
git Repository :: git.ucc.asn.au