File: dead_cap.rb

package info (click to toggle)
ruby-pcaprub 0.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 846; ruby: 308; makefile: 2
file content (12 lines) | stat: -rwxr-xr-x 227 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

require 'rubygems'
require 'pcaprub'


capture = PCAPRUB::Pcap.open_dead(Pcap::DLT_EN10MB, 65535)
puts capture.pcap_major_version()
puts capture.pcap_minor_version()