Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int genl_send_simple ( struct nl_handle *  handle,
int  family,
int  cmd,
int  version,
int  flags 

Send trivial generic netlink message

  • handle Netlink handle.
  • family Generic netlink family
  • cmd Command
  • version Version
  • flags Additional netlink message flags.
Fills out a routing netlink request message and sends it out using nl_send_simple().

0 on success or a negative error code.

Definition at line 128 of file genl.c.

References nl_send_simple().

Referenced by ctrl_request_update().

      struct genlmsghdr hdr = {
            .cmd = cmd,
            .version = version,

      return nl_send_simple(handle, family, flags, &hdr, sizeof(hdr));

Generated by  Doxygen 1.6.0   Back to index