Class: PacketGen::Header::LLC

Inherits:
Base
  • Object
show all
Defined in:
lib/packetgen/header/llc.rb

Overview

Logical-Link Control header

A LLC header consists of:

Author:

  • Sylvain Daubert

Since:

  • 1.4.0

Instance Attribute Summary collapse

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

#bodyBinStruct::String, Headerable

LLC body

Returns:


37
# File 'lib/packetgen/header/llc.rb', line 37

define_attr :body, BinStruct::String

#controlInteger

8-bit control value

Returns:

  • (Integer)

33
# File 'lib/packetgen/header/llc.rb', line 33

define_attr :control, BinStruct::Int8

#dsapInteger

8-bit Destination Service Access Point value

Returns:

  • (Integer)

25
# File 'lib/packetgen/header/llc.rb', line 25

define_attr :dsap, BinStruct::Int8

#ssapInteger

8-bit Source Service Access Point value

Returns:

  • (Integer)

29
# File 'lib/packetgen/header/llc.rb', line 29

define_attr :ssap, BinStruct::Int8