rtsock.c (14546) | rtsock.c (15680) |
---|---|
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.5 (Berkeley) 11/2/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.5 (Berkeley) 11/2/94 |
34 * $Id: rtsock.c,v 1.17 1995/11/16 19:00:11 phk Exp $ | 34 * $Id: rtsock.c,v 1.18 1996/03/11 15:13:07 davidg Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/sysctl.h> 42#include <sys/proc.h> --- 734 unchanged lines hidden (view full) --- 777/* 778 * Definitions of protocols supported in the ROUTE domain. 779 */ 780 781extern struct domain routedomain; /* or at least forward */ 782 783static struct protosw routesw[] = { 784{ SOCK_RAW, &routedomain, 0, PR_ATOMIC|PR_ADDR, | 35 */ 36 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/sysctl.h> 42#include <sys/proc.h> --- 734 unchanged lines hidden (view full) --- 777/* 778 * Definitions of protocols supported in the ROUTE domain. 779 */ 780 781extern struct domain routedomain; /* or at least forward */ 782 783static struct protosw routesw[] = { 784{ SOCK_RAW, &routedomain, 0, PR_ATOMIC|PR_ADDR, |
785 raw_input, route_output, raw_ctlinput, 0, | 785 0, route_output, raw_ctlinput, 0, |
786 route_usrreq, 787 raw_init 788} 789}; 790 791static struct domain routedomain = 792 { PF_ROUTE, "route", route_init, 0, 0, 793 routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])] }; 794 795DOMAIN_SET(route); | 786 route_usrreq, 787 raw_init 788} 789}; 790 791static struct domain routedomain = 792 { PF_ROUTE, "route", route_init, 0, 0, 793 routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])] }; 794 795DOMAIN_SET(route); |