Class: PacketGen::Header::SNAP

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

Overview

Sub-Network Access Protocol

A SNAP header consists of:

Author:

  • Sylvain Daubert

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



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

define_field :body, Types::String

#ouiTypes::OUI

Returns:



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

define_field :oui, Types::OUI

#proto_idInteger

Returns 16-bit protocol id.

Returns:

  • (Integer)

    16-bit protocol id



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

define_field :proto_id, Types::Int16