rtsock.c (5df7296441e98a1e91f8f41633f05bc7a6a74ed6) | rtsock.c (995add1a12e8e31b09aa96412896a4cd94dcae05) |
---|---|
1/* 2 * Copyright (c) 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)rtsock.c 8.3 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)rtsock.c 8.3 (Berkeley) 1/4/94 |
34 * $Id: rtsock.c,v 1.6 1994/10/08 22:38:26 phk Exp $ | 34 * $Id: rtsock.c,v 1.7 1994/10/11 23:16:29 wollman Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/proc.h> 40#include <sys/mbuf.h> 41#include <sys/socket.h> 42#include <sys/socketvar.h> --- 148 unchanged lines hidden (view full) --- 191 case RTM_DELETE: 192 error = rtrequest(RTM_DELETE, dst, gate, netmask, 193 rtm->rtm_flags, (struct rtentry **)0); 194 break; 195 196 case RTM_GET: 197 case RTM_CHANGE: 198 case RTM_LOCK: | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/proc.h> 40#include <sys/mbuf.h> 41#include <sys/socket.h> 42#include <sys/socketvar.h> --- 148 unchanged lines hidden (view full) --- 191 case RTM_DELETE: 192 error = rtrequest(RTM_DELETE, dst, gate, netmask, 193 rtm->rtm_flags, (struct rtentry **)0); 194 break; 195 196 case RTM_GET: 197 case RTM_CHANGE: 198 case RTM_LOCK: |
199 rt = rtalloc1(dst, 0); | 199 rt = rtalloc1(dst, 0, 0UL); |
200 if (rt == 0) 201 senderr(ESRCH); 202 if (rtm->rtm_type != RTM_GET) {/* XXX: too grotty */ 203 struct radix_node *rn; 204 extern struct radix_node_head *mask_rnhead; 205 206 if (Bcmp(dst, rt_key(rt), dst->sa_len) != 0) 207 senderr(ESRCH); --- 592 unchanged lines hidden --- | 200 if (rt == 0) 201 senderr(ESRCH); 202 if (rtm->rtm_type != RTM_GET) {/* XXX: too grotty */ 203 struct radix_node *rn; 204 extern struct radix_node_head *mask_rnhead; 205 206 if (Bcmp(dst, rt_key(rt), dst->sa_len) != 0) 207 senderr(ESRCH); --- 592 unchanged lines hidden --- |