Deleted Added
full compact
route.c (11539) route.c (11921)
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.2 (Berkeley) 11/15/93
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.2 (Berkeley) 11/15/93
34 * $Id: route.c,v 1.25 1995/07/29 11:41:02 bde Exp $
34 * $Id: route.c,v 1.26 1995/10/16 19:09:40 wollman Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/proc.h>
41#include <sys/mbuf.h>
42#include <sys/socket.h>

--- 325 unchanged lines hidden (view full) ---

368 struct rtentry **ret_nrt;
369{
370 int s = splnet(); int error = 0;
371 register struct rtentry *rt;
372 register struct radix_node *rn;
373 register struct radix_node_head *rnh;
374 struct ifaddr *ifa;
375 struct sockaddr *ndst;
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/proc.h>
41#include <sys/mbuf.h>
42#include <sys/socket.h>

--- 325 unchanged lines hidden (view full) ---

368 struct rtentry **ret_nrt;
369{
370 int s = splnet(); int error = 0;
371 register struct rtentry *rt;
372 register struct radix_node *rn;
373 register struct radix_node_head *rnh;
374 struct ifaddr *ifa;
375 struct sockaddr *ndst;
376 u_long prflags = 0UL;
377#define senderr(x) { error = x ; goto bad; }
378
379 if ((rnh = rt_tables[dst->sa_family]) == 0)
380 senderr(ESRCH);
381 if (flags & RTF_HOST)
382 netmask = 0;
383 switch (req) {
384 case RTM_DELETE:

--- 399 unchanged lines hidden ---
376#define senderr(x) { error = x ; goto bad; }
377
378 if ((rnh = rt_tables[dst->sa_family]) == 0)
379 senderr(ESRCH);
380 if (flags & RTF_HOST)
381 netmask = 0;
382 switch (req) {
383 case RTM_DELETE:

--- 399 unchanged lines hidden ---