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

int rtnl_neigh_get_ifindex ( struct rtnl_neigh *  neigh  ) 

Get the interface index of the device this neighbour is on

  • neigh neighbour handle
    Returns:
    Interface index or RTNL_LINK_NOT_FOUND if not set

Definition at line 898 of file neigh.c.

References RTNL_LINK_NOT_FOUND.

{
      if (neigh->n_mask & NEIGH_ATTR_IFINDEX)
            return neigh->n_ifindex;
      else
            return RTNL_LINK_NOT_FOUND;
}


Generated by  Doxygen 1.6.0   Back to index