HomeFreeBSD

netlink: improve snl(3)

Description

netlink: improve snl(3)

Summary:

  • add snl_send_message() as a convenient send wrapper
  • add signed integer parsers
  • add snl_read_reply_code() to simplify operation result checks
  • add snl_read_reply_multi() to simplify reading multipart messages
  • add snl_create_genl_msg_request()
  • add snl_get_genl_family() to simplify family name->id resolution
  • add tests for some of the functionality

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D39092
MFC after: 2 weeks

(cherry picked from commit 73ae25c174b515616050496dea764a943796efef)

Details

Provenance
melifaroAuthored on Mar 15 2023, 1:56 PM
Reviewer
kp
Differential Revision
D39092: netlink: improve snl(3)
Parents
rG32bd3c9438e7: fix buildworld after 595d23f777dc.
Branches
Unknown
Tags
Unknown