openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/route/addr.c
int rtnl_addr_delete(struct nl_sock* sk, struct rtnl_addr* addr, int flags)
{
    struct nl_msg* msg;
    int err;

    if ((err = rtnl_addr_build_delete_request(addr, 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);
}
/**
 * Request deletion of an address
 * @arg sk		Netlink socket.
 * @arg addr		Address object to be deleted.
 * @arg flags		Additional netlink message flags.
 *
 * Builds a netlink message by calling rtnl_addr_build_delete_request(),
 * sends the request to the kernel and waits for the next ACK to be
 * received and thus blocks until the request has been fullfilled.
 *
 * @see rtnl_addr_build_delete_request();
 *
 * @return 0 on sucess or a negative error if an error occured.
 */
Request deletion of an address
@arg sk              Netlink socket.
@arg addr            Address object to be deleted.
@arg flags           Additional netlink message flags.

Builds a netlink message by calling rtnl_addr_build_delete_request(),
sends the request to the kernel and waits for the next ACK to be
received and thus blocks until the request has been fullfilled.



@return 0 on sucess or a negative error if an error occured.
Request deletion of an address @arg sk Netlink socket . @arg addr Address object to be deleted . @arg flags Additional netlink message flags . Builds a netlink message by calling rtnl_addr_build_delete_request () sends the request to the kernel and waits for the next ACK to be received and thus blocks until the request has been fullfilled . @return 0 on sucess or a negative error if an error occured .
int rtnl_addr_delete(struct nl_sock* sk, struct rtnl_addr* addr, int flags)
{
    struct nl_msg* msg;
    int err;
    if ((err = rtnl_addr_build_delete_request(addr, 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);
}
int rtnl_addr_delete ( struct nl_sock * sk , struct rtnl_addr * addr , int flags ) { struct nl_msg * msg ; int err ; if ( ( err = rtnl_addr_build_delete_request ( addr , 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 ) ; }
Request deletion of an address
 @arg sk              Netlink socket.
Request deletion of an address @arg sk Netlink socket .