Class: PacketGen::Header::LLC
- Inherits:
-
Base
- Object
- Types::Fields
- Base
- PacketGen::Header::LLC
- Defined in:
- lib/packetgen/header/llc.rb
Overview
Logical-Link Control header
A LLC header consists of:
-
a #dsap (Types::Int8),
-
a #ssap (Types::Int8),
-
a #control (Types::Int8),
-
and a #body (a Types::String or another Base class).
Instance Attribute Summary collapse
- #body ⇒ Types::String, Header::Base
-
#control ⇒ Integer
8-bit control value.
-
#dsap ⇒ Integer
8-bit dsap value.
-
#ssap ⇒ Integer
8-bit ssap value.
Method Summary
Methods inherited from Base
bind, calculate_and_set_length, #header_id, inherited, #initialize, #ip_header, #ll_header
Methods included from PacketGen::Headerable
#added_to_packet, included, #method_name, #packet, #packet=, #parse?, #protocol_name, #read
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
This class inherits a constructor from PacketGen::Header::Base
Instance Attribute Details
#body ⇒ Types::String, Header::Base
33 |
# File 'lib/packetgen/header/llc.rb', line 33 define_field :body, Types::String |
#control ⇒ Integer
Returns 8-bit control value.
30 |
# File 'lib/packetgen/header/llc.rb', line 30 define_field :control, Types::Int8 |