igmp.c (256281) | igmp.c (279263) |
---|---|
1/*- 2 * Copyright (c) 2007-2009 Bruce Simpson. 3 * Copyright (c) 1988 Stephen Deering. 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Stephen Deering of Stanford University. --- 34 unchanged lines hidden (view full) --- 43 * Modified by Bill Fenner, Xerox PARC, Feb 1995. 44 * Modified to fully comply to IGMPv2 by Bill Fenner, Oct 1995. 45 * Significantly rewritten for IGMPv3, VIMAGE, and SMP by Bruce Simpson. 46 * 47 * MULTICAST Revision: 3.5.1.4 48 */ 49 50#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2009 Bruce Simpson. 3 * Copyright (c) 1988 Stephen Deering. 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Stephen Deering of Stanford University. --- 34 unchanged lines hidden (view full) --- 43 * Modified by Bill Fenner, Xerox PARC, Feb 1995. 44 * Modified to fully comply to IGMPv2 by Bill Fenner, Oct 1995. 45 * Significantly rewritten for IGMPv3, VIMAGE, and SMP by Bruce Simpson. 46 * 47 * MULTICAST Revision: 3.5.1.4 48 */ 49 50#include <sys/cdefs.h> |
51__FBSDID("$FreeBSD: stable/10/sys/netinet/igmp.c 254804 2013-08-24 19:51:18Z andre $"); | 51__FBSDID("$FreeBSD: stable/10/sys/netinet/igmp.c 279263 2015-02-25 05:43:02Z delphij $"); |
52 53#include <sys/param.h> 54#include <sys/systm.h> 55#include <sys/module.h> 56#include <sys/malloc.h> 57#include <sys/mbuf.h> 58#include <sys/socket.h> 59#include <sys/protosw.h> --- 1468 unchanged lines hidden (view full) --- 1528 m_freem(m); 1529 return; 1530 } 1531 break; 1532 1533 case IGMP_VERSION_3: { 1534 struct igmpv3 *igmpv3; 1535 uint16_t igmpv3len; | 52 53#include <sys/param.h> 54#include <sys/systm.h> 55#include <sys/module.h> 56#include <sys/malloc.h> 57#include <sys/mbuf.h> 58#include <sys/socket.h> 59#include <sys/protosw.h> --- 1468 unchanged lines hidden (view full) --- 1528 m_freem(m); 1529 return; 1530 } 1531 break; 1532 1533 case IGMP_VERSION_3: { 1534 struct igmpv3 *igmpv3; 1535 uint16_t igmpv3len; |
1536 uint16_t srclen; 1537 int nsrc; | 1536 uint16_t nsrc; 1537 int srclen; |
1538 1539 IGMPSTAT_INC(igps_rcv_v3_queries); 1540 igmpv3 = (struct igmpv3 *)igmp; 1541 /* 1542 * Validate length based on source count. 1543 */ 1544 nsrc = ntohs(igmpv3->igmp_numsrc); 1545 srclen = sizeof(struct in_addr) * nsrc; --- 2105 unchanged lines hidden --- | 1538 1539 IGMPSTAT_INC(igps_rcv_v3_queries); 1540 igmpv3 = (struct igmpv3 *)igmp; 1541 /* 1542 * Validate length based on source count. 1543 */ 1544 nsrc = ntohs(igmpv3->igmp_numsrc); 1545 srclen = sizeof(struct in_addr) * nsrc; --- 2105 unchanged lines hidden --- |