Lines Matching defs:neigh
211 print_entry(struct snl_parsed_neigh *neigh, struct snl_parsed_link_simple *link)
220 getnameinfo(neigh->nda_dst, sizeof(struct sockaddr_in6), host_buf,
233 if (neigh->nda_lladdr) {
234 sdl.sdl_alen = NLA_DATA_LEN(neigh->nda_lladdr),
235 memcpy(sdl.sdl_data, NLA_DATA(neigh->nda_lladdr), sdl.sdl_alen);
258 time_t expire = (time_t)neigh->ndaf_next_ts;
268 switch (neigh->ndm_state) {
293 bool isrouter = neigh->ndm_flags & NTF_ROUTER;
301 (neigh->ndm_flags & NTF_PROXY) ? "p" : "");
304 if (neigh->nda_probes != 0)
305 xo_emit("{u:/ %d}", neigh->nda_probes);
353 struct snl_parsed_neigh neigh = {};
355 if (!snl_parse_nlmsg(&ss_req, hdr, &snl_rtm_neigh_parser, &neigh))
358 if (neigh.nda_ifindex != link.ifi_index) {
361 if (!get_link_info(&ss_cmd, neigh.nda_ifindex, &link))
366 struct sockaddr_in6 *dst = (struct sockaddr_in6 *)neigh.nda_dst;
368 dst->sin6_scope_id = neigh.nda_ifindex;
381 delete_nl(neigh.nda_ifindex, dst_str, false); /* no warn */
383 print_entry(&neigh, &link);