class PacketGen::Header::ICMP

Public Instance Methods

destination_unreachable?() click to toggle source
# File lib/capra/packetgen_extensions.rb, line 127
def destination_unreachable?
  self.type == 3
end
echo?() click to toggle source
# File lib/capra/packetgen_extensions.rb, line 135
def echo?
  self.type == 8
end
echo_reply?() click to toggle source
# File lib/capra/packetgen_extensions.rb, line 123
def echo_reply?
  self.type == 0
end
redirect?() click to toggle source
# File lib/capra/packetgen_extensions.rb, line 131
def redirect?
  self.type == 5
end
router_advertisement?() click to toggle source
# File lib/capra/packetgen_extensions.rb, line 139
def router_advertisement?
  self.type == 9
end
router_solicitation?() click to toggle source
# File lib/capra/packetgen_extensions.rb, line 143
def router_solicitation?
  self.type == 10
end