wireshark/packet-igmp.h
Guy Harris c2c2154712 Export "igmp_checksum()" from the IGMP dissector and give it additional
arguments that specify the header field indices for the checksum field
and the "checksum is bad" Boolean, and have the dissectors for some
protocols that use IGMP (DVMRP, MRDISC, MSNIP) use it rather than having
their own checksumming routines.

Also, fix it to correctly add the "checksum is bad" Boolean.

svn path=/trunk/; revision=4665
2002-02-01 11:01:57 +00:00

33 lines
1.2 KiB
C

/* packet-igmp.h 2001 Ronnie Sahlberg <See AUTHORS for email>
* Declarations of routines for IGMP packet disassembly
*
* $Id: packet-igmp.h,v 1.1 2002/02/01 11:01:57 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __PACKET_MSNIP_H__
#define __PACKET_MSNIP_H__
void igmp_checksum(proto_tree *tree, tvbuff_t *tvb, int hf_index,
int hf_index_bad, packet_info *pinfo, guint len);
#endif