Captive portal user total traffic

  • Hi,
    I am trying to get PF to recognize Chillispot-Max-Total-Octets attribute. I know it already recognizes:

    if ($vendor == 14559) { /* RADIUS_VENDOR_ChilliSpot */
    			switch ($attrv) {
    			case 4: /* ChilliSpot-Bandwidth-Max-Up */
    				$this->attributes['bw_up'] = radius_cvt_int($datav);
    			case 5: /* ChilliSpot-Bandwidth-Max-Down */
    				$this->attributes['bw_down'] = radius_cvt_int($datav);

    So I was wondering where to add the attribute to the dictionary so I can add:

    case 3: /* Chillispot-Max-Total-Octets */
    				$this->attributes['bw_max'] = radius_cvt_int($datav);

    I know there is this going: however noaction has been taken. So I was wondering if someone can point me to the files where the dictionary is being loded:

    $attribv = radius_get_vendor_attr($data);

    So I can add the attribute and once tested share it here.


  • While looking at the code I see that PF uses the PEAR radius library to respond to talk to the radius server. While some attributes have been ported to this library, we need to port ChilliSpot-Max-Total-Octets, can this be configured or does the captive portal module would need major modifications?


Log in to reply