aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * reorganize and document build.rslafleur2021-11-071-21/+35
| |
| * build: import include paths from pkg-config when generating libnftnl-rs bindingsSimon THOBY2021-11-071-15/+21
| |
| * wipe rustables-sys awaylafleur2021-11-0731-35/+34
| |
| * call bindgen on build in rustableslafleur2021-11-0745-10516/+174
| |
* | Merge branch 'test-suite' into 'master'Simon THOBY2021-11-077-6/+768
|\| | | | | | | | | Expression tests See merge request rustwall/rustables!6
| * use standard include linelafleur2021-11-061-1/+1
| |
| * automatically generate nf_tables rust headerslafleur2021-11-066-841/+65
| |
| * 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
|/
* Merge branch 'manipulate-exprs' into 'master'Simon THOBY2021-11-0521-325/+1188
|\ | | | | | | | | Add functions to iterate over the expressions of existing rules See merge request rustwall/rustables!3
| * 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
|/
* Merge branch 'add-log-arguments' into 'master'Simon THOBY2021-11-022-2/+81
|\ | | | | | | | | add LogGroup and LogPrefix arguments to Log target See merge request rustwall/rustables!5
| * 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
| |
* | Merge branch 'dynamic-link-in-ci' into 'master'Simon THOBY2021-11-012-8/+6
|\ \ | |/ |/| | | | | add RUSTFLAGS to allow dyn linking in CI See merge request rustwall/rustables!8
| * add RUSTFLAGS to allow dyn linking in CIlafleur2021-10-312-8/+6
|/
* Merge branch 'add-ci' into 'master'la Fleur2021-10-213-0/+33
|\ | | | | | | | | | | | | fixes #1 - add a basic CI ; clean examples Closes #1 See merge request rustwall/rustables!4
| * switch to rust:alpine docker image with ci fixlafleur2021-10-203-4/+11
| |
| * add a basic CI pipeline with cachinglafleur2021-10-201-0/+26
| |
* | Merge branch 'restrict-raw-handles' into 'master'la Fleur2021-10-219-91/+111
|\| | | | | | | | | Hide all raw pointers manipulation by users behind an opt-in feature flag See merge request rustwall/rustables!2
| * adapt examples so that they compilelafleur2021-10-202-48/+60
| | | | | | | | | | Would require a complete rewrite ; just doing this now so that we can test the CI.
| * Hide all raw pointers manipulation by users behind an opt-in feature flagSimon THOBY2021-10-207-43/+51
|/
* Merge branch 'revert-to-log-crate' into 'master'la Fleur2021-10-209-9/+4
|\ | | | | | | | | Revert part of aa1cc7089a70d134f2d71f84293628e05818b07f See merge request rustwall/rustables!1
| * Revert part of aa1cc7089a70d134f2d71f84293628e05818b07fSimon THOBY2021-10-199-9/+4
|/ | | | | | | | | | 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-1941-138/+197
|
* add license disclaimer in README.mdlafleur2021-10-181-2/+8
|
* Add GPLv3 LICENSEla Fleur2021-10-181-0/+674
|
* Add a log targetSimon THOBY2021-10-163-7/+21
|
* Add the ability to send batches with libmnlSimon THOBY2021-10-1611-22/+85
|