Class: PacketGen::Header::LLC

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

Overview

Logical-Link Control header

A LLC header consists of:

Instance Attribute Summary collapse

Attributes inherited from Base

#packet

Method Summary

Methods inherited from Base

bind_header, #header_id, inherited, #ip_header, known_headers, #parse?, #protocol_name

Methods inherited from Types::Fields

#[], #[]=, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, #force_binary, inherited, #initialize, #inspect, #read, #sz, #to_h, #to_s

Constructor Details

This class inherits a constructor from PacketGen::Types::Fields

Instance Attribute Details

#bodyTypes::String, Header::Base



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

define_field :body, Types::String

#controlInteger

Returns 8-bit control value.

Returns:

  • (Integer)

    8-bit control value



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

define_field :control, Types::Int8

#dsapInteger

Returns 8-bit dsap value.

Returns:

  • (Integer)

    8-bit dsap value



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

define_field :dsap, Types::Int8

#ssapInteger

Returns 8-bit ssap value.

Returns:

  • (Integer)

    8-bit ssap value



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

define_field :ssap, Types::Int8