Add rtnl_neigh_get_family()

This commit is contained in:
Thomas Graf 2008-05-20 12:14:21 +02:00
parent 00466b0f95
commit 5d82806b48

View file

@ -940,6 +940,11 @@ void rtnl_neigh_set_family(struct rtnl_neigh *neigh, int family)
neigh->ce_mask |= NEIGH_ATTR_FAMILY;
}
int rtnl_neigh_get_family(struct rtnl_neigh *neigh)
{
return neigh->n_family;
}
void rtnl_neigh_set_type(struct rtnl_neigh *neigh, int type)
{
neigh->n_type = type;