Re: sed-like regular expressions in the GWPrefixes ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Wednesday 15 December 2004 17:14, Zygmuntowicz Michal wrote:
> The regular expressions make the longest prefix match
> difficult. We sort all prefixes by their length and then
> select the longest matching. With arbitrary regexps
> this is a problem to decide, what "the longest" match
> means.
> But maybe we can have something simple, like:
> 0-9 - match exact digit
> . - match any digit, # or *
> # - match #
> * - match *
>
> With this, there is no problem with the longest match.
>

Cisco's dial-peer patterns are also based on the longest match.
Maybe something simple can be used like 003[3-5]..
Or 004[!1-7].....

This won't violate the routing logic by the longest match.



-- 


----------------
Teodor Georgiev


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux