~ubuntu-branches/ubuntu/natty/iptraf/natty-proposed

« back to all changes in this revision

Viewing changes to src/dirs.h

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2006-10-15 13:34:14 UTC
  • mfrom: (1.1.2 upstream) (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20061015133414-77itbhydih1z3amr
* Sync with Ubuntu fixes (by Oliver Grawert and Michael Vogt)
  * added fix for /var/run detection (since it is a tmpfs by default on
    Ubuntu) [and fixed ubuntu fix]
  * added support for ath devices
  * fixed FTBFS by changing linux/if_tr.h to netinet/if_tr.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
/*
25
25
 * The IPTraf working directory
26
26
 */
27
 
 
 
27
 
28
28
#ifndef WORKDIR
29
29
#define WORKDIR         "/var/local/iptraf"
30
30
#endif
44
44
 * DO NOT LET THIS REFER TO AN EXISTING/SYSTEM DIRECTORY!!!!  THE LOCK
45
45
 * OVERRIDE (iptraf -f) WILL ERASE ALL FILES HERE!
46
46
 */
47
 
 
 
47
 
48
48
#ifndef LOCKDIR
49
49
#define LOCKDIR         "/var/run/iptraf"
50
50
#endif
65
65
 */
66
66
 
67
67
#define LOGDIR_ENV      "IPTRAF_LOG_PATH"
68
 
 
 
68
 
69
69
/***
70
70
 *** Filename definitions.  They depend on the directory definitions
71
71
 *** above.
84
84
 * facilities are running, allowing only one instance any of them to run
85
85
 * on a network interface.
86
86
 */
87
 
 
 
87
 
88
88
#define IPMONIDFILE             get_path(T_LOCKDIR, "iptraf-ipmon.tag")
89
89
#define GSTATIDFILE             get_path(T_LOCKDIR, "iptraf-genstat.tag")
90
90
#define DSTATIDFILE             get_path(T_LOCKDIR, "iptraf-detstat.tag")
91
91
#define TCPUDPIDFILE            get_path(T_LOCKDIR, "iptraf-tcpudp.tag")
92
92
#define LANMONIDFILE            get_path(T_LOCKDIR, "iptraf-lanmon.tag")
93
93
#define IPHOSTSIDFILE           get_path(T_LOCKDIR, "iptraf-iphosts.tag")
 
94
#define FLTIDFILE               get_path(T_LOCKDIR, "iptraf-filters.tag")
94
95
#define TCPFLTIDFILE            get_path(T_LOCKDIR, "iptraf-tcpfltchg.tag")
95
96
#define UDPFLTIDFILE            get_path(T_LOCKDIR, "iptraf-udpfltchg.tag")
96
97
#define OTHFLTIDFILE            get_path(T_LOCKDIR, "iptraf-othfltchg.tag")
104
105
/*
105
106
 * The TCP filter list file
106
107
 */
107
 
 
 
108
 
108
109
#define TCPFLNAME       get_path(T_WORKDIR, "tcpfilters.dat")
109
110
 
110
111
/*
111
112
 * The UDP filter list file
112
113
 */
113
 
 
 
114
 
114
115
#define UDPFLNAME       get_path(T_WORKDIR, "udpfilters.dat")
115
116
 
116
117
/*
117
118
 * Data file for other IP protocol filters
118
119
 */
119
 
 
 
120
 
120
121
#define OTHIPFLNAME     get_path(T_WORKDIR, "othipfilters.dat")
121
122
 
122
123
/*
123
124
 * The filter data file for other protocols
124
125
 */
125
 
 
 
126
 
126
127
#define FLTSTATEFILE    get_path(T_WORKDIR, "savedfilters.dat")
127
128
 
128
129
/*
134
135
/*
135
136
 * The IPTraf log files
136
137
 */
137
 
 
 
138
 
138
139
#define IPMONLOG        get_path(T_LOGDIR, "ip_traffic")
139
140
#define GSTATLOG        get_path(T_LOGDIR, "iface_stats_general.log")
140
141
#define DSTATLOG        get_path(T_LOGDIR, "iface_stats_detailed")
142
143
#define LANLOG          get_path(T_LOGDIR, "lan_statistics")
143
144
#define PKTSIZELOG      get_path(T_LOGDIR, "packet_size")
144
145
#define DAEMONLOG       get_path(T_LOGDIR, "daemon.log")
 
146
 
 
147
 
145
148
/*
146
149
 * The additional TCP/UDP ports file
147
150
 */
150
153
/*
151
154
 * The Ethernet and FDDI host description files
152
155
 */
153
 
 
 
156
 
154
157
#define ETHFILE         get_path(T_WORKDIR, "ethernet.desc")
155
158
#define FDDIFILE        get_path(T_WORKDIR, "fddi.desc")
156
159
 
157
160
/*
158
161
 * The rvnamed program file
159
162
 */
160
 
 
 
163
 
161
164
#define RVNDFILE        get_path(T_EXECDIR, "rvnamed")
162
165
 
163
166
/*
164
167
 * The rvnamed log file
165
168
 */
166
 
 
 
169
 
167
170
#define RVNDLOGFILE     get_path(T_LOGDIR, "rvnamed.log")
168
171
 
169
172
/*