logstash-codec-netflow 3.11.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07ad48d13787699e6d90dab262c0567edc948c97
4
- data.tar.gz: 30153eba0e146d5f3a368bb3c42b0e276ebe5a36
3
+ metadata.gz: bc95824b1604154205e68f462971bee07e9ff78a
4
+ data.tar.gz: 20c0adb6af079d138f29f32aa9317cd7204fe7be
5
5
  SHA512:
6
- metadata.gz: 069225ea9353e4b785eb7e3bea887372c5a9c958e03ce418d407a2c728b4ff2c69da24af2d48dfb94b34cb9ea0b41e743ad778ca68a3074eecf1beee3d916cda
7
- data.tar.gz: 77677faa328a265d3b2e8750cc9bdbc85ff81728f33b7e0ebd374b9f1c30e9383e588d2c9da9f1e9d02254a2dc693e7cb5e4d2c347f9307177165136cc88dbdb
6
+ metadata.gz: 60091641ab49c7aa1383c08df19603f2ce1ab7ccdfec0f735740491cd7b966a0ad8f84552985bff90f745c38902c6825868479a27d6f65a58e0ce02165fdb312
7
+ data.tar.gz: 002acbfd04b707a92362483d6d8857c3edfe5d339f4a80cb8302200804f47331ef4f8a7718b0997e68064e2ae30a1c3187be2d9e5e0e318193353b14c87e91ff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.11.1
2
+
3
+ - Improved decoding performance for ASA ACL ids
4
+ - Improved decoding performance for mac addresses
5
+
1
6
  ## 3.11.0
2
7
 
3
8
  - Updated Netflow v9 IE coverage from 10% to 90%
@@ -47,7 +47,7 @@ class IP6Addr < BinData::Primitive
47
47
  end
48
48
 
49
49
  class MacAddr < BinData::Primitive
50
- array :bytes, :type => :uint8, :initial_length => 6
50
+ string :bytes, :length => 6
51
51
 
52
52
  def set(val)
53
53
  unless val.nil?
@@ -57,11 +57,8 @@ class MacAddr < BinData::Primitive
57
57
  end
58
58
 
59
59
  def get
60
- self.bytes.collect { |byte|
61
- unless byte.nil?
62
- byte.value.to_s(16).rjust(2,'0')
63
- end
64
- }.join(":")
60
+ hexstring = self.bytes.unpack('H*')
61
+ hexstring[0].scan(/../).collect { |aclid| aclid }.join(":")
65
62
  end
66
63
  end
67
64
 
@@ -96,7 +93,7 @@ class VarString < BinData::Primitive
96
93
  end
97
94
 
98
95
  class ACLIdASA < BinData::Primitive
99
- array :bytes, :type => :uint8, :initial_length => 12
96
+ string :bytes, :length => 12
100
97
 
101
98
  def set(val)
102
99
  unless val.nil?
@@ -105,12 +102,8 @@ class ACLIdASA < BinData::Primitive
105
102
  end
106
103
 
107
104
  def get
108
- hexstring = self.bytes.collect { |byte|
109
- unless byte.nil?
110
- byte.value.to_s(16).rjust(2,'0')
111
- end
112
- }.join
113
- hexstring.scan(/......../).collect { |aclid| aclid }.join("-")
105
+ hexstring = self.bytes.unpack('H*')
106
+ hexstring[0].scan(/......../).collect { |aclid| aclid }.join("-")
114
107
  end
115
108
  end
116
109
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-netflow'
4
- s.version = '3.11.0'
4
+ s.version = '3.11.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Reads Netflow v5 and Netflow v9 data"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-netflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement