Class: PacketGen::Header::SNAP
- Inherits:
-
Base
- Object
- Types::Fields
- Base
- PacketGen::Header::SNAP
- Defined in:
- lib/packetgen/header/llc.rb
Overview
Sub-Network Access Protocol
A SNAP header consists of:
-
a #oui (Types::OUI),
-
a #proto_id (Types::Int16),
-
and a #body (a Types::String or another Base class).
Instance Attribute Summary collapse
- #body ⇒ Types::String, Header::Base
- #oui ⇒ Types::OUI
-
#proto_id ⇒ Integer
16-bit protocol id.
Attributes inherited from Base
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
#body ⇒ Types::String, Header::Base
51 |
# File 'lib/packetgen/header/llc.rb', line 51 define_field :body, Types::String |