rsmnl 0.1.0

A rust netlink library imitating libmnl
Documentation
  • Coverage
  • 15.09%
    8 out of 53 items documented2 out of 9 items with examples
  • Size
  • Source code size: 592.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • chamaken/rsmnl-core
    1 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chamaken

rslmnl

A pure Rust lib for netlink, imitating libmnl. Tends to be a successor of crslmnl, and (I think) more rusty.

sample

see examples, and also rsmnl-linux's.

links

differences

  • nlmsghdr is represented in two ways, by its role

    • msgvec::Header for write (put attr). you can set nlmsg_ member but can not nlmsg_len, which is handled by put functions.

    • nlmsg::Msghdr for read (get attr). you can not handle mutable one, only getting it from callback.

    You may not specify msgvec::Header type directly, I think.

  • attr validation is done on getting value, not in parsing. Since get fn (value(), value_ref()..). is imitate original get_..._safe().

  • No batch specific struct. use msgvec::MsgVec, similar to original batch struct, to construct nlmsg.

  • To put attr, use MesVec.put(), not Nlmsg.put()