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:
@@ -2088,10 +2088,11 @@ Direct reconstruction of individual headers is rarely necessary. Typically, all
|
||||
### conntrack
|
||||
|
||||
```
|
||||
function conntrack_feed(dissect, reconstruct_opts)
|
||||
function conntrack_feed(dissect/raw_packet, reconstruct_opts)
|
||||
```
|
||||
|
||||
"Feed" dissect to conntrack the way as if it was received from the network.
|
||||
"Feed" dissect or raw packet string to conntrack the way as if it was received from the network.
|
||||
[reconstruct_opts](#standard-reconstruct) is meaningful only for dissects.
|
||||
2 values are returned : [track](#the-track-table-structure) and bool value "outgoing".
|
||||
outgoing is true if a new conntrack record was created and it was a SYN packet in case of tcp or any packet in case of udp.
|
||||
If conntrack record already exists outgoing is true if the record was found by direct tuple - src_ip, src_port, dst_ip, dst_port.
|
||||
|
||||
@@ -2246,10 +2246,11 @@ function csum_icmp_fix(raw_ip_header, raw_icmp_header, payload)
|
||||
### conntrack
|
||||
|
||||
```
|
||||
function conntrack_feed(dissect, reconstruct_opts)
|
||||
function conntrack_feed(dissect/raw_packet, reconstruct_opts)
|
||||
```
|
||||
|
||||
"Скормить" conntrack пакет таким образом, как если бы он пришел из сети и был проанализирован.
|
||||
Пакет может быть таблицей-диссектом или raw string. [reconstruct_opts](#standard-reconstruct) имеет смысл только для диссектов.
|
||||
Возвращается 2 значения - [track](#структура-track) и bool признак "outgoing".
|
||||
outgoing принимает значение true, если создается новая запись conntrack и она удовлетворяет признакам клиента - SYN в случае tcp, любой пакет в случае udp.
|
||||
Если запись уже существует, outgoing = true, если запись была найдена по прямой паре - src_ip, src_port, dst_ip, dst_port.
|
||||
|
||||
Reference in New Issue
Block a user