diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:27:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:27:04 +0000 |
commit | 81fa0bc63909a67cdd6d321617a2e5648a6a94a2 (patch) | |
tree | 2b0a2eae7aed22e3c6f707283d7617d8c02b3fbe /src/bpft.c | |
parent | Adding upstream version 2.1.3. (diff) | |
download | dnscap-81fa0bc63909a67cdd6d321617a2e5648a6a94a2.tar.xz dnscap-81fa0bc63909a67cdd6d321617a2e5648a6a94a2.zip |
Adding upstream version 2.2.0.upstream/2.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/bpft.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -41,7 +41,7 @@ void prepare_bpft(void) { - unsigned udp10_mbs, udp10_mbc, udp11_mbc; //udp11_mbs + unsigned udp10_mbs, udp10_mbc, udp11_mbc; // udp11_mbs text_list bpfl; text_ptr text; size_t len; @@ -70,13 +70,13 @@ void prepare_bpft(void) } /* - * Model - * (vlan) and (transport) - * (vlan) and ((icmp) or (frags) or (dns)) - * (vlan) and ((icmp) or (frags) or ((ports) and (hosts))) - * (vlan) and ((icmp) or (frags) or (((tcp) or (udp)) and (hosts))) - * [(vlan) and] ( [(icmp) or] [(frags) or] ( ( [(tcp) or] (udp) ) [and (hosts)] ) ) - */ + * Model + * (vlan) and (transport) + * (vlan) and ((icmp) or (frags) or (dns)) + * (vlan) and ((icmp) or (frags) or ((ports) and (hosts))) + * (vlan) and ((icmp) or (frags) or (((tcp) or (udp)) and (hosts))) + * [(vlan) and] ( [(icmp) or] [(frags) or] ( ( [(tcp) or] (udp) ) [and (hosts)] ) ) + */ /* Make a BPF program to do early course kernel-level filtering. */ INIT_LIST(bpfl); |