Logo Search packages:      
Sourcecode: paris-traceroute version File versions  Download package

void IP4Header::setTotalLength ( uint16  length  ) 

Set the total length of the IP datagram (bytes 2-3)

Definition at line 112 of file IP4Header.cc.

References Util::writebe16().

Referenced by ICMPProbe::ICMPProbe(), and UDPProbe::UDPProbe().

                                        {
  Util::writebe16(header, 2, length);
}


Generated by  Doxygen 1.6.0   Back to index