Add rtnl_neigh_get_family()
This commit is contained in:
parent
00466b0f95
commit
5d82806b48
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue