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

int genl_send_simple ( struct nl_sock *  sk,
int  family,
int  cmd,
int  version,
int  flags 
)

Send trivial generic netlink message

  • sk Netlink socket.
  • 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().

Returns:
0 on success or a negative error code.

Definition at line 127 of file genl.c.

References nl_send_simple().

Referenced by ctrl_request_update().

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

      return nl_send_simple(sk, family, flags, &hdr, sizeof(hdr));
}


Generated by  Doxygen 1.6.0   Back to index