Date: Mon, 13 Jun 2005 06:39:28 GMT From: SAKAI Hiroaki <sakai.hiroaki@finet.fujitsu.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/82185: ndp command bug Message-ID: <200506130639.j5D6dSZC006955@www.freebsd.org> Resent-Message-ID: <200506130640.j5D6e2sU028099@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82185 >Category: bin >Synopsis: ndp command bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 13 06:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: SAKAI Hiroaki >Release: FreeBSD-4.10 >Organization: FINET >Environment: FreeBSD newface.finet.fujitsu.co.jp 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Wed Jun 16 11:12:16 JST 2004 hsakai@newface.finet.fujitsu.co.jp:/usr/src/sys/compile/NEWFACE i386 >Description: If we specify non-NDP entry on ndp command, longest-match NDP entry is deleted. >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 # >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); } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506130639.j5D6dSZC006955>