summaryrefslogtreecommitdiffstats
path: root/lib/route
diff options
context:
space:
mode:
authorThomas Graf <tgr@lsx.localdomain>2008-05-20 10:14:21 (GMT)
committerThomas Graf <tgr@lsx.localdomain>2008-05-20 10:14:21 (GMT)
commit5d82806b48959e4726ae3913ae0b3ce279c4c04a (patch)
treed62f0a685cc7cf2942a1dade3c376d8a19ccb570 /lib/route
parent00466b0f95af19623c6536edafca6904945ced83 (diff)
downloadlibnl-5d82806b48959e4726ae3913ae0b3ce279c4c04a.zip
libnl-5d82806b48959e4726ae3913ae0b3ce279c4c04a.tar.gz
libnl-5d82806b48959e4726ae3913ae0b3ce279c4c04a.tar.bz2
Add rtnl_neigh_get_family()
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/neigh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/route/neigh.c b/lib/route/neigh.c
index bec98cc..840add7 100644
--- a/lib/route/neigh.c
+++ b/lib/route/neigh.c
@@ -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;