From owner-cvs-all Wed Oct 17 11: 7:11 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7CECE37B401; Wed, 17 Oct 2001 11:07:05 -0700 (PDT) Received: (from ru@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9HI75e63763; Wed, 17 Oct 2001 11:07:05 -0700 (PDT) (envelope-from ru) Message-Id: <200110171807.f9HI75e63763@freefall.freebsd.org> From: Ruslan Ermilov Date: Wed, 17 Oct 2001 11:07:05 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if.c if_disc.c if_faith.c if_loop.c if_stf.c if_var.h route.c route.h rtsock.c src/sys/netinet if_atm.c if_atm.h if_ether.c in_pcb.c src/sys/netinet6 in6_pcb.c nd6.c nd6.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ru 2001/10/17 11:07:05 PDT Modified files: sys/net if.c if_disc.c if_faith.c if_loop.c if_stf.c if_var.h route.c route.h rtsock.c sys/netinet if_atm.c if_atm.h if_ether.c in_pcb.c sys/netinet6 in6_pcb.c nd6.c nd6.h Log: Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2. Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *'' as the argument. Pass rt_addrinfo all the way down to rtrequest1 and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is using it anyways). Benefit: the following command now works. Previously we needed two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 Remove unsafe typecast in rtrequest(), from ``rtentry *'' to ``sockaddr *''. It was introduced by 4.3BSD-Reno and never corrected. Obtained from: BSD/OS, NetBSD MFC after: 1 month PR: kern/28360 Revision Changes Path 1.124 +4 -4 src/sys/net/if.c 1.29 +3 -3 src/sys/net/if_disc.c 1.8 +4 -4 src/sys/net/if_faith.c 1.65 +3 -3 src/sys/net/if_loop.c 1.14 +4 -4 src/sys/net/if_stf.c 1.40 +2 -1 src/sys/net/if_var.h 1.67 +153 -103 src/sys/net/route.c 1.41 +5 -0 src/sys/net/route.h 1.61 +14 -21 src/sys/net/rtsock.c 1.9 +3 -3 src/sys/netinet/if_atm.c 1.4 +1 -1 src/sys/netinet/if_atm.h 1.85 +3 -3 src/sys/netinet/if_ether.c 1.91 +5 -7 src/sys/netinet/in_pcb.c 1.21 +3 -5 src/sys/netinet6/in6_pcb.c 1.14 +3 -3 src/sys/netinet6/nd6.c 1.9 +2 -2 src/sys/netinet6/nd6.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message