File: argus.5.html

package info (click to toggle)
argus 1%3A2.0.6.fixes.1-16.3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,016 kB
  • ctags: 4,025
  • sloc: ansic: 23,022; sh: 5,734; makefile: 380; yacc: 255; lex: 234
file content (197 lines) | stat: -rw-r--r-- 5,414 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
Content-type: text/html

<HTML><HEAD><TITLE>Manpage of ARGUS</TITLE>
</HEAD><BODY>
<H1>ARGUS</H1>
Section: File Formats (5)<BR>Updated: 23 June 2000<BR><A HREF="#index">Index</A>
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

<B>argus</B> - IP Network Auditing Facility
<P>
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<PRE>
<B>#include &lt;<A HREF="file:/usr/include/[argus_dir]/include/argus_def.h">[argus_dir]/include/argus_def.h</A>&gt;</B>
<B>#include &lt;<A HREF="file:/usr/include/[argus_dir]/include/argus_out.h">[argus_dir]/include/argus_out.h</A>&gt;</B>
</PRE>

<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

The format of the 
<B><A HREF="http://localhost/cgi-bin/man/man2html?8+argus">argus</A></B>(8)

data stream is most succinctly described through the structures defined
in the header file, but the general format is as follows:
<P>

<DL COMPACT><DT><DD>
<B>
Argus File Format:
<BR>&nbsp;&nbsp;&nbsp;Argus_Datum&nbsp;Initial_Management_Record
<BR>&nbsp;&nbsp;&nbsp;Argus_Datum
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.
<BR>&nbsp;&nbsp;&nbsp;Argus_Datum&nbsp;Management_Statistics
<BR>&nbsp;&nbsp;&nbsp;Argus_Datum
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.
</B>

</DL>

<P>
where the individual data fields are defined as follows:
<P>

<DL COMPACT><DT><DD>

<PRE>
struct <B>ArgusRecord</B> {
   unsigned char <B>type</B>, <B>cause</B>;
   unsigned short <B>length</B>;
   unsigned int <B>status</B>;
   unsigned int <B>argusid</B>;
   unsigned int <B>seqNumber</B>;

   union {
      struct <B>ArgusMarStruct</B>  <B>mar</B>;
      struct <B>ArgusFarStruct</B>  <B>far</B>;
   } ar_union;
};

struct <B>ArgusMarStruct</B> {
   struct timeval <B>startime</B>, <B>now</B>;
   unsigned char  <B>major_version</B>, <B>minor_version</B>;
   unsigned char <B>interfaceType</B>, <B>interfaceStatus</B>;
   unsigned short <B>reportInterval</B>, <B>argusMrInterval</B>;
   unsigned int <B>argusid</B>, <B>localnet</B>, <B>netmask</B>, <B>nextMrSequenceNum</B>;
   unsigned long long <B>pktsRcvd</B>, <B>bytesRcvd</B>;
   unsigned int  <B>pktsDrop</B>, <B>flows</B>, <B>flowsClosed</B>;
   unsigned int <B>actIPcons</B>,  <B>cloIPcons</B>;
   unsigned int <B>actICMPcons</B>,  <B>cloICMPcons</B>;
   unsigned int <B>actIGMPcons</B>,  <B>cloIGMPcons</B>;
   unsigned int <B>actFRAGcons</B>,  <B>cloFRAGcons</B>;
   unsigned int <B>actSECcons</B>,  <B>cloSECcons</B>;
   int <B>record_len</B>;
};

struct <B>ArgusFarStruct</B> {
   unsigned char <B>type</B>, <B>length</B>;
   unsigned short <B>status</B>;
 
   unsigned int <B>ArgusTransRefNum</B>;
   struct <B>ArgusTimeDesc</B> <B>time</B>;
   struct <B>ArgusFlow</B> <B>flow</B>;
   struct <B>ArgusAttributes</B> <B>attr</B>;
   struct <B>ArgusMeter</B> <B>src</B>, <B>dst</B>;
};

struct <B>ArgusTimeDesc</B> {
   struct timeval <B>start</B>;
   struct timeval <B>last</B>;
};

struct <B>ArgusFlow</B> {
   union {
      struct <B>ArgusIPFlow</B>     <B>ip</B>;
      struct <B>ArgusICMPFlow</B> <B>icmp</B>;
      struct <B>ArgusMACFlow</B>   <B>mac</B>;
      struct <B>ArgusArpFlow</B>   <B>arp</B>;
      struct <B>ArgusRarpFlow</B> <B>rarp</B>;
      struct <B>ArgusESPFlow</B>   <B>esp</B>;
  } flow_union;
};

struct <B>ArgusIPAttributes</B> {
   unsigned short <B>soptions</B>, <B>doptions</B>;
   unsigned char <B>sttl</B>, <B>dttl</B>;
   unsigned char <B>stos</B>, <B>dtos</B>;
};

struct <B>ArgusARPAttributes</B> {
   unsigned char <B>response[8]</B>;
};

struct <B>ArgusAttributes</B> {
   union {
      struct <B>ArgusIPAttributes</B>   ip;
      struct <B>ArgusARPAttributes</B> arp;
   } attr_union;
};


struct <B>ArgusMeter</B> {
   unsigned int <B>count</B>, <B>bytes</B>, <B>appbytes</B>;
};

struct <B>ArgusIPFlow</B> {
   unsigned int <B>ip_src</B>, <B>ip_dst</B>;
   unsigned char <B>ip_p</B>, <B>tp_p</B>;
   unsigned short <B>sport</B>, <B>dport</B>;
   unsigned short <B>ip_id</B>;
};

struct <B>ArgusICMPFlow</B> {
   unsigned int <B>ip_src</B>, <B>ip_dst</B>;
   unsigned char <B>ip_p</B>, <B>tp_p</B>;
   unsigned char <B>type</B>, <B>code</B>;
   unsigned short <B>id</B>, <B>ip_id</B>;
};

struct <B>ArgusMACFlow</B> {
   struct ether_header <B>ehdr</B>;
   unsigned char <B>dsap</B>, <B>ssap</B>;
};

struct <B>ArgusArpFlow</B> {
   unsigned int <B>arp_spa</B>;
   unsigned int <B>arp_tpa</B>;
   unsigned char <B>etheraddr[6]</B>;
   unsigned short <B>pad</B>;
};
 
struct <B>ArgusRarpFlow</B> {
   unsigned int <B>arp_tpa</B>;
   unsigned char <B>srceaddr[6]</B>;
   unsigned char <B>tareaddr[6]</B>;
};
 
struct <B>ArgusESPFlow</B> {
   unsigned int <B>ip_src</B>, <B>ip_dst</B>;
   unsigned char <B>ip_p</B>, <B>tp_p</B>;
   unsigned short <B>pad</B>;
   unsigned int <B>spi</B>;
};

</PRE>

</DL>

<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

<B><A HREF="http://localhost/cgi-bin/man/man2html?8+argus">argus</A></B>(8),

<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 23:40:57 GMT, March 15, 2001
</BODY>
</HTML>