[SR-Users] Transformations
Victor V. Kustov
coyote at bks.tv
Fri Apr 19 10:39:11 CEST 2013
В Thu, 18 Apr 2013 13:56:18 +0200
Daniel-Constantin Mierla <miconda at gmail.com> пишет:
> Anyhow, I would recommend to use s.select transformation to get the
> ip bytes:
>
> $var(i1) = $(si{s.select,0,.});
> ...
> $var(i4) = $(si{s.select,4,.});
>
> Then use this variables to compute the big int value.
Thanks for tips, now seems better and work:
$avp(s:numipa)=$(si{s.select,0,.})<<24|$(si{s.select,1,.})<<16|$(si{s.select,2,.})<<8|$(si{s.select,3,.});
--
SY,
Victor
JID: coyote at bks.tv
JID: coyote at bryansktel.ru
I use FREE operation system: 3.8.4-calculate GNU/Linux
More information about the sr-users
mailing list