aboutsummaryrefslogtreecommitdiff
path: root/rustables/src
Commit message (Collapse)AuthorAgeFilesLines
* wipe rustables-sys awaylafleur2021-11-0723-3760/+0
|
* call bindgen on build in rustableslafleur2021-11-0724-739/+26
|
* automatically generate nf_tables rust headerslafleur2021-11-062-836/+3
|
* fix(tests): the masquerade and verdict work nowSimon THOBY2021-11-051-123/+52
| | | | | | My assumption that an empty netlink expression could not be created was too conservative and was causing test failures, let's drop it.
* add most expr tests - needs fixes, see TODOlafleur2021-11-052-27/+484
|
* factorize, add bitwise and log expr testslafleur2021-11-051-44/+166
|
* tests: add some netlink abstractions to manipulate higher-level object that ↵Simon THOBY2021-11-054-94/+1030
| | | | raw bytes strings
* check the raw netlink message instead of the in-memory reprensentation of ↵Simon THOBY2021-11-051-23/+79
| | | | the library
* draft: counter expr testlafleur2021-11-051-0/+38
|
* fix: update the comment for the from_expr implementations of Cmp and ImmediateSimon THOBY2021-11-022-4/+48
|
* provide a (deficient) method for a deep comparison of rulesSimon THOBY2021-11-021-1/+75
|
* fix: retrieving the name of a table or a chain cannot failSimon THOBY2021-11-024-27/+35
|
* replace Optionnals by Results for a better error propagation when ↵Simon THOBY2021-11-0216-297/+285
| | | | deserializing expressions
* separate the Reject and Verdict in distinct filesSimon THOBY2021-11-023-96/+105
|
* reorganize rustables/src/expr/mod.rsSimon THOBY2021-11-023-107/+119
|
* fix a small doc reference issueSimon THOBY2021-11-021-1/+1
|
* Enforce memory safety of the Cmp/Immediate deserialization step by limiting ↵Simon THOBY2021-11-022-64/+114
| | | | such operations to byte arrays
* Add "deserialization" support for Verdict, Reject and MetaSimon THOBY2021-11-022-58/+158
|
* add support for deserializing Payload expressionsSimon THOBY2021-11-021-25/+188
|
* Add a (memory unsafe) manner to unserialize a few other expressionsSimon THOBY2021-11-0210-7/+236
|
* First attempt at decoding expressionsSimon THOBY2021-11-022-1/+27
|
* Extend the `Expression` trait to allow for "deserialization"Simon THOBY2021-11-0213-49/+94
|
* counter: add the possibility to start from a non-zero valueSimon THOBY2021-11-022-3/+22
|
* fix a few cases where we didn't sanitize properly pointers from libnftnlSimon THOBY2021-11-025-43/+51
|
* Adds an iterator over expressions to RulesSimon THOBY2021-11-025-11/+99
|
* forbid instanciating LogPrefix directlylafleur2021-11-021-2/+2
|
* check that LogPrefix is a 128 chars CString at mostlafleur2021-10-221-6/+13
|
* Turn LogGroup in a struct holding an u16lafleur2021-10-221-13/+6
|
* add LogGroup and LogPrefix arguments to Log targetlafleur2021-10-212-2/+81
|
* Hide all raw pointers manipulation by users behind an opt-in feature flagSimon THOBY2021-10-206-43/+50
|
* Revert part of aa1cc7089a70d134f2d71f84293628e05818b07fSimon THOBY2021-10-198-8/+3
| | | | | | | | | | tokio-rs/tracing pulls in a lot more dependencies that log, also potentially impacting negatively the build time of the crate. While this was an acceptable choice for a single user of the crate, which was what I had in mind when I made this commit in the first place, it is not perhaps not a sensible choice for a project that aims at gaining tractiong and seeks to provide a simple, safe and abstract wrapper for libnftnl. Hence the move back to the log crate.
* rename the crates, update copyright noticeslafleur2021-10-1920-0/+2824