Lines Matching refs:neigh
2 * src/ nl-neigh-add.c Add a neighbour
13 #include <netlink/cli/neigh.h>
21 "Usage: nl-neigh-add [OPTION]... NEIGHBOUR\n"
37 " nl-neigh-add --create-only --addr=10.0.0.1 --dev=eth0 \\\n"
47 struct rtnl_neigh *neigh;
58 neigh = nl_cli_neigh_alloc();
90 case 'a': ok++; nl_cli_neigh_parse_dst(neigh, optarg); break;
91 case 'l': nl_cli_neigh_parse_lladdr(neigh, optarg); break;
92 case 'd': nl_cli_neigh_parse_dev(neigh, link_cache, optarg); break;
93 case ARG_STATE: nl_cli_neigh_parse_state(neigh, optarg); break;
100 if ((err = rtnl_neigh_add(sock, neigh, nlflags)) < 0)
106 nl_object_dump(OBJ_CAST(neigh), &dp);