Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 00:53:50 -0700 (PDT)
From:      Jonathan Hanna <jh@cr1003333-a.crdva1.bc.wave.home.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7753: arp command fails silently on invalid proxy request
Message-ID:  <199808270753.AAA01636@cr1003333-a.crdva1.bc.wave.home.com>

next in thread | raw e-mail | index | archive | help

>Number:         7753
>Category:       bin
>Synopsis:       arp command fails silently on invalid proxy request
>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:   Thu Aug 27 01:00:00 PDT 1998
>Last-Modified:
>Originator:     Jonathan Hanna
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

FreeBSD 2.2.7 & 3.0

>Description:

The arp command does not complain about attempting to proxy for
an IP address on no directly attached network, though it does nothing.

>How-To-Repeat:

arp -s 1.1.1.1 auto pub

>Fix:

--- arp.c.orig	Wed Aug 26 00:18:43 1998
+++ arp.c	Wed Aug 26 15:13:04 1998
@@ -289,6 +289,7 @@
 	ea = (u_char *)LLADDR(&sdl_m);
 	if (doing_proxy && !strcmp(eaddr, "auto")) {
 		if (!get_ether_addr(sin->sin_addr.s_addr, ea)) {
+			printf("No interface found for %s\n",inet_ntoa(sin->sin_addr));
 			return (1);
 		}
 		sdl_m.sdl_alen = 6;
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808270753.AAA01636>