From 50c0d1ff00f5f653e40de3c0beb3f9c95d2cbfa3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 30 Apr 2004 12:44:07 +0000 Subject: 2004-04-30 Ralf Corsepius * libnetworking/netinet/in.c: Partial update from FreeBSD. --- cpukit/ChangeLog | 4 ++++ cpukit/libnetworking/netinet/in.c | 11 +++-------- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index bc5b4c5e2c..f680e5a80b 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2004-04-30 Ralf Corsepius + + * libnetworking/netinet/in.c: Partial update from FreeBSD. + 2004-04-26 Ralf Corsepius * libnetworking/kern/kern_sysctl.c: Partial updates from FreeBSD. diff --git a/cpukit/libnetworking/netinet/in.c b/cpukit/libnetworking/netinet/in.c index 701406f207..3b246fd210 100644 --- a/cpukit/libnetworking/netinet/in.c +++ b/cpukit/libnetworking/netinet/in.c @@ -10,10 +10,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. @@ -31,7 +27,7 @@ * SUCH DAMAGE. * * @(#)in.c 8.4 (Berkeley) 1/9/95 - * $Id$ + * $FreeBSD: src/sys/netinet/in.c,v 1.75 2004/04/07 20:46:13 imp Exp $ */ #include @@ -161,7 +157,6 @@ in_control(so, cmd, data, ifp) struct in_aliasreq *ifra = (struct in_aliasreq *)data; struct sockaddr_in oldaddr; int error, hostIsNew, maskIsNew, s; - u_long i; struct multi_kludge *mk; /* @@ -322,8 +317,8 @@ in_control(so, cmd, data, ifp) (struct sockaddr_in *) &ifr->ifr_addr, 1)); case SIOCSIFNETMASK: - i = ifra->ifra_addr.sin_addr.s_addr; - ia->ia_subnetmask = ntohl(ia->ia_sockmask.sin_addr.s_addr = i); + ia->ia_sockmask.sin_addr = ifra->ifra_addr.sin_addr; + ia->ia_subnetmask = ntohl(ia->ia_sockmask.sin_addr.s_addr); break; case SIOCAIFADDR: -- cgit v1.2.3