Class: Pcap::ICMPPacket

Inherits:
IPPacket show all
Defined in:
lib/pcap_misc.rb,
ext/icmp_packet.c

Direct Known Subclasses

ICMPDomain, ICMPDomainReply, ICMPEcho, ICMPEchoReply, ICMPIReq, ICMPIReqReply, ICMPMaskReply, ICMPMaskReq, ICMPParamProb, ICMPRedirect, ICMPRouterAdvert, ICMPRouterSolicit, ICMPSourceQuench, ICMPTRoute, ICMPTStamp, ICMPTStampReply, ICMPTimxceed, ICMPUnreach

Instance Method Summary (collapse)

Methods inherited from IPPacket

#dst, #dst=, #ip_data, #ip_df?, #ip_dst, #ip_dst=, #ip_flags, #ip_hlen, #ip_id, #ip_len, #ip_mf?, #ip_off, #ip_proto, #ip_src, #ip_src=, #ip_sum, #ip_sumok?, #ip_tos, #ip_ttl, #ip_ver, #src, #src=

Methods inherited from Packet

#=~, #_dump, #_dump_to, _load, _load_from, #caplen, #datalink, #inspect, #ip?, #length, #raw_data, #size, #tcp?, #time, #time_i, #time_i=, #udata, #udata=, #udp?

Instance Method Details

- (Object) icmp_cksum

- (Object) icmp_code

- (Object) icmp_type

- (Object) icmp_typestr

- (Object) to_s



46
47
48
# File 'lib/pcap_misc.rb', line 46

def to_s
  "#{src} > #{dst}: icmp: #{icmp_typestr}"
end