Lines Matching refs:neigh
2 * src/lib/neigh.c CLI Neighbour Helpers
20 #include <netlink/cli/neigh.h>
24 struct rtnl_neigh *neigh;
26 neigh = rtnl_neigh_alloc();
27 if (!neigh)
30 return neigh;
33 void nl_cli_neigh_parse_dst(struct rtnl_neigh *neigh, char *arg)
38 a = nl_cli_addr_parse(arg, rtnl_neigh_get_family(neigh));
39 if ((err = rtnl_neigh_set_dst(neigh, a)) < 0)
46 void nl_cli_neigh_parse_lladdr(struct rtnl_neigh *neigh, char *arg)
51 rtnl_neigh_set_lladdr(neigh, a);
55 void nl_cli_neigh_parse_dev(struct rtnl_neigh *neigh,
63 rtnl_neigh_set_ifindex(neigh, ival);
66 void nl_cli_neigh_parse_family(struct rtnl_neigh *neigh, char *arg)
74 rtnl_neigh_set_family(neigh, family);
77 void nl_cli_neigh_parse_state(struct rtnl_neigh *neigh, char *arg)
85 rtnl_neigh_set_state(neigh, state);