* // Neighbours can then be looked up by the interface and destination
* // address:
* struct rtnl_neigh *neigh = rtnl_neigh_get(cache, ifindex, dst_addr);
- *
+ *
* // After successful usage, the object must be given back to the cache
* rtnl_neigh_put(neigh);
* @endcode
neigh->n_cacheinfo.nci_used = ci->ndm_used;
neigh->n_cacheinfo.nci_updated = ci->ndm_updated;
neigh->n_cacheinfo.nci_refcnt = ci->ndm_refcnt;
-
+
neigh->ce_mask |= NEIGH_ATTR_CACHEINFO;
}
* all relevant fields and must thus be sent out via nl_send_auto_complete()
* or supplemented as needed. \a tmpl must contain the attributes of the new
* neighbour set via \c rtnl_neigh_set_* functions.
- *
+ *
* The following attributes must be set in the template:
* - Interface index (rtnl_neigh_set_ifindex())
* - State (rtnl_neigh_set_state())
{
int err;
struct nl_msg *msg;
-
+
if ((err = rtnl_neigh_build_add_request(tmpl, flags, &msg)) < 0)
return err;
{
struct nl_msg *msg;
int err;
-
+
if ((err = rtnl_neigh_build_delete_request(neigh, flags, &msg)) < 0)
return err;