diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-05-20 10:14:21 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-05-20 10:14:21 (GMT) |
commit | 5d82806b48959e4726ae3913ae0b3ce279c4c04a (patch) | |
tree | d62f0a685cc7cf2942a1dade3c376d8a19ccb570 /lib/route | |
parent | 00466b0f95af19623c6536edafca6904945ced83 (diff) | |
download | libnl-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.c | 5 |
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; |