TCPSpoof.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2006 Andras Varga
00003 //
00004 // This library is free software, you can redistribute it and/or modify
00005 // it under  the terms of the GNU Lesser General Public License
00006 // as published by the Free Software Foundation;
00007 // either version 2 of the License, or any later version.
00008 // The library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011 // See the GNU Lesser General Public License for more details.
00012 //
00013 
00014 #ifndef __INET_TCPSPOOF_H
00015 #define __INET_TCPSPOOF_H
00016 
00017 #include <omnetpp.h>
00018 #include "INETDefs.h"
00019 #include "TCPSegment.h"
00020 #include "IPAddressResolver.h"
00021 
00022 
00026 class INET_API TCPSpoof : public cSimpleModule
00027 {
00028   protected:
00029     virtual void sendToIP(TCPSegment *tcpseg, IPvXAddress src, IPvXAddress dest);
00030     virtual unsigned long chooseInitialSeqNum();
00031     virtual void sendSpoofPacket();
00032 
00033   protected:
00034     virtual void initialize();
00035     virtual void handleMessage(cMessage *msg);
00036 };
00037 
00038 #endif
00039 
00040