> 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
[EMAIL PROTECTED]

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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to