From jmb@kryten.Atinc.COM  Fri Jul 14 09:26:04 1995
Received: from kryten.atinc.com (kryten.atinc.com [198.138.38.7])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA16545
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Jul 1995 09:26:01 -0700
Received: (from jmb@localhost) by kooka.atinc.com (8.6.11/8.6.9) id MAA00449; Fri, 14 Jul 1995 12:11:52 -0400
Message-Id: <199507141611.MAA00449@kooka.atinc.com>
Date: Fri, 14 Jul 1995 12:11:52 -0400
From: jmb@kryten.Atinc.COM
Reply-To: jmb@kryten.Atinc.COM
To: FreeBSD-gnats-submit@freebsd.org
Subject: incorrect error code from SIOCAIFADDR ioctl
X-Send-Pr-Version: 3.2

>Number:         619
>Category:       kern
>Synopsis:       incorrect error code from SIOCAIFADDR ioctl on p2p interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 14 09:30:01 1995
>Closed-Date:    Mon Jul 17 08:15:28 PDT 1995
>Last-Modified:
>Originator:     Jonathan M. Bresler
>Release:        FreeBSD 2.0.5-RELEASE i386
>Organization:
Analysis & Technology, Inc
>Environment:

>Description:

	specifyingn only the local address while configurating a
	point-to-point interface returns the error code ENOTAVAIL
	that is "Can't assign requested address"
	should return EDESTADDRREQ "Destination address required"

	this syntax, only spec'ing the local address of a point-to-point
	link was supported 1.1.5.1 and 2.0

>How-To-Repeat:

	/sbin/ifconfig sl0 inet 10.0.0.1
	
>Fix:

===================================================================
RCS file: RCS/in.c,v
retrieving revision 1.1
diff -r1.1 in.c
216c216
< 				return EADDRNOTAVAIL;
---
> 				return EDESTADDRREQ;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Mon Jul 17 08:15:28 PDT 1995 
State-Changed-Why:  
Suggested fix applied: 

/home/ncvs/src/sys/netinet/in.c,v  <--  in.c 
new revision: 1.15; previous revision: 1.14 
done 

>Unformatted:



