Class: Pcap::SPPacket
- Defined in:
- lib/pcap/packet.rb,
ext/pcap/slow_protocol_packet.c
Overview
Slow protocol frames
Direct Known Subclasses
Instance Method Summary collapse
-
#sp_subtype ⇒ Object
return Slow protocol subtype: 0x01 LACP, 0x02 Marker 0x03 EFM OAM.
Methods inherited from Packet
#=~, #_dump, #_dump_to, _load, _load_from, #arp?, #caplen, #datalink, #dst_mac_address, #ethertype, #inspect, #ip?, #ipv6?, #lacp?, #length, #raw_data, #size, #src_mac_address, #tcp?, #time, #time_i, #time_i=, #to_s, #udata, #udata=, #udp?, #unpack_hex_string
Instance Method Details
#sp_subtype ⇒ Object
return Slow protocol subtype: 0x01 LACP, 0x02 Marker 0x03 EFM OAM
98 99 100 |
# File 'lib/pcap/packet.rb', line 98 def sp_subtype raw_data[14].unpack('C')[0] end |