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

int rtnl_neightbl_change ( struct nl_handle *  handle,
struct rtnl_neightbl old,
struct rtnl_neightbl tmpl 
)

Change neighbour table attributes

  • handle netlink handle
  • old neighbour table to be changed
  • tmpl template with requested changes
Builds a new netlink message by calling rtnl_neightbl_build_change_request(), sends the request to the kernel and waits for the next ACK to be received, i.e. blocks until the request has been processed.

Returns:
0 on success or a negative error code

Definition at line 594 of file neightbl.c.

References nl_send_auto_complete(), nl_wait_for_ack(), nlmsg_free(), and rtnl_neightbl_build_change_request().

{
      int err;
      struct nl_msg *msg;
      
      msg = rtnl_neightbl_build_change_request(old, tmpl);
      err = nl_send_auto_complete(handle, msg);
      if (err < 0)
            return err;

      nlmsg_free(msg);
      return nl_wait_for_ack(handle);
}


Generated by  Doxygen 1.6.0   Back to index