Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wipe rustables-sys away | lafleur | 2021-11-07 | 23 | -3760/+0 |
| | |||||
* | call bindgen on build in rustables | lafleur | 2021-11-07 | 24 | -739/+26 |
| | |||||
* | automatically generate nf_tables rust headers | lafleur | 2021-11-06 | 2 | -836/+3 |
| | |||||
* | 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 |
| | |||||
* | 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 |
| | |||||
* | 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 |
| | |||||
* | Hide all raw pointers manipulation by users behind an opt-in feature flag | Simon THOBY | 2021-10-20 | 6 | -43/+50 |
| | |||||
* | Revert part of aa1cc7089a70d134f2d71f84293628e05818b07f | Simon THOBY | 2021-10-19 | 8 | -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 notices | lafleur | 2021-10-19 | 20 | -0/+2824 |