~darkmoon/+junk/darkstat-pkg

« back to all changes in this revision

Viewing changes to export-format.txt

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayorga
  • Date: 2008-10-06 21:49:52 UTC
  • mfrom: (4.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081006214952-rkg8moyd6izn7q5y
Tags: 3.0.708-2
* fix workaround to --import/--export at init script
  this prevent darkstat.db being replaced. Closes: #500070
* remove debconf note about the init script inclussion
* remove checks for 2.5-1 versions
* debian/copyright
  + Add 2-clause BSD license for tree.h and host_sort.c
    and remove the note for /usr/share/common-licenses/BSD
  + add conv.c, actc.c err.c, err.h, str.c and str.h copyright stanza
* debian/init.d
  + Set Conf variables to empty string before sourcing init.cfg
* debian/postint
  + only remove DB when version is lt 3.0.707-1
* debian/templates remove upgrade-note
* debian/rules
  + made build-stamp depends on configure-stamp not configure
  + made install-stamp depends on build-stamp not build
  + use DESTDIR instead prefix at install-stamp target
* debian/README.Debian - point to the correct section on the 
  reference to the manpage

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Note that all integers are stored big-endian (network order)
 
2
 
 
3
FILE HEADER 0xDA314159                              darkstat export format
 
4
    SECTION HEADER 0xDA 'H' 'S' 0x01                hosts_db ver1
 
5
        HOST COUNT 0x00000001                       1 host follows
 
6
        For each host:
 
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
 
15
                IP PROTO 0x06                       tcp
 
16
                    IN 0x0000000000123456           Bytes in: 1193046
 
17
                    OUT 0x0000000000789ABC          Bytes out: 7903932
 
18
                IP PROTO 0x11                       udp
 
19
                    IN 0x0000000000000444           Bytes in: 1092
 
20
                    OUT 0x0000000000000555          Bytes out: 1365
 
21
                IP PROTO 0x01                       icmp
 
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
 
39
            8 bits - pos
 
40
            For each bar:
 
41
              64 bits - bytes in
 
42
              64 bits - bytes out