First question:
Is it okay
#define PERM_MAX_SUBNETS 128
?
What to do if I need to load about 5000 subnets.
And second question:
Why it doesn't load 0.0.0.0/0 subnet?
--
Nick
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi
Hi Nick,
Indeed the table keeping the subnets is limited to PERM_MAX_SUBNETS -
the table is statically allocate at startup. So, if you want more, you
need to recompile.
Regarding the 0.0.0.0/0 :
1) why do you want to add that :P ?
2) what error do you get?
Regards,
Bogdan-Andrei Ian
1. What about to modify this module to dynamically allocate memory for
subnets structure?
2. About 0.0.0.0/0 - no error messages. Just no record if I do
"opensipsctl fifo subnet_dump".
For example:
I need group1 of users to permit from 8.8.0.0/24 and I need group2 to
permit from all. Another user
Hi Nick,
1. Well, I agree, but I'm not sure what will be the impact over the code
- like either :
doing re-allocs to increase the table each time you get it full
either
doing it as a linked list.
Probably 1) is simpler to do, with a dynamic size for the table.
2. So you say the rule
With debug=3 only messages about permissions.allow and
permissions.deny files not found.
Record like '0.0.0.0/0' are silently ignored.
--
Nick
2012/9/6 Bogdan-Andrei Iancu :
> Hi Nick,
>
> 1. Well, I agree, but I'm not sure what will be the impact over the code -
> like either :
> doing re-al
Try 255.255.255.255/0 to match all. 0 starting IPs are not valid and
supported
Regards,
Bogdan
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 09/06/2012 01:51 PM, Nick Altmann wrote:
With debug=3 only messages about permissions.allow and
permissions.d