mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-14 06:13:09 +00:00
update docs
This commit is contained in:
@@ -232,3 +232,4 @@ winws2: fixed lost windivert deinit on logical network disappear
|
|||||||
0.9.3
|
0.9.3
|
||||||
|
|
||||||
nfqws2: handling of incoming fragmented packets (no reconstruct, raw ip payload)
|
nfqws2: handling of incoming fragmented packets (no reconstruct, raw ip payload)
|
||||||
|
zapret-auto: per_instance_condition orchestrator
|
||||||
|
|||||||
@@ -218,6 +218,7 @@
|
|||||||
- [circular](#circular)
|
- [circular](#circular)
|
||||||
- [repeater](#repeater)
|
- [repeater](#repeater)
|
||||||
- [condition](#condition)
|
- [condition](#condition)
|
||||||
|
- [per_instance_condition](#per_instance_condition)
|
||||||
- [stopif](#stopif)
|
- [stopif](#stopif)
|
||||||
- [iff functions](#iff-functions)
|
- [iff functions](#iff-functions)
|
||||||
- [cond\_true](#cond_true)
|
- [cond\_true](#cond_true)
|
||||||
@@ -2330,6 +2331,7 @@ Returns an array of information about all subsequent, pending instances in the c
|
|||||||
| range | table | effective range of [counters](#in-profile-filters) `--in-range` or `--out-range` depending on the current direction |
|
| range | table | effective range of [counters](#in-profile-filters) `--in-range` or `--out-range` depending on the current direction |
|
||||||
| payload | table | effective payload filter : payload name indexed table. |
|
| payload | table | effective payload filter : payload name indexed table. |
|
||||||
| payload_filter | string | effective payload filter : a comma-separated list of payload names. |
|
| payload_filter | string | effective payload filter : a comma-separated list of payload names. |
|
||||||
|
| arg | table | instance arguments |
|
||||||
|
|
||||||
**range**
|
**range**
|
||||||
|
|
||||||
@@ -4386,6 +4388,16 @@ function condition(ctx, desync)
|
|||||||
|
|
||||||
`condition` calls `iff`. If `iff xor neg = true`, all instances in the `plan` are executed; otherwise, the plan is cleared.
|
`condition` calls `iff`. If `iff xor neg = true`, all instances in the `plan` are executed; otherwise, the plan is cleared.
|
||||||
|
|
||||||
|
### per_instance_condition
|
||||||
|
|
||||||
|
```
|
||||||
|
function per_instance_condition(ctx, desync)
|
||||||
|
```
|
||||||
|
|
||||||
|
All following instanced are called only if they have "cond" argument with the "iff" function name and it returns true. The "cond_neg" argument inverts "cond" result.
|
||||||
|
Names are not iff/neg to avoid conflict with other orchestrators.
|
||||||
|
|
||||||
|
|
||||||
### stopif
|
### stopif
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -215,6 +215,7 @@
|
|||||||
- [circular](#circular)
|
- [circular](#circular)
|
||||||
- [repeater](#repeater)
|
- [repeater](#repeater)
|
||||||
- [condition](#condition)
|
- [condition](#condition)
|
||||||
|
- [per_instance_condition](#per_instance_condition)
|
||||||
- [stopif](#stopif)
|
- [stopif](#stopif)
|
||||||
- [iff функции](#iff-функции)
|
- [iff функции](#iff-функции)
|
||||||
- [cond\_true](#cond_true)
|
- [cond\_true](#cond_true)
|
||||||
@@ -2484,6 +2485,7 @@ function execution_plan(ctx)
|
|||||||
| range | table | эффективный диапазон [счетчиков](#внутрипрофильные-фильтры) `--in-range` или `--out-range` в зависимости от текущего направления |
|
| range | table | эффективный диапазон [счетчиков](#внутрипрофильные-фильтры) `--in-range` или `--out-range` в зависимости от текущего направления |
|
||||||
| payload | table | эффективный фильтр payload . таблица с индексами - названиями типа пейлоада |
|
| payload | table | эффективный фильтр payload . таблица с индексами - названиями типа пейлоада |
|
||||||
| payload_filter | string | эффективный фильтр payload . список названий пейлоадов через запятую (иное представление payload) |
|
| payload_filter | string | эффективный фильтр payload . список названий пейлоадов через запятую (иное представление payload) |
|
||||||
|
| arg | table | аргументы инстанса |
|
||||||
|
|
||||||
**range**
|
**range**
|
||||||
|
|
||||||
@@ -4566,6 +4568,15 @@ function condition(ctx, desync)
|
|||||||
|
|
||||||
condition вызывает iff. если iff xor neg = true, выполняются все инстансы plan, иначе план очищается.
|
condition вызывает iff. если iff xor neg = true, выполняются все инстансы plan, иначе план очищается.
|
||||||
|
|
||||||
|
### per_instance_condition
|
||||||
|
|
||||||
|
```
|
||||||
|
function per_instance_condition(ctx, desync)
|
||||||
|
```
|
||||||
|
|
||||||
|
Все последующие инстасы вызываются только, если у них есть аргумент "cond", содержащий iff функцию, и она возвращает true. Аргумент "cond_neg" инвертирует ее значение.
|
||||||
|
Имена аргументов не iff/neg, чтобы исключить конфликт с другими оркестраторами.
|
||||||
|
|
||||||
### stopif
|
### stopif
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user