Lines Matching refs:rtnl_neigh
68 * struct rtnl_neigh *neigh = rtnl_neigh_get(cache, ifindex, dst_addr);
78 * struct rtnl_neigh *neigh = rtnl_neigh_alloc();
100 * struct rtnl_neigh *neigh = rtnl_neigh_alloc();
123 * struct rtnl_neigh *neigh = rtnl_neigh_alloc();
174 struct rtnl_neigh *neigh = nl_object_priv(c);
185 struct rtnl_neigh *dst = nl_object_priv(_dst);
186 struct rtnl_neigh *src = nl_object_priv(_src);
202 struct rtnl_neigh *a = (struct rtnl_neigh *) _a;
203 struct rtnl_neigh *b = (struct rtnl_neigh *) _b;
255 struct rtnl_neigh *neigh;
334 struct rtnl_neigh *n = (struct rtnl_neigh *) a;
368 struct rtnl_neigh *n = (struct rtnl_neigh *) a;
388 struct rtnl_neigh *neigh = (struct rtnl_neigh *) obj;
436 struct rtnl_neigh *rtnl_neigh_alloc(void)
438 return (struct rtnl_neigh *) nl_object_alloc(&neigh_obj_ops);
441 void rtnl_neigh_put(struct rtnl_neigh *neigh)
475 struct rtnl_neigh * rtnl_neigh_get(struct nl_cache *cache, int ifindex,
478 struct rtnl_neigh *neigh;
498 static int build_neigh_msg(struct rtnl_neigh *tmpl, int cmd, int flags,
555 int rtnl_neigh_build_add_request(struct rtnl_neigh *tmpl, int flags,
579 int rtnl_neigh_add(struct nl_sock *sk, struct rtnl_neigh *tmpl, int flags)
616 int rtnl_neigh_build_delete_request(struct rtnl_neigh *neigh, int flags,
634 int rtnl_neigh_delete(struct nl_sock *sk, struct rtnl_neigh *neigh,
710 void rtnl_neigh_set_state(struct rtnl_neigh *neigh, int state)
717 int rtnl_neigh_get_state(struct rtnl_neigh *neigh)
725 void rtnl_neigh_unset_state(struct rtnl_neigh *neigh, int state)
732 void rtnl_neigh_set_flags(struct rtnl_neigh *neigh, unsigned int flags)
739 unsigned int rtnl_neigh_get_flags(struct rtnl_neigh *neigh)
744 void rtnl_neigh_unset_flags(struct rtnl_neigh *neigh, unsigned int flags)
751 void rtnl_neigh_set_ifindex(struct rtnl_neigh *neigh, int ifindex)
757 int rtnl_neigh_get_ifindex(struct rtnl_neigh *neigh)
762 static inline int __assign_addr(struct rtnl_neigh *neigh, struct nl_addr **pos,
786 void rtnl_neigh_set_lladdr(struct rtnl_neigh *neigh, struct nl_addr *addr)
791 struct nl_addr *rtnl_neigh_get_lladdr(struct rtnl_neigh *neigh)
799 int rtnl_neigh_set_dst(struct rtnl_neigh *neigh, struct nl_addr *addr)
805 struct nl_addr *rtnl_neigh_get_dst(struct rtnl_neigh *neigh)
813 void rtnl_neigh_set_family(struct rtnl_neigh *neigh, int family)
819 int rtnl_neigh_get_family(struct rtnl_neigh *neigh)
824 void rtnl_neigh_set_type(struct rtnl_neigh *neigh, int type)
830 int rtnl_neigh_get_type(struct rtnl_neigh *neigh)
842 .oo_size = sizeof(struct rtnl_neigh),