/* The following attributes must be set in the template: */
int rtnl_neigh_add(struct nl_sock *sk, struct rtnl_neigh *tmpl, int flags)
/* The following attributes must be set in the template: */
int rtnl_neigh_add(struct nl_sock *sk, struct rtnl_neigh *tmpl, int flags)
{
	int err;
	struct nl_msg *msg;
	if ((err = rtnl_neigh_build_add_request(tmpl, flags, &msg)) < 0)
		return err;
	err = nl_send_auto_complete(sk, msg);
	nlmsg_free(msg);
	if (err < 0)
		return err;
	return wait_for_ack(sk);
}