Sha256: eda05dc4acaea2859554016f57d7c188d1bfb4f729fecdcdf7ef16da49e2e0b0
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
# encoding: utf-8 require 'bindata' module Pio module Type # OpenFlow 1.0 format. module OpenFlow def openflow_header class_eval do uint8 :version, value: 1 uint8 :message_type uint16 :message_length, initial_value: -> { 8 + body.length } uint32 :transaction_id, initial_value: 0 end end # Description of a physical port class PhyPort < BinData::Record endian :big uint16 :port_no uint8 :hw_addr stringz :name, read_length: 16 uint32 :config uint32 :state uint32 :curr uint32 :advertised uint32 :supported uint32 :peer end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.7.0 | lib/pio/type/open_flow.rb |