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

void IP4Header::setDestAddress ( uint32  address  ) 

Set the Destination address field (bytes 16-19)

Definition at line 255 of file IP4Header.cc.

References Util::write32().

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

                                                         {
  /*struct in_addr buff;
  int res = inet_aton(address, &buff);
  if (res == 0)
    throw TrException(str_log(ERROR,
                  "Invalid destination address : %s", address));*/
  Util::write32(header, 16, address/*buff.s_addr*/);
}


Generated by  Doxygen 1.6.0   Back to index