jruby-pcap 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 838e737006cb52853044d9798f04905eb78925f3
4
- data.tar.gz: a11caded8621505fb9c32f55f20dbe77dc7ed34c
3
+ metadata.gz: 2d857976a8561dd0020fb4cd1d0353f99d02e4e7
4
+ data.tar.gz: d3798352c5474897d6274c279c0409657b813bc9
5
5
  SHA512:
6
- metadata.gz: 730a0d42cbcae64de7af93277a2a6636685efa19ba33019667c5e949cfe41a605705e11f65be98a858677931ca15c22d3766aa5dcc77f8afde8f474ac344dd18
7
- data.tar.gz: 4a122a4c9f61f28fcbcc9c76039cf45165daacf700c40536d6ee45b326013cf329faa6204aa07b41f7285418045364fcb57d22eeed257f727e7ff1acd9094945
6
+ metadata.gz: 99ae0424d663bdf2c31f63bd7a81d4af931c0c47782bd49f9b5bd2b9b27ca44d44befbe46a9aef5a522dc1ac1a28ba5fb9bf4516c69092bafc53ec2c7fe93d01
7
+ data.tar.gz: a95ed3e7d4299a01cbfd09dce1ecd429655575ba83224f15dc534625fda54ab5983ae49e3df78f1a78cd7877bfcc2c8e3d6e29c75d7d5050cefe71704470cb1a
@@ -54,12 +54,10 @@ module Jruby::Pcap
54
54
  def to_hash
55
55
  hash = {}
56
56
  if (@frame.is_a?(IpV4Packet))
57
- hash['src_addr'] = src_addr
58
- hash['src_host'] = src_host
59
- hash['dst_addr'] = dst_addr
60
- hash['dst_host'] = dst_host
61
- host['procotol'] = protocol
62
- host['version'] = version
57
+ hash['src_addr'] = src_addr
58
+ hash['dst_addr'] = dst_addr
59
+ hash['procotol'] = protocol
60
+ hash['version'] = version
63
61
  hash['ip_length'] = length
64
62
  elsif (@frame.is_a?(TcpPacket) || @frame.is_a?(UdpPacket))
65
63
  hash['src_port'] = src_port
@@ -1,5 +1,5 @@
1
1
  module Jruby
2
2
  module Pcap
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-pcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pere Urbon-Bayes