Re: [SR-Users] mtree question

2011-08-18 Thread Daniel-Constantin Mierla
Hello, On 8/18/11 3:15 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: * this is intended to control the behavior of the tree data and matching mode. The default one is 0, match longest prefix and the associated data with the prefix is a string. This is complete implementation. Ther

Re: [SR-Users] mtree question

2011-08-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > * this is intended to control the behavior of the tree data and matching > mode. The default one is 0, match longest prefix and the associated data > with the prefix is a string. This is complete implementation. > > There is actually a second mode, 1, intended

Re: [SR-Users] mtree question

2011-08-16 Thread Juha Heinanen
Javier Gallart writes: > -mt_match() will match the longest prefix in the tree, in your case > -00358 in that case, it might make sense to implement a version of mt_match() that loads ALL matching tree branch values to an avp. in case of 00 and 00358 prefixes in the three, string 0035892345670 w

Re: [SR-Users] mtree question

2011-08-15 Thread Javier Gallart
o optimize the > data in the nodes for runtime usage. > > Cheers, > Daniel > > > Hope it helps > > Regards > > Javi > >> -- >> >> Message: 2 >> Date: Fri, 12 Aug 2011 10:10:29 +0300 >> From: Juha Heinanen

Re: [SR-Users] mtree question

2011-08-15 Thread Daniel-Constantin Mierla
. Cheers, Daniel Hope it helps Regards Javi -- Message: 2 Date: Fri, 12 Aug 2011 10:10:29 +0300 From: Juha Heinanen mailto:j...@tutpro.com>> Subject: [SR-Users] mtree question To: sr-users@lists.sip-router.org <mailto:s

Re: [SR-Users] mtree question

2011-08-12 Thread Javier Gallart
how to handle that situation -I don't know about mt_tree_type...(never needed to test it) Hope it helps Regards Javi > -- > > Message: 2 > Date: Fri, 12 Aug 2011 10:10:29 +0300 > From: Juha Heinanen > Subject: [SR-Users] mtree question &

[SR-Users] mtree question

2011-08-12 Thread Juha Heinanen
after reading mtree readme, it is not clear to me if mt_match() matches to longest or any matching prefix in the three. for example, if i have tree with prefixes 00 and 00358 and string to be matched is 0035892345670, will mt_match() set pv to value associated with 00 or 00358? also, if mt_ignore