Sha256: f43967176c21fcf00f976a21c5d8827e6d15c4d6f9e8af559c45a75cf191d1ff
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
require 'stringio' module PacketGen # Module to handle PCAP-NG file format. # See http://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=https://raw.githubusercontent.com/pcapng/pcapng/master/draft-tuexen-opsawg-pcapng.xml&modeAsFormat=html/ascii&type=ascii module PcapNG # Section Header Block type number SHB_TYPE = StructFu::Int32.new(0x0A0D0D0A, :little) # Interface Description Block type number IDB_TYPE = StructFu::Int32.new(1, :little) # Simple Packet Block type number SPB_TYPE = StructFu::Int32.new(3, :little) # Enhanced Packet Block type number EPB_TYPE = StructFu::Int32.new(6, :little) # Various LINKTYPE values from http://www.tcpdump.org/linktypes.html # FIXME: only ETHERNET type is defined as this is the only link layer # type supported by PacketGen LINKTYPE_ETHERNET = 1 # Base error class for PcapNG class Error < PacketGen::Error; end # Invalid PcapNG file error class InvalidFileError < Error; end end end require_relative 'pcapng/block.rb' require_relative 'pcapng/unknown_block.rb' require_relative 'pcapng/shb.rb' require_relative 'pcapng/idb.rb' require_relative 'pcapng/epb.rb' require_relative 'pcapng/spb.rb' require_relative 'pcapng/file.rb'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
packetgen-0.3.0 | lib/packetgen/pcapng.rb |
packetgen-0.2.0 | lib/packetgen/pcapng.rb |
packetgen-0.1.0 | lib/packetgen/pcapng.rb |