Re: Trucation of octet attribute handled by rlm_perl

2013-02-28 Thread Iliya Peregoudov
All attributes in rlm_perl scripts should be text. rlm_perl convert them to text before function call and convert them from text after function return. So you should use $RAD_REPLY{'DHCP-Classless-Static-Route'} = '0x'.unpack('H*', $route); On 28.02.2013 11:05, Бен Томпсон wrote: Hello

Re: Trucation of octet attribute handled by rlm_perl

2013-02-28 Thread Бен Томпсон
Many thanks for you help. 2013/3/1 Iliya Peregoudov iperegu...@cboss.ru: All attributes in rlm_perl scripts should be text. rlm_perl convert them to text before function call and convert them from text after function return. So you should use $RAD_REPLY{'DHCP-Classless-Static-Route'} =

Trucation of octet attribute handled by rlm_perl

2013-02-27 Thread Бен Томпсон
Hello everyone I am having a slight problem with rlm_perl and I would really appreciate any advice/help. I have a perl script which rlm_perl adds a value to the DHCP-Classless-Static-Route attribute something like this :- perl script snippets ... my $route = pack('C7',