spcap 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ module Spcap
48
48
 
49
49
  # Return fragment offset.
50
50
  def ip_off
51
- @raw_data[4,4].unpack("n").first & 0xFFF
51
+ @raw_data[6,2].unpack("n").first & 0xFFF
52
52
  end
53
53
 
54
54
 
@@ -28,7 +28,7 @@ module Spcap
28
28
  def dport ; tcp_dport ; end
29
29
 
30
30
  # Return the value of 6-bits flag field.
31
- def tcp_flags ; ( ip_data.getbyte(13) & 0x6F ) ; end
31
+ def tcp_flags ; ( ip_data.getbyte(13) & 0x3F ) ; end
32
32
 
33
33
  # Return the value of 6-bits flag field as string like ".A...F".
34
34
  def tcp_flags_s
@@ -1,3 +1,3 @@
1
1
  module Spcap
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-31 00:00:00.000000000 Z
12
+ date: 2014-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log4r