Class: PacketGen::Header::LLC
- Defined in:
- lib/packetgen/header/llc.rb
Overview
Logical-Link Control header
A LLC header consists of:
-
a #dsap (
BinStruct::Int8
), -
a #ssap (
BinStruct::Int8
), -
a #control (
BinStruct::Int8
), -
and a #body (a
BinStruct::String
or another PacketGen::Headerable class).
Instance Attribute Summary collapse
-
#body ⇒ BinStruct::String, Headerable
LLC body.
-
#control ⇒ Integer
8-bit control value.
-
#dsap ⇒ Integer
8-bit Destination Service Access Point value.
-
#ssap ⇒ Integer
8-bit Source Service Access Point 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, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Header::Base
Instance Attribute Details
#body ⇒ BinStruct::String, Headerable
LLC body
37 |
# File 'lib/packetgen/header/llc.rb', line 37 define_attr :body, BinStruct::String |
#control ⇒ Integer
8-bit control value
33 |
# File 'lib/packetgen/header/llc.rb', line 33 define_attr :control, BinStruct::Int8 |
#dsap ⇒ Integer
8-bit Destination Service Access Point value
25 |
# File 'lib/packetgen/header/llc.rb', line 25 define_attr :dsap, BinStruct::Int8 |
#ssap ⇒ Integer
8-bit Source Service Access Point value
29 |
# File 'lib/packetgen/header/llc.rb', line 29 define_attr :ssap, BinStruct::Int8 |