Crate rsmnl

Source
Expand description

§rslmnl

rsmnl is a Netlink message handling library imitating libmnl.

Cite from the libmnl:

libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel.

Macros§

gen_errno

Structs§

Attr
Netlink Type-Length-Value (TLV) attribute:
MsgVec
Msghdr
Netlink message:
NestAttr
A struct for nesteds Attr stream iterator.
Socket
A Netlink socket helpers. @imitates [libmnl::struct mnl_socket]

Enums§

AttrDataType
CbStatus

Constants§

ALIGNTO
NOCB
SOCKET_AUTOPID
SOCKET_DUMP_SIZE

Traits§

AttrTbl

Functions§

align
cb_run
This function is like mnl_cb_run2() but it does not allow you to set the control callback handlers.
cb_run2
You can set the cb_ctl_array to NULL if you want to use the default control callback handlers, in that case, the parameter cb_ctl_array_len is not checked.
default_buffer
dump_buffer
parse_payload
@imitates: [mnl_attr_parse_payload]
socket_buffer_size

Type Aliases§

CbResult
GenError
Result