raw_ip.c (62454) | raw_ip.c (62573) |
---|---|
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 * $FreeBSD: head/sys/netinet/raw_ip.c 62454 2000-07-03 09:35:31Z phk $ | 34 * $FreeBSD: head/sys/netinet/raw_ip.c 62573 2000-07-04 11:25:35Z phk $ |
35 */ 36 37#include "opt_inet6.h" 38#include "opt_ipsec.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 520 unchanged lines hidden (view full) --- 563 return ENOTCONN; 564 } 565 dst = ((struct sockaddr_in *)nam)->sin_addr.s_addr; 566 } 567 return rip_output(m, so, dst); 568} 569 570static int | 35 */ 36 37#include "opt_inet6.h" 38#include "opt_ipsec.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 520 unchanged lines hidden (view full) --- 563 return ENOTCONN; 564 } 565 dst = ((struct sockaddr_in *)nam)->sin_addr.s_addr; 566 } 567 return rip_output(m, so, dst); 568} 569 570static int |
571rip_pcblist (SYSCTL_HANDLER_ARGS) | 571rip_pcblist(SYSCTL_HANDLER_ARGS) |
572{ 573 int error, i, n, s; 574 struct inpcb *inp, **inp_list; 575 inp_gen_t gencnt; 576 struct xinpgen xig; 577 578 /* 579 * The process of preparing the TCB list is too time-consuming and --- 83 unchanged lines hidden --- | 572{ 573 int error, i, n, s; 574 struct inpcb *inp, **inp_list; 575 inp_gen_t gencnt; 576 struct xinpgen xig; 577 578 /* 579 * The process of preparing the TCB list is too time-consuming and --- 83 unchanged lines hidden --- |