Class: Pcap::IPPacket

Inherits:
Packet
  • Object
show all
Defined in:
lib/pcap_misc.rb,
ext/ip_packet.c

Direct Known Subclasses

ICMPPacket, TCPPacket, UDPPacket

Instance Method Summary collapse

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

#dstObject

#dst=Object

#ip_dataObject



191
192
193
# File 'ext/ip_packet.c', line 191

static VALUE
ipp_data(self)
VALUE self;

#ip_df?Boolean

Returns:

  • (Boolean)

#ip_dstObject

#ip_dst=Object

#ip_flagsObject

#ip_hlenObject

#ip_idObject

#ip_lenObject

#ip_mf?Boolean

Returns:

  • (Boolean)

#ip_offObject

#ip_protoObject

#ip_srcObject

#ip_src=Object

#ip_sumObject

#ip_sum_update!Object



174
175
176
# File 'ext/ip_packet.c', line 174

static VALUE
ipp_sum_update(self)
VALUE self;

#ip_sumok?Boolean

Returns:

  • (Boolean)

#ip_tosObject

#ip_ttlObject

#ip_verObject

#srcObject

#src=Object

#to_sObject



14
15
16
# File 'lib/pcap_misc.rb', line 14

def to_s
  "#{ip_src} > #{ip_dst}"
end