capture/generate.rb in packet_via_dmem-0.0.8 vs capture/generate.rb in packet_via_dmem-0.0.10
- old
+ new
@@ -23,10 +23,10 @@
case packet.type
when :received then received << packet.packet.join
when :sent then sent << packet.packet.join
else raise StandardError, "invalid type #{type}"
end
- headers << packet.header.join
+ headers << packet.header.to_s
originals << packet.original.join
end
File.write('header-' + name + '.txt', headers.join("\n"))
File.write('sent-' + name + '.txt', sent.join("\n"))
File.write('received-' + name + '.txt', received.join("\n"))