mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Moved description of filters to programmers docs.
This commit is contained in:
parent
9e85a5e6f2
commit
298f2530ec
@ -245,12 +245,6 @@ call other functions, but recursion is not allowed. Filter language contains con
|
|||||||
as if's and switches, but it allows no loops. Filters are
|
as if's and switches, but it allows no loops. Filters are
|
||||||
interpreted. Filter using many features can be found in <file>filter/test.conf</file>.
|
interpreted. Filter using many features can be found in <file>filter/test.conf</file>.
|
||||||
|
|
||||||
<p>You can find sources of filters language in <file>filter/</file>
|
|
||||||
directory. <file>filter/config.Y</file> contains filter grammar, and basically translates source from
|
|
||||||
user into tree of <cf>f_inst</cf> structures. These trees are later interpreted using code in
|
|
||||||
<file>filter/filter.c</file>. Filters internally work with values/variables in <tt>struct
|
|
||||||
f_val</tt>, which contains type of value and value.
|
|
||||||
|
|
||||||
<p>Filter basically gets the route, looks at its attributes and
|
<p>Filter basically gets the route, looks at its attributes and
|
||||||
modifies some of them if it wishes. At the end, it decides, whether to
|
modifies some of them if it wishes. At the end, it decides, whether to
|
||||||
pass change route through (using <cf/accept/), or whether to <cf/reject/ given route. It looks
|
pass change route through (using <cf/accept/), or whether to <cf/reject/ given route. It looks
|
||||||
|
Loading…
Reference in New Issue
Block a user