Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | reorganize and document build.rs | lafleur | 2021-11-07 | 1 | -21/+35 | |
| | | ||||||
| * | build: import include paths from pkg-config when generating libnftnl-rs bindings | Simon THOBY | 2021-11-07 | 1 | -15/+21 | |
| | | ||||||
| * | wipe rustables-sys away | lafleur | 2021-11-07 | 31 | -35/+34 | |
| | | ||||||
| * | call bindgen on build in rustables | lafleur | 2021-11-07 | 45 | -10516/+174 | |
| | | ||||||
* | | Merge branch 'test-suite' into 'master' | Simon THOBY | 2021-11-07 | 7 | -6/+768 | |
|\| | | | | | | | | | Expression tests See merge request rustwall/rustables!6 | |||||
| * | use standard include line | lafleur | 2021-11-06 | 1 | -1/+1 | |
| | | ||||||
| * | automatically generate nf_tables rust headers | lafleur | 2021-11-06 | 6 | -841/+65 | |
| | | ||||||
| * | fix(tests): the masquerade and verdict work now | Simon THOBY | 2021-11-05 | 1 | -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 TODO | lafleur | 2021-11-05 | 2 | -27/+484 | |
| | | ||||||
| * | factorize, add bitwise and log expr tests | lafleur | 2021-11-05 | 1 | -44/+166 | |
| | | ||||||
| * | tests: add some netlink abstractions to manipulate higher-level object that ↵ | Simon THOBY | 2021-11-05 | 4 | -94/+1030 | |
| | | | | | | | | raw bytes strings | |||||
| * | check the raw netlink message instead of the in-memory reprensentation of ↵ | Simon THOBY | 2021-11-05 | 1 | -23/+79 | |
| | | | | | | | | the library | |||||
| * | draft: counter expr test | lafleur | 2021-11-05 | 1 | -0/+38 | |
|/ | ||||||
* | Merge branch 'manipulate-exprs' into 'master' | Simon THOBY | 2021-11-05 | 21 | -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 Immediate | Simon THOBY | 2021-11-02 | 2 | -4/+48 | |
| | | ||||||
| * | provide a (deficient) method for a deep comparison of rules | Simon THOBY | 2021-11-02 | 1 | -1/+75 | |
| | | ||||||
| * | fix: retrieving the name of a table or a chain cannot fail | Simon THOBY | 2021-11-02 | 4 | -27/+35 | |
| | | ||||||
| * | replace Optionnals by Results for a better error propagation when ↵ | Simon THOBY | 2021-11-02 | 16 | -297/+285 | |
| | | | | | | | | deserializing expressions | |||||
| * | separate the Reject and Verdict in distinct files | Simon THOBY | 2021-11-02 | 3 | -96/+105 | |
| | | ||||||
| * | reorganize rustables/src/expr/mod.rs | Simon THOBY | 2021-11-02 | 3 | -107/+119 | |
| | | ||||||
| * | fix a small doc reference issue | Simon THOBY | 2021-11-02 | 1 | -1/+1 | |
| | | ||||||
| * | Enforce memory safety of the Cmp/Immediate deserialization step by limiting ↵ | Simon THOBY | 2021-11-02 | 2 | -64/+114 | |
| | | | | | | | | such operations to byte arrays | |||||
| * | Add "deserialization" support for Verdict, Reject and Meta | Simon THOBY | 2021-11-02 | 2 | -58/+158 | |
| | | ||||||
| * | add support for deserializing Payload expressions | Simon THOBY | 2021-11-02 | 1 | -25/+188 | |
| | | ||||||
| * | Add a (memory unsafe) manner to unserialize a few other expressions | Simon THOBY | 2021-11-02 | 10 | -7/+236 | |
| | | ||||||
| * | First attempt at decoding expressions | Simon THOBY | 2021-11-02 | 2 | -1/+27 | |
| | | ||||||
| * | Extend the `Expression` trait to allow for "deserialization" | Simon THOBY | 2021-11-02 | 13 | -49/+94 | |
| | | ||||||
| * | counter: add the possibility to start from a non-zero value | Simon THOBY | 2021-11-02 | 2 | -3/+22 | |
| | | ||||||
| * | fix a few cases where we didn't sanitize properly pointers from libnftnl | Simon THOBY | 2021-11-02 | 5 | -43/+51 | |
| | | ||||||
| * | Adds an iterator over expressions to Rules | Simon THOBY | 2021-11-02 | 5 | -11/+99 | |
|/ | ||||||
* | Merge branch 'add-log-arguments' into 'master' | Simon THOBY | 2021-11-02 | 2 | -2/+81 | |
|\ | | | | | | | | | add LogGroup and LogPrefix arguments to Log target See merge request rustwall/rustables!5 | |||||
| * | forbid instanciating LogPrefix directly | lafleur | 2021-11-02 | 1 | -2/+2 | |
| | | ||||||
| * | check that LogPrefix is a 128 chars CString at most | lafleur | 2021-10-22 | 1 | -6/+13 | |
| | | ||||||
| * | Turn LogGroup in a struct holding an u16 | lafleur | 2021-10-22 | 1 | -13/+6 | |
| | | ||||||
| * | add LogGroup and LogPrefix arguments to Log target | lafleur | 2021-10-21 | 2 | -2/+81 | |
| | | ||||||
* | | Merge branch 'dynamic-link-in-ci' into 'master' | Simon THOBY | 2021-11-01 | 2 | -8/+6 | |
|\ \ | |/ |/| | | | | | add RUSTFLAGS to allow dyn linking in CI See merge request rustwall/rustables!8 | |||||
| * | add RUSTFLAGS to allow dyn linking in CI | lafleur | 2021-10-31 | 2 | -8/+6 | |
|/ | ||||||
* | Merge branch 'add-ci' into 'master' | la Fleur | 2021-10-21 | 3 | -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 fix | lafleur | 2021-10-20 | 3 | -4/+11 | |
| | | ||||||
| * | add a basic CI pipeline with caching | lafleur | 2021-10-20 | 1 | -0/+26 | |
| | | ||||||
* | | Merge branch 'restrict-raw-handles' into 'master' | la Fleur | 2021-10-21 | 9 | -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 compile | lafleur | 2021-10-20 | 2 | -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 flag | Simon THOBY | 2021-10-20 | 7 | -43/+51 | |
|/ | ||||||
* | Merge branch 'revert-to-log-crate' into 'master' | la Fleur | 2021-10-20 | 9 | -9/+4 | |
|\ | | | | | | | | | Revert part of aa1cc7089a70d134f2d71f84293628e05818b07f See merge request rustwall/rustables!1 | |||||
| * | Revert part of aa1cc7089a70d134f2d71f84293628e05818b07f | Simon THOBY | 2021-10-19 | 9 | -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 notices | lafleur | 2021-10-19 | 41 | -138/+197 | |
| | ||||||
* | add license disclaimer in README.md | lafleur | 2021-10-18 | 1 | -2/+8 | |
| | ||||||
* | Add GPLv3 LICENSE | la Fleur | 2021-10-18 | 1 | -0/+674 | |
| | ||||||
* | Add a log target | Simon THOBY | 2021-10-16 | 3 | -7/+21 | |
| | ||||||
* | Add the ability to send batches with libmnl | Simon THOBY | 2021-10-16 | 11 | -22/+85 | |
| |