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

int nl_sendto ( struct nl_handle *  handle,
void *  buf,
size_t  size 
)

Send raw data over netlink socket.

  • handle Netlink handle.
  • buf Data buffer.
  • size Size of data buffer.
    Returns:
    Number of characters written on success or a negative error code.

Definition at line 271 of file nl.c.

{
      int ret;

      ret = sendto(handle->h_fd, buf, size, 0, (struct sockaddr *)
                 &handle->h_peer, sizeof(handle->h_peer));
      if (ret < 0)
            return nl_errno(errno);

      return ret;
}


Generated by  Doxygen 1.6.0   Back to index