Return EDESTADDRREQ rather than EADDRNOTAVAIL if the user attempts to
half-configure a point-to-point interface. Submitted by: Jonathan M. Bresler <jmb@kryten.atinc.com>
This commit is contained in:
parent
43395b3be7
commit
357b78a939
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9563
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)in.c 8.2 (Berkeley) 11/15/93
|
||||
* $Id: in.c,v 1.13 1995/04/26 18:10:54 pst Exp $
|
||||
* $Id: in.c,v 1.14 1995/05/30 08:09:26 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -213,7 +213,7 @@ in_control(so, cmd, data, ifp)
|
||||
&& (cmd == SIOCAIFADDR)
|
||||
&& (ifra->ifra_dstaddr.sin_addr.s_addr
|
||||
== INADDR_ANY)) {
|
||||
return EADDRNOTAVAIL;
|
||||
return EDESTADDRREQ;
|
||||
}
|
||||
}
|
||||
if (cmd == SIOCDIFADDR && ia == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user