[ previous ] [ next ] [ threads ]
 
 From:  "Jonathan De Graeve" <jonathan dot de dot graeve at imelda dot be>
 To:  <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  Radius Input/Output Octets
 Date:  Thu, 2 Jun 2005 13:26:21 +0200
Included the patch in /usr/local/captiveportal/radius_accounting.inc

 

 

@@ -147,13 +147,13 @@

 

        exec("/sbin/ipfw show {$ruleno}", $ipfw) ;

        preg_match("/(\d+)\s+(\d+)\s+(\d+)\s+skipto/", $ipfw[0], $matches) ;

-       $output_pkts = $matches[2] ;

-       $output_bytes = $matches[3] ;

+       $input_pkts = $matches[2] ;

+       $input_bytes = $matches[3] ;

 

        unset($matches) ;

        preg_match("/(\d+)\s+(\d+)\s+(\d+)\s+skipto/", $ipfw[1], $matches) ;

-       $input_pkts = $matches[2] ;

-       $input_bytes = $matches[3] ;

+       $output_pkts = $matches[2] ;

+       $output_bytes = $matches[3] ;

 

        $fd = @fsockopen("udp://$radiusip",$radiusport,$errno,$errstr,3) ;

        if(!$fd)