fluent-plugin-netflow 0.0.4 → 0.0.5

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: 80cb41c0e0c918bd556db7f17a810789d67565d9
4
- data.tar.gz: b80568cec5c56ea94091281126c8ba6dc77aaccc
3
+ metadata.gz: f00a79e330b95a820a1e610b73140c3106589048
4
+ data.tar.gz: 2176c672024bd62156dc91b6159d3cecd3a10614
5
5
  SHA512:
6
- metadata.gz: 2df55c1357c007c7607a61bfd298fca5c8d974298347ba10ad652c9ea9859a593cc9dba4240e2adb80402dc2c9c2ad731f42aedf83069d0fdc8ba670da587578
7
- data.tar.gz: 02ddac47f6696fae81970ae75252a8607392cf8df5524da670a209c4b4ff399733c29376efea866d6ecc14384b3f3587a81156789b43fbb9cc24c207530f8115
6
+ metadata.gz: 5326a6cc3a6dbcd71e3a5b5935060d3020584360393f03bf87322cc83d73fcb2dd9beff3c3b8abc6b208e0139b71373dd856b5b7d15235a72f33de2487d88786
7
+ data.tar.gz: 5ccb2149be8e1cb1d35a70b3b515a912ce89aa8b656e8386be62bf40d1768400ba6fb48defb21e2b7c53998ac7c5460401029cef5e994cec9633a959bbffe9b3
data/README.md CHANGED
@@ -23,7 +23,7 @@ Use RubyGems:
23
23
  # optional parser parameters
24
24
  cache_ttl 6000
25
25
  versions [5, 9]
26
- </match>
26
+ </source>
27
27
 
28
28
  ## TODO
29
29
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -201,6 +201,15 @@
201
201
  - :skip
202
202
  69:
203
203
  - :skip
204
+ 70:
205
+ - :mpls_label
206
+ - :mpls_label_1
207
+ 71:
208
+ - :mpls_label
209
+ - :mpls_label_2
210
+ 72:
211
+ - :mpls_label
212
+ - :mpls_label_3
204
213
  80:
205
214
  - :mac_addr
206
215
  - :in_dst_mac
@@ -282,6 +282,20 @@ module Fluent
282
282
  end
283
283
  end
284
284
 
285
+ class MplsLabel < BinData::Primitive
286
+ bit20 :label
287
+ bit3 :exp
288
+ bit1 :bottom
289
+ def set(val)
290
+ self.label = val >> 4
291
+ self.exp = (val & 0b1111) >> 1
292
+ self.bottom = val & 0b1
293
+ end
294
+ def get
295
+ self.label
296
+ end
297
+ end
298
+
285
299
  class Header < BinData::Record
286
300
  endian :big
287
301
  uint16 :version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-netflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd