00001 #include "Headers.h"
00002 #include "PacketPimSmJoinPrune.h"
00003
00004 CPacketPimSmJoinPrune::CPacketPimSmJoinPrune(
00005 EType type,
00006 CAddress address
00007 ) : CPacketPimSm(
00008 CPacketPimSm::JOIN_PRUNE,
00009 PACKET_PIM_SM_JOIN_PRUNE_HEADER,
00010 NULL,
00011 CPacket::PACKET_TOS_HIGH)
00012 {
00013 this->type = type;
00014 this->address = address;
00015 }
00016
00017 CPacketPimSmJoinPrune::~CPacketPimSmJoinPrune()
00018 {
00019 }
00020
00021 CPacket* CPacketPimSmJoinPrune::Copy()
00022 {
00023 CPacket* packet = new CPacketPimSmJoinPrune(
00024 this->type,
00025 this->address);
00026
00027 return packet;
00028 }