mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Flowspec: Documentation update
This commit is contained in:
parent
abc9ccc5cb
commit
c3c691e95c
@ -5094,6 +5094,8 @@ Bitmask matching is written using <m/value/<cf>/</cf><m/mask/ or
|
|||||||
<cf/!/<m/value/<cf>/</cf><m/mask/ pairs. It means that <cf/(/<m/data/ <cf/&/
|
<cf/!/<m/value/<cf>/</cf><m/mask/ pairs. It means that <cf/(/<m/data/ <cf/&/
|
||||||
<m/mask/<cf/)/ is or is not equal to <m/value/. It is also possible to use
|
<m/mask/<cf/)/ is or is not equal to <m/value/. It is also possible to use
|
||||||
multiple value/mask pairs connected by logical operators <cf/&&/ or <cf/||/.
|
multiple value/mask pairs connected by logical operators <cf/&&/ or <cf/||/.
|
||||||
|
Note that for negated matches, value must be either zero or equal to bitmask
|
||||||
|
(e.g. !0x0/0xf or !0xf/0xf, but not !0x3/0xf).
|
||||||
|
|
||||||
<sect2>IPv4 Flowspec
|
<sect2>IPv4 Flowspec
|
||||||
|
|
||||||
|
@ -815,8 +815,8 @@ flow_builder_add_op_val(struct flow_builder *fb, byte op, u32 value)
|
|||||||
* @mask: bitmask
|
* @mask: bitmask
|
||||||
*
|
*
|
||||||
* It is required to set appropriate flowspec component type using function
|
* It is required to set appropriate flowspec component type using function
|
||||||
* flow_builder_set_type(). This function should return 1 for successful adding,
|
* flow_builder_set_type(). Note that for negation, value must be zero or equal
|
||||||
* otherwise returns 0.
|
* to bitmask.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
flow_builder_add_val_mask(struct flow_builder *fb, byte op, u32 value, u32 mask)
|
flow_builder_add_val_mask(struct flow_builder *fb, byte op, u32 value, u32 mask)
|
||||||
|
Loading…
Reference in New Issue
Block a user