00001 #include "Headers.h"
00002 #include "PacketIgmp.h"
00003
00004 CPacketIgmp::CPacketIgmp(
00005 CAddress group,
00006 EPacketIgmpType type,
00007 __time maxResponse
00008 ) : CPacket(PACKET_IGMP_HEADER, NULL, PACKET_TOS_HIGH)
00009 {
00010 this->group = group;
00011 this->type = type;
00012 this->maxResponse = maxResponse;
00013 }
00014
00015 CPacket* CPacketIgmp::Copy()
00016 {
00017 CPacket* packet = new CPacketIgmp(
00018 this->group,
00019 this->type,
00020 this->maxResponse);
00021
00022 return packet;
00023 }