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

void IP4Header::setProtocol ( uint8  protocol  ) 

Set the Protocol field (byte 9)

Parameters:
protocol The protocol number

Definition at line 166 of file IP4Header.cc.

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

                                      {
  header[9] = (uint8)protocol;
}


Generated by  Doxygen 1.6.0   Back to index