While I could to this as you said, my DB Server does not have inet_aton ...
( Im using db_cassandra )
My DB simply returns a single string with a list of comma separated values.
I then used s.select and while to achieve what I wanted.
$var(i) = 0;
while ( $(avp(i:2){s.select,$var(i),,}) != '' ) {
if (is_in_subnet( $si , $(avp(i:2){s.select,$var(i),,}) )) {
<< DO SOMETHING >>
break;
};
$var(i) = $var(i) + 1;
}
sorry for any confusion....
this should be fine for now, but how good would it be if ipops module could handle this in a single function call ?