add support for signed integers encoding/decoding
fbegyn opened this issue · comments
Netlink has support for signed integer attributes, which the library currently is missing. These are for example required when talking to rtnetlink to set and modify the file descriptors of XDP programs loaded to the links.
Providing these through the library would offer tested and validated methods of encoding these to the users, blocking workarounds through Bytes
and Uint32
implementations that could lead to bugs.
I've done some minor work on this on a fork, which is sufficient for my application, but can expand and modify it if to be upstreamed if this deemed as a desired feature.
Feel free to send a PR, thanks! I wouldn't mind adding all the signed attributes while we're at it.