Class: Racket::L4::ICMPDestinationUnreachable

Inherits:
ICMPGeneric show all
Defined in:
lib/racket/l4/icmp.rb

Overview

ICMP Destination Unreachable Message

Constant Summary collapse

ICMP_CODE_NETWORK_UNREACHABLE =
0
ICMP_CODE_HOST_UNREACHABLE =
1
ICMP_CODE_PROTOCOL_UNREACHABLE =
2
ICMP_CODE_PORT_UNREACHABLE =
3
ICMP_CODE_FRAG_NEEDED_DF_SET =
4
ICMP_CODE_SOURCE_ROUTE_FAILED =
5

Constants inherited from ICMPGeneric

Racket::L4::ICMPGeneric::ICMP_TYPE_ADDRESS_MASK_REPLY, Racket::L4::ICMPGeneric::ICMP_TYPE_ADDRESS_MASK_REQUEST, Racket::L4::ICMPGeneric::ICMP_TYPE_DESTINATION_UNREACHABLE, Racket::L4::ICMPGeneric::ICMP_TYPE_ECHO_REPLY, Racket::L4::ICMPGeneric::ICMP_TYPE_ECHO_REQUEST, Racket::L4::ICMPGeneric::ICMP_TYPE_INFO_REPLY, Racket::L4::ICMPGeneric::ICMP_TYPE_INFO_REQUEST, Racket::L4::ICMPGeneric::ICMP_TYPE_MOBILE_IP_ADVERTISEMENT, Racket::L4::ICMPGeneric::ICMP_TYPE_PARAMETER_PROBLEM, Racket::L4::ICMPGeneric::ICMP_TYPE_REDIRECT, Racket::L4::ICMPGeneric::ICMP_TYPE_ROUTER_SOLICITATION, Racket::L4::ICMPGeneric::ICMP_TYPE_SOURCE_QUENCH, Racket::L4::ICMPGeneric::ICMP_TYPE_TIMESTAMP_REPLY, Racket::L4::ICMPGeneric::ICMP_TYPE_TIMESTAMP_REQUEST, Racket::L4::ICMPGeneric::ICMP_TYPE_TIME_EXCEEDED

Instance Attribute Summary

Attributes inherited from RacketPart

#autofix

Instance Method Summary collapse

Methods inherited from ICMPGeneric

#checksum!, #checksum?, #fix!

Methods inherited from RacketPart

#autofix?, #fix!, #pretty

Constructor Details

#initialize(*args) ⇒ ICMPDestinationUnreachable

Returns a new instance of ICMPDestinationUnreachable.



145
146
147
148
# File 'lib/racket/l4/icmp.rb', line 145

def initialize(*args)
  super(*args)
  self.type = 3 
end