rtsock.c (156750) | rtsock.c (157366) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95 | 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95 |
30 * $FreeBSD: head/sys/net/rtsock.c 156750 2006-03-15 19:39:09Z andre $ | 30 * $FreeBSD: head/sys/net/rtsock.c 157366 2006-04-01 15:15:05Z rwatson $ |
31 */ 32 33#include <sys/param.h> 34#include <sys/domain.h> 35#include <sys/kernel.h> 36#include <sys/jail.h> 37#include <sys/malloc.h> 38#include <sys/mbuf.h> --- 93 unchanged lines hidden (view full) --- 132 133 raw_input(m, &route_proto, &route_src, &route_dst); 134} 135 136/* 137 * It really doesn't make any sense at all for this code to share much 138 * with raw_usrreq.c, since its functionality is so restricted. XXX 139 */ | 31 */ 32 33#include <sys/param.h> 34#include <sys/domain.h> 35#include <sys/kernel.h> 36#include <sys/jail.h> 37#include <sys/malloc.h> 38#include <sys/mbuf.h> --- 93 unchanged lines hidden (view full) --- 132 133 raw_input(m, &route_proto, &route_src, &route_dst); 134} 135 136/* 137 * It really doesn't make any sense at all for this code to share much 138 * with raw_usrreq.c, since its functionality is so restricted. XXX 139 */ |
140static int | 140static void |
141rts_abort(struct socket *so) 142{ 143 | 141rts_abort(struct socket *so) 142{ 143 |
144 return (raw_usrreqs.pru_abort(so)); | 144 raw_usrreqs.pru_abort(so); |
145} 146 147/* pru_accept is EOPNOTSUPP */ 148 149static int 150rts_attach(struct socket *so, int proto, struct thread *td) 151{ 152 struct rawcb *rp; --- 1131 unchanged lines hidden --- | 145} 146 147/* pru_accept is EOPNOTSUPP */ 148 149static int 150rts_attach(struct socket *so, int proto, struct thread *td) 151{ 152 struct rawcb *rp; --- 1131 unchanged lines hidden --- |