INET Framework for OMNeT++/OMNEST
PacketDrillConfig Class Reference

#include <PacketDrillUtils.h>

Public Member Functions

 PacketDrillConfig ()
 
 ~PacketDrillConfig ()
 
const char * getScriptPath () const
 
void setScriptPath (const char *sPath)
 
int getWireProtocol () const
 
int getSocketDomain () const
 
int getToleranceUsecs () const
 
void parseScriptOptions (cQueue *options)
 

Private Attributes

enum ip_version_t ip_version
 
int socketDomain
 
int wireProtocol
 
int tolerance_usecs
 
int mtu
 
char * scriptPath
 

Constructor & Destructor Documentation

PacketDrillConfig::PacketDrillConfig ( )
91 {
93  socketDomain = AF_INET;
94  wireProtocol = AF_INET;
95  tolerance_usecs = 75000;
97  scriptPath = nullptr;
98 }
char * scriptPath
Definition: PacketDrillUtils.h:453
int wireProtocol
Definition: PacketDrillUtils.h:449
Definition: PacketDrillUtils.h:272
int mtu
Definition: PacketDrillUtils.h:452
int tolerance_usecs
Definition: PacketDrillUtils.h:451
#define TUN_DRIVER_DEFAULT_MTU
Definition: PacketDrillUtils.h:221
enum ip_version_t ip_version
Definition: PacketDrillUtils.h:447
int socketDomain
Definition: PacketDrillUtils.h:448
PacketDrillConfig::~PacketDrillConfig ( )
101 {
102 }

Member Function Documentation

const char* PacketDrillConfig::getScriptPath ( ) const
inline

Referenced by parse_script().

456 { return scriptPath; };
char * scriptPath
Definition: PacketDrillUtils.h:453
int PacketDrillConfig::getSocketDomain ( ) const
inline
459 { return socketDomain; };
int socketDomain
Definition: PacketDrillUtils.h:448
int PacketDrillConfig::getToleranceUsecs ( ) const
inline
460 { return tolerance_usecs; };
int tolerance_usecs
Definition: PacketDrillUtils.h:451
int PacketDrillConfig::getWireProtocol ( ) const
inline

Referenced by yyparse().

458 { return wireProtocol; };
int wireProtocol
Definition: PacketDrillUtils.h:449
void PacketDrillConfig::parseScriptOptions ( cQueue *  options)

Referenced by parse_and_finalize_config().

105 {
106 }
void PacketDrillConfig::setScriptPath ( const char *  sPath)
inline

Referenced by PacketDrillScript::parseScriptAndSetConfig().

457 { scriptPath = (char*)sPath; };
char * scriptPath
Definition: PacketDrillUtils.h:453

Member Data Documentation

enum ip_version_t PacketDrillConfig::ip_version
private
int PacketDrillConfig::mtu
private
char* PacketDrillConfig::scriptPath
private
int PacketDrillConfig::socketDomain
private
int PacketDrillConfig::tolerance_usecs
private
int PacketDrillConfig::wireProtocol
private

The documentation for this class was generated from the following files: