diff options
author | wollman <wollman@FreeBSD.org> | 1995-07-17 15:15:15 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-07-17 15:15:15 +0000 |
commit | 0c919b414e2c62a9ce6aee54393b10633e4df7ec (patch) | |
tree | 88bda14c78b9afeb9693998c233e3c6ab64b8bdd /sys/netinet/in.c | |
parent | e8e2db20ac9a98874c207257f7af78e1cd8458f8 (diff) | |
download | FreeBSD-src-0c919b414e2c62a9ce6aee54393b10633e4df7ec.zip FreeBSD-src-0c919b414e2c62a9ce6aee54393b10633e4df7ec.tar.gz |
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>
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r-- | sys/netinet/in.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 1ebbab3..51c073a 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -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) |