Sha256: 8481293d689d0a3184385780258611cd8b57de335e5030bb356bbf0b1f477747
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 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, raw_data: data_dump) packet_in.to_binary # => Packet-In message in binary format.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pio-0.18.2 | examples/packet_in_new.rb |
pio-0.18.1 | examples/packet_in_new.rb |
pio-0.18.0 | examples/packet_in_new.rb |
pio-0.17.0 | examples/packet_in_new.rb |