Bugs item #2963040, was opened at 2010-03-04 02:04
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2963040&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: allow_source_address_group() not matching correctly
Initial Comment:
IP address subnet matching does not work properly when using the allow_source_address_group() function from the Permissions module.
The problem comes from /modules_k/permissions/hash.c:568 in function find_group_in_subnet_table().
subnet = ip_addr << table[i].mask;
should be
subnet = htonl(ntohl(ip_addr) >> table[i].mask);
Here is a git diff to fix it:
diff --git a/modules_k/permissions/hash.c b/modules_k/permissions/hash.c
index 7358225..7917d5a 100644
--- a/modules_k/permissions/hash.c
+++ b/modules_k/permissions/hash.c
@@ -565,7 +565,7 @@ int find_group_in_subnet_table(struct subnet* table,
i = 0;
while (i < count) {
- subnet = ip_addr << table[i].mask;
+ subnet = htonl(ntohl(ip_addr) >> table[i].mask); //ip_addr << table[i].mask;
if ((table[i].subnet == subnet) &&
((table[i].port == port) || (table[i].port == 0)))
return table[i].grp;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2963040&group_…
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#39 - display name without quotes and uac_replace_from
User who did this - Andrei Pelinescu-Onciul (andrei)
----------
Thanks, it should be fixed on master GIT#907686.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=39#comment30
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has been changed. The changes are listed below. For full information about what has changed, visit the URL and click the History tab.
FS#39 - display name without quotes and uac_replace_from
User who did this: Andrei Pelinescu-Onciul (andrei)
Percent Complete: 0% -> 90%
Status: Assigned -> Requires testing
Severity: Medium -> Low
Priority: Normal -> Low
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=39
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Hello,
I think it is time to prepare for first minor release (3.0.1) in 3.0
series. We are approaching two months since kamailio 3.0.0, period
within several issues were reported and fixed. Please report anything
you are aware is not currently working in 3.0 to
sr-dev(a)lists.sip-router.org or bug tracker:
http://sip-router.org/tracker/
As for date, end of this week or beginning of next week would be a good
time? Other opinions?
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* http://www.asipto.com/index.php/sip-router-masterclass/