in.c (10939) | in.c (11921) |
---|---|
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 * $Id: in.c,v 1.15 1995/07/17 15:15:15 wollman Exp $ | 34 * $Id: in.c,v 1.16 1995/09/21 17:50:43 wollman Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/ioctl.h> 40#include <sys/errno.h> 41#include <sys/malloc.h> 42#include <sys/socket.h> --- 643 unchanged lines hidden (view full) --- 686 687/* 688 * Delete a multicast address record. 689 */ 690void 691in_delmulti(inm) 692 register struct in_multi *inm; 693{ | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/ioctl.h> 40#include <sys/errno.h> 41#include <sys/malloc.h> 42#include <sys/socket.h> --- 643 unchanged lines hidden (view full) --- 686 687/* 688 * Delete a multicast address record. 689 */ 690void 691in_delmulti(inm) 692 register struct in_multi *inm; 693{ |
694 register struct in_multi **p; | |
695 struct ifreq ifr; 696 int s = splnet(); 697 698 if (--inm->inm_refcount == 0) { 699 /* 700 * No remaining claims to this record; let IGMP know that 701 * we are leaving the multicast group. 702 */ --- 20 unchanged lines hidden --- | 694 struct ifreq ifr; 695 int s = splnet(); 696 697 if (--inm->inm_refcount == 0) { 698 /* 699 * No remaining claims to this record; let IGMP know that 700 * we are leaving the multicast group. 701 */ --- 20 unchanged lines hidden --- |