(RADIATOR) Pre Handler hook help...

Robert Blayzor noc at inoc.net
Mon Jul 15 13:44:00 CDT 2002


> Hi,
> You can also do it like this:
> 
> $p->add_attr( 'Calling-Station-Id',(($p->get_attr( 
> 'RB-NAS-Real-Port') &
> 0xff0000) >> 16) .\
>                 ".". ($p->get_attr( 'RB-NAS-Real-Port') & 0xffff)); \


Right.  We figured that out also, with all the attribs, after fussing
around with the oct which was not needed as the bit shifting is much
faster anyway.  Thanks.

    my $i_id = ($i_port & 0xf8000000) >> 27 ."/". ($i_port & 0x07000000)
>> 24 ."/".
         ($i_port & 0xff0000) >> 16 .".". ($i_port & 0xffff);

--
Robert Blayzor, BOFH
INOC, LLC
rblayzor at inoc.net

That function is not currently supported, but Bill Gates assures us it
will be featured in the next upgrade.

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list