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 +4 -4
- data/lib/jruby-pcap/frame.rb +4 -6
- data/lib/jruby-pcap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d857976a8561dd0020fb4cd1d0353f99d02e4e7
|
4
|
+
data.tar.gz: d3798352c5474897d6274c279c0409657b813bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99ae0424d663bdf2c31f63bd7a81d4af931c0c47782bd49f9b5bd2b9b27ca44d44befbe46a9aef5a522dc1ac1a28ba5fb9bf4516c69092bafc53ec2c7fe93d01
|
7
|
+
data.tar.gz: a95ed3e7d4299a01cbfd09dce1ecd429655575ba83224f15dc534625fda54ab5983ae49e3df78f1a78cd7877bfcc2c8e3d6e29c75d7d5050cefe71704470cb1a
|
data/lib/jruby-pcap/frame.rb
CHANGED
@@ -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']
|
58
|
-
hash['
|
59
|
-
hash['
|
60
|
-
hash['
|
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
|
data/lib/jruby-pcap/version.rb
CHANGED