in.c (87124) | in.c (92723) |
---|---|
1/* 2 * Copyright (c) 1982, 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 * @(#)in.c 8.4 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1982, 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 * @(#)in.c 8.4 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/netinet/in.c 87124 2001-11-30 14:00:55Z brian $ | 34 * $FreeBSD: head/sys/netinet/in.c 92723 2002-03-19 21:25:46Z alfred $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/sockio.h> 40#include <sys/malloc.h> 41#include <sys/socket.h> 42#include <sys/kernel.h> --- 6 unchanged lines hidden (view full) --- 49#include <netinet/in.h> 50#include <netinet/in_var.h> 51#include <netinet/in_pcb.h> 52 53#include <netinet/igmp_var.h> 54 55static MALLOC_DEFINE(M_IPMADDR, "in_multi", "internet multicast address"); 56 | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/sockio.h> 40#include <sys/malloc.h> 41#include <sys/socket.h> 42#include <sys/kernel.h> --- 6 unchanged lines hidden (view full) --- 49#include <netinet/in.h> 50#include <netinet/in_var.h> 51#include <netinet/in_pcb.h> 52 53#include <netinet/igmp_var.h> 54 55static MALLOC_DEFINE(M_IPMADDR, "in_multi", "internet multicast address"); 56 |
57static int in_mask2len __P((struct in_addr *)); 58static void in_len2mask __P((struct in_addr *, int)); 59static int in_lifaddr_ioctl __P((struct socket *, u_long, caddr_t, 60 struct ifnet *, struct thread *)); | 57static int in_mask2len(struct in_addr *); 58static void in_len2mask(struct in_addr *, int); 59static int in_lifaddr_ioctl(struct socket *, u_long, caddr_t, 60 struct ifnet *, struct thread *); |
61 | 61 |
62static void in_socktrim __P((struct sockaddr_in *)); 63static int in_ifinit __P((struct ifnet *, 64 struct in_ifaddr *, struct sockaddr_in *, int)); | 62static void in_socktrim(struct sockaddr_in *); 63static int in_ifinit(struct ifnet *, 64 struct in_ifaddr *, struct sockaddr_in *, int); |
65 66static int subnetsarelocal = 0; 67SYSCTL_INT(_net_inet_ip, OID_AUTO, subnets_are_local, CTLFLAG_RW, 68 &subnetsarelocal, 0, ""); 69 70struct in_multihead in_multihead; /* XXX BSS initialization */ 71 72extern struct inpcbinfo ripcbinfo; --- 810 unchanged lines hidden --- | 65 66static int subnetsarelocal = 0; 67SYSCTL_INT(_net_inet_ip, OID_AUTO, subnets_are_local, CTLFLAG_RW, 68 &subnetsarelocal, 0, ""); 69 70struct in_multihead in_multihead; /* XXX BSS initialization */ 71 72extern struct inpcbinfo ripcbinfo; --- 810 unchanged lines hidden --- |