117                 option->setLength(length);
   118                 option->setMaxSegmentSize(opt->
getMss());
   125                 option->setLength(length);
   133                 option->setLength(length);
   138             if (length > 2 && (length % 8) == 2) {
   140                 option->setLength(length);
   141                 option->setSackItemArraySize(length / 8);
   142                 unsigned int count = 0;
   143                 for (
int i = 0; i < 2 * opt->
getBlockList()->getLength(); i += 2) {
   147                     option->setSackItem(count++, si);
   155                 option->setLength(length);
   156                 option->setSenderTimestamp(opt->
getVal());
   157                 option->setEchoedTimestamp(opt->
getEcr());
   162             EV_INFO << 
"TCP option is not supported (yet).";
   166     option->setKind(opt->
getKind());
   167     option->setLength(length);
   169         option->setBytesArraySize(length - 2);
   170     for (
unsigned int i = 2; i < length; i++)
   171         option->setBytes(i-2, length);
 uint16 getMss()
Definition: PacketDrillUtils.h:703
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:182 by nedtool. 
Definition: TCPSegment_m.h:552
#define TCPOPT_NOP
Definition: PacketDrillUtils.h:58
int count(const std::vector< T > &v, const T &a)
Definition: stlutils.h:58
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:161 by nedtool. 
Definition: TCPSegment_m.h:428
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:154 by nedtool. 
Definition: TCPSegment_m.h:389
Definition: PacketDrillUtils.h:627
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:167 by nedtool. 
Definition: TCPSegment_m.h:465
#define TCPOPT_EOL
Definition: PacketDrillUtils.h:57
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:116 by nedtool. 
Definition: TCPSegment_m.h:134
#define TCPOPT_SACK_PERMITTED
Definition: PacketDrillUtils.h:63
#define TCPOPT_MAXSEG
Definition: PacketDrillUtils.h:59
cQueue * getBlockList()
Definition: PacketDrillUtils.h:711
uint32 getVal()
Definition: PacketDrillUtils.h:707
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:147 by nedtool. 
Definition: TCPSegment_m.h:349
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:135 by nedtool. 
Definition: TCPSegment_m.h:276
uint32 getEcr()
Definition: PacketDrillUtils.h:709
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:141 by nedtool. 
Definition: TCPSegment_m.h:312
uint16 getWindowScale()
Definition: PacketDrillUtils.h:705
#define TCPOPT_WINDOW
Definition: PacketDrillUtils.h:61
#define TCPOPT_SACK
Definition: PacketDrillUtils.h:65
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:174 by nedtool. 
Definition: TCPSegment_m.h:510
virtual void setEnd(unsigned int end)
uint16 getKind()
Definition: PacketDrillUtils.h:700
uint16 getLength()
Definition: PacketDrillUtils.h:701
#define TCPOPT_TIMESTAMP
Definition: PacketDrillUtils.h:66
virtual void setStart(unsigned int start)