[sr-dev] git:master: modules/mtree: added new mode to mt_match()

Klaus Darilion klaus.mailinglists at pernau.at
Thu Aug 18 23:14:13 CEST 2011


Hi!

Eagerly I was interested in the mtree module (never used it before) and 
read the README few times but I'm still not sure if I understand it 
correctly. IMO the documentation is poor - maybe someone who uses and 
understand the module can improve the README. I.e. an example might be 
quite useful.

"This module loads data indexed by prefixes from database and returns 
associated string or precompiled value."

What is a precompiled value?

Also it find it strange that "mode" is either 2 or not 2. So, mode=1 is 
the same as mode=5? Usually it is something like mode=1: ...., mode=2: .....

Thanks
Klaus

On 18.08.2011 19:47, Juha Heinanen wrote:
> Module: sip-router
> Branch: master
> Commit: bd8b01b9e236f9b3dbf20a4c3a153057dc8daa52
> URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bd8b01b9e236f9b3dbf20a4c3a153057dc8daa52
>
> Author: Juha Heinanen<jh at tutpro.com>
> Committer: Juha Heinanen<jh at tutpro.com>
> Date:   Thu Aug 18 20:04:32 2011 +0300
>
> modules/mtree: added new mode to mt_match()
>
> - Added mode=2 to mt_match() call that instead of setting value of
>    longest matching prefix to a pv, sets values of all matching prefixes to
>    an avp so that value of longest matching prefix is in avp index 0.
>
> ---
>
>   modules/mtree/README              |   67 ++++++++++++++++++++++++++++---------
>   modules/mtree/doc/mtree.xml       |   14 ++++++++
>   modules/mtree/doc/mtree_admin.xml |   25 ++++++++++++--
>   modules/mtree/mtree.c             |   53 ++++++++++++++++++++++++++++-
>   modules/mtree/mtree_mod.c         |   17 +++++++++-
>   5 files changed, 154 insertions(+), 22 deletions(-)
>
> Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=bd8b01b9e236f9b3dbf20a4c3a153057dc8daa52
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev



More information about the sr-dev mailing list