cleanups. mainly memory leak fixes

This commit is contained in:
Arnout Engelen
2004-09-14 19:24:01 +00:00
parent cf2f473cd1
commit fc333df257
10 changed files with 92 additions and 109 deletions

View File

@@ -42,7 +42,7 @@ public:
}
/* sums up the total bytes used and removes 'old' packets */
bpf_u_int32 sumanddel (timeval t);
u_int32_t sumanddel (timeval t);
void add (Packet * p);
private:
@@ -71,7 +71,7 @@ public:
/* sums up the total bytes used
* and removes 'old' packets. */
void sumanddel(timeval curtime, bpf_u_int32 * sent, bpf_u_int32 * recv);
void sumanddel(timeval curtime, u_int32_t * sent, u_int32_t * recv);
/* for checking if a packet is part of this connection */
/* the reference packet is always *outgoing*. */