Sha256: 284ec7b3bf0c7fa09a7ce6edcaeedf676713a979db01f4c6138fe06f68fa6756
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require 'pio' data_dump = [ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xac, 0x5d, 0x10, 0x31, 0x37, 0x79, 0x08, 0x06, 0x00, 0x01, 0x08, 0x00, 0x06, 0x04, 0x00, 0x01, 0xac, 0x5d, 0x10, 0x31, 0x37, 0x79, 0xc0, 0xa8, 0x02, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xa8, 0x02, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ].pack('C*') packet_in = Pio::PacketIn.new( transaction_id: 0, buffer_id: 0xffffff00, in_port: 1, reason: :no_match, data: data_dump ) packet_in.to_binary # => Packet-In message in binary format.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pio-0.16.0 | examples/packet_in_new.rb |
pio-0.15.2 | examples/packet_in_new.rb |