raw_ip.c (46112) | raw_ip.c (46381) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 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 * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 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 * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95 |
34 * $Id: raw_ip.c,v 1.57 1999/04/20 13:32:06 peter Exp $ | 34 * $Id: raw_ip.c,v 1.58 1999/04/27 11:17:36 phk Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/malloc.h> 41#include <sys/mbuf.h> 42#include <sys/proc.h> --- 365 unchanged lines hidden (view full) --- 408 ia->ia_flags |= IFA_ROUTE; 409 break; 410 } 411} 412 413static u_long rip_sendspace = RIPSNDQ; 414static u_long rip_recvspace = RIPRCVQ; 415 | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/malloc.h> 41#include <sys/mbuf.h> 42#include <sys/proc.h> --- 365 unchanged lines hidden (view full) --- 408 ia->ia_flags |= IFA_ROUTE; 409 break; 410 } 411} 412 413static u_long rip_sendspace = RIPSNDQ; 414static u_long rip_recvspace = RIPRCVQ; 415 |
416SYSCTL_INT(_net_inet_raw, OID_AUTO, maxdgram, CTLFLAG_RW, &rip_sendspace, 417 0, ""); 418SYSCTL_INT(_net_inet_raw, OID_AUTO, recvspace, CTLFLAG_RW, &rip_recvspace, 419 0, ""); | 416SYSCTL_INT(_net_inet_raw, OID_AUTO, maxdgram, CTLFLAG_RW, 417 &rip_sendspace, 0, "Maximum outgoing raw IP datagram size"); 418SYSCTL_INT(_net_inet_raw, OID_AUTO, recvspace, CTLFLAG_RW, 419 &rip_recvspace, 0, "Maximum incoming raw IP datagram size"); |
420 421static int 422rip_attach(struct socket *so, int proto, struct proc *p) 423{ 424 struct inpcb *inp; 425 int error, s; 426 427 inp = sotoinpcb(so); --- 209 unchanged lines hidden --- | 420 421static int 422rip_attach(struct socket *so, int proto, struct proc *p) 423{ 424 struct inpcb *inp; 425 int error, s; 426 427 inp = sotoinpcb(so); --- 209 unchanged lines hidden --- |