Sha256: 022c6974da74e796ec4ca7cf5f83fb2d04f11e95c6c66d44bb0455e2dc9bb73b
Contents?: true
Size: 717 Bytes
Versions: 27
Compression:
Stored size: 717 Bytes
Contents
require 'bindata' require 'forwardable' module Pio # An action to strip the 802.1q header. class StripVlanHeader # OpenFlow 1.0 OFPAT_STRIP_VLAN action format. class Format < BinData::Record endian :big uint16 :type, value: 3 uint16 :message_length, value: 8 uint32 :padding hide :padding end def self.read(raw_data) strip_vlan = allocate strip_vlan.instance_variable_set :@format, Format.read(raw_data) strip_vlan end extend Forwardable def_delegators :@format, :type def_delegators :@format, :message_length def_delegator :@format, :to_binary_s, :to_binary def initialize @format = Format.new end end end
Version data entries
27 entries across 27 versions & 1 rubygems