Skip to content

Commit 7d17397

Browse files
committed
Added flatbuffers schema for the network list storage.
1 parent edbcf40 commit 7d17397

File tree

2 files changed

+730
-0
lines changed

2 files changed

+730
-0
lines changed

src/flatbuffers/fb_network_filter.fbs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// flatc --rust --gen-object-api -o src/flatbuffers/ src/flatbuffers/fb_network_filter.fbs
2+
3+
namespace fb;
4+
5+
table NetworkFilter {
6+
mask: uint32; // NetworkFilterMask (network.rs)
7+
8+
// These arrays contain sorted(asc) indecies in the |unique_domains_hashes|
9+
// instead of hashes itself. It saves a lot of memory because there
10+
// aren't many unique hashes.
11+
opt_domains: [uint16];
12+
opt_not_domains: [uint16];
13+
14+
patterns: [string];
15+
modifier_option: string;
16+
hostname: string;
17+
18+
tag: string;
19+
}
20+
21+
table NetworkFilterList {
22+
network_filters: [NetworkFilter] (required);
23+
unique_domains_hashes: [uint64] (required);
24+
}
25+
26+
root_type NetworkFilterList;

0 commit comments

Comments
 (0)