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

void nl_addr_put ( struct nl_addr *  addr  ) 

Give back reference of abstract address object.

  • addr Abstract address object.
Decrements the reference counter and destroys the object if the last reference was given back.

Definition at line 465 of file addr.c.

References nl_addr_destroy().

Referenced by addr_free_data(), flnl_request_set_addr(), link_free_data(), neigh_free_data(), route_free_data(), rtnl_route_set_dst(), rtnl_route_set_gateway(), rtnl_route_set_pref_src(), rtnl_route_set_src(), and rule_free_data().

{
      if (!addr)
            return;

      if (addr->a_refcnt == 1)
            nl_addr_destroy(addr);
      else
            addr->a_refcnt--;
}


Generated by  Doxygen 1.6.0   Back to index