[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bandwidth monitoring



On Tue, 28 May 2002, Brian May wrote:

> On Thu, 2002-05-23 at 10:33, Peter Palfrader wrote:
> > Please note that I'm only relaying that info - I might have confused
> > something.
> > 
> > Some of the ipaudit-web reports - not all - got confused. So he hacked
> > ipaudit.c to not report local 2 local at all.
> 
> Hmmmm.... pity....
> 
> The fact that such a large and complicated hack is required to get good
> results doesn't exactly excite me....

Large? Most if it is just changing indenting.

this is a cvs diff -b:  (-b -> ignore changes in whitespace)

Index: ipaudit.c
===================================================================
RCS file: /cvsroot/ipaudit/ipaudit-web/src/ipaudit.c,v
retrieving revision 1.9
diff -b -r1.9 ipaudit.c
1050a1051
> 	int 	local_local_match;
1071a1073,1079
> 		/* check if the packet is from local to local */
> 		local_local_match = 
> 			in_iprange (*(int*)(t->key),   iplist_m, niplist_m) && 
> 			in_iprange (*(int*)(t->key+4), iplist_m, niplist_m);
> 
> 		if ( ! local_local_match ) {
> 		
1114a1123
> 	}
1133a1143
> 	int 	local_local_match;
1189a1200,1205
> 		local_local_match = 
> 			in_iprange (ntohl(*(int*)(t->key)),   iplist_m, niplist_m) &&
> 			in_iprange (ntohl(*(int*)(t->key+4)), iplist_m, niplist_m);
> 
> 		if ( ! local_local_match ) {
> 			
1327a1344
> 		}

HTH
					yours,
					peter

-- 
 PGP signed and encrypted  |  .''`.  ** Debian GNU/Linux **
    messages preferred.    | : :' :      The  universal
                           | `. `'      Operating System
 http://www.palfrader.org/ |   `-    http://www.debian.org/

Attachment: pgpU8Qd4EFreG.pgp
Description: PGP signature


Reply to: