If we specify non-NDP entry on ndp command, longest-match NDP entry is deleted. Fix: FreeBSD-4.11 and FreeBSD-5.4 /usr/src/usr.sbin/ndp/ndp.c:delete() if (IN6_ARE_ADDR_EQUAL(&sin->sin6_addr, &sin_m.sin6_addr)) { if (sdl->sdl_family == AF_LINK && (rtm->rtm_flags & RTF_LLINFO) && !(rtm->rtm_flags & RTF_GATEWAY)) { goto delete; } /* * IPv4 arp command retries with sin_other = SIN_PROXY here. */ fprintf(stderr, "delete: cannot delete non-NDP entry\n"); return 1; } + fprintf(stderr, "delete: can't locate %s\n",host); + return 1; delete: if (sdl->sdl_family != AF_LINK) { printf("cannot locate %s\n", host); return (1); } How-To-Repeat: # netstat -r -W | grep fec0 | grep link fec0:: link#2 UC 0 0 1500 fxp1 # ndp -d fec0::1:1:1:1 fec0::1:1:1:1 (fec0::) deleted # netstat -r -W | grep fec0 | grep link #
Responsible Changed From-To: freebsd-bugs->freebsd-net Over to maintainer(s)
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>