1
Note that all integers are stored big-endian (network order)
3
FILE HEADER 0xDA314159 darkstat export format
4
SECTION HEADER 0xDA 'H' 'S' 0x01 hosts_db ver1
5
HOST COUNT 0x00000001 1 host follows
7
HOST HEADER 'H' 'S' 'T' 0x01 host ver1
8
IP ADDR 0x0A010101 IPv4 10.1.1.1
9
MACADDR 0x001122334455 00:11:22:33:44:55
10
HOSTNAME 0x09 "localhost" 9 is the string length
11
IN 0x0000000000123456 Bytes in: 1193046
12
OUT 0x0000000000789ABC Bytes out: 7903932
13
PROTOS DATA 'P' start ip proto data
14
IP PROTO COUNT 0x03 3 ip_proto entries
16
IN 0x0000000000123456 Bytes in: 1193046
17
OUT 0x0000000000789ABC Bytes out: 7903932
19
IN 0x0000000000000444 Bytes in: 1092
20
OUT 0x0000000000000555 Bytes out: 1365
22
IN 0x0000000000000001 Bytes in: 1
23
OUT 0x0000000000000002 Bytes out: 2
24
TCP DATA 'T' start tcp proto data
25
TCP PROTO COUNT 0x0001 1 tcp_proto entry
26
PORT 0x0050 http (port 80)
27
SYN COUNT 0x0000000000000003 SYNs: 3
28
IN 0x0000000000000001 Bytes in: 1
29
OUT 0x0000000000000002 Bytes out: 2
30
UDP DATA 'U' start udp proto data
31
UDP PROTO COUNT 0x0001 1 udp_proto entry
32
PORT 0x0045 tftp (port 69)
33
IN 0x0000000000000001 Bytes in: 1
34
OUT 0x0000000000000002 Bytes out: 2
35
SECTION HEADER 0xDA 'G' 'R' 0x01 graph_db ver1
36
LAST_TIME (time_t as 64-bit uint)
37
For each of 4 graphs: (60 seconds, 60 minutes, 24 hours, 31 days)
38
8 bits - number of bars