00001 // 00002 // Copyright (C) 2000 Institut fuer Telematik, Universitaet Karlsruhe 00003 // Copyright (C) 2004 Andras Varga 00004 // Copyright (C) 2005 Wei Yang, Ng 00005 // 00006 // This program is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public License 00008 // as published by the Free Software Foundation; either version 2 00009 // of the License, or (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public License 00017 // along with this program; if not, see <http://www.gnu.org/licenses/>. 00018 // 00019 00020 00021 // Cleanup and rewrite: Andras Varga, 2004 00022 // Implementation of IPv6 version: Wei Yang, Ng, 2005 00023 00024 #ifndef __IPv6ERRORHANDLING_H__ 00025 #define __IPv6ERRORHANDLING_H__ 00026 00027 #include <omnetpp.h> 00028 #include "INETDefs.h" 00029 #include "IPv6ControlInfo.h" 00030 #include "ICMPv6Message_m.h" 00031 00035 // FIXME is such thing needed at all??? 00036 class INET_API IPv6ErrorHandling: public cSimpleModule 00037 { 00038 protected: 00039 virtual void initialize(); 00040 virtual void handleMessage(cMessage *msg); 00041 00042 protected: 00043 virtual void displayType1Msg(int code); 00044 virtual void displayType2Msg(); 00045 virtual void displayType3Msg(int code); 00046 virtual void displayType4Msg(int code); 00047 }; 00048 00049 #endif