route.c (108272) | route.c (109623) |
---|---|
1/* 2 * Copyright (c) 1980, 1986, 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 * @(#)route.c 8.3.1.1 (Berkeley) 2/23/95 | 1/* 2 * Copyright (c) 1980, 1986, 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 * @(#)route.c 8.3.1.1 (Berkeley) 2/23/95 |
34 * $FreeBSD: head/sys/net/route.c 108272 2002-12-25 10:55:44Z ru $ | 34 * $FreeBSD: head/sys/net/route.c 109623 2003-01-21 08:56:16Z alfred $ |
35 */ 36 37#include "opt_inet.h" 38#include "opt_mrouting.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> --- 1023 unchanged lines hidden (view full) --- 1066 */ 1067 if (cmd == RTM_DELETE) { 1068 /* 1069 * It's a delete, so it should already exist.. 1070 * If it's a net, mask off the host bits 1071 * (Assuming we have a mask) 1072 */ 1073 if (netmask != NULL) { | 35 */ 36 37#include "opt_inet.h" 38#include "opt_mrouting.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> --- 1023 unchanged lines hidden (view full) --- 1066 */ 1067 if (cmd == RTM_DELETE) { 1068 /* 1069 * It's a delete, so it should already exist.. 1070 * If it's a net, mask off the host bits 1071 * (Assuming we have a mask) 1072 */ 1073 if (netmask != NULL) { |
1074 m = m_get(M_DONTWAIT, MT_SONAME); | 1074 m = m_get(M_NOWAIT, MT_SONAME); |
1075 if (m == NULL) 1076 return(ENOBUFS); 1077 deldst = mtod(m, struct sockaddr *); 1078 rt_maskedcopy(dst, deldst, netmask); 1079 dst = deldst; 1080 } 1081 /* 1082 * Look up an rtentry that is in the routing tree and --- 53 unchanged lines hidden --- | 1075 if (m == NULL) 1076 return(ENOBUFS); 1077 deldst = mtod(m, struct sockaddr *); 1078 rt_maskedcopy(dst, deldst, netmask); 1079 dst = deldst; 1080 } 1081 /* 1082 * Look up an rtentry that is in the routing tree and --- 53 unchanged lines hidden --- |