logstash-codec-sflow 0.6.0 → 0.7.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aaf8697b6cb76a42460d46e16e1422407a058be
|
4
|
+
data.tar.gz: 8b52a11e6c10be918f32c315d6fe7379e9530024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 368a1f5bd98367c76ea40cc0d03af0420295b96a8a4aebc6d9d402b12b8c1bd90e84242f2a28da0106cabb5f55e8580fbfe908dc8cb0e99d7f4e43e87ae29efe
|
7
|
+
data.tar.gz: d708b1577d239473b523e37f8de5102cbeb3131cc228a965ebe711c628390e2a8383c80f07841023e418579db7e816fab3856cb8061496ff19ba083de05bed32
|
@@ -22,9 +22,9 @@ end
|
|
22
22
|
class EthernetFrameData < BinData::Record
|
23
23
|
endian :big
|
24
24
|
uint32 :packet_length
|
25
|
-
|
25
|
+
sflow_mac_address :src_mac
|
26
26
|
skip :length => 2
|
27
|
-
|
27
|
+
sflow_mac_address :dst_mac
|
28
28
|
skip :length => 2
|
29
29
|
uint32 :type
|
30
30
|
end
|
@@ -34,8 +34,8 @@ class IP4Data < BinData::Record
|
|
34
34
|
endian :big
|
35
35
|
uint32 :ip_packet_length
|
36
36
|
uint32 :ip_protocol
|
37
|
-
|
38
|
-
|
37
|
+
sflow_ip4_addr :src_ip
|
38
|
+
sflow_ip4_addr :dst_ip
|
39
39
|
uint32 :src_port
|
40
40
|
uint32 :dst_port
|
41
41
|
uint32 :tcp_flags
|
@@ -47,8 +47,8 @@ class IP6Data < BinData::Record
|
|
47
47
|
endian :big
|
48
48
|
uint32 :ip_packet_length
|
49
49
|
uint32 :ip_next_header
|
50
|
-
|
51
|
-
|
50
|
+
sflow_ip6_addr :src_ip
|
51
|
+
sflow_ip6_addr :dst_ip
|
52
52
|
uint32 :src_port
|
53
53
|
uint32 :dst_port
|
54
54
|
uint32 :tcp_flags
|
@@ -69,8 +69,8 @@ class ExtendedRouterData < BinData::Record
|
|
69
69
|
endian :big
|
70
70
|
uint32 :ip_version
|
71
71
|
choice :ip_address_next_hop_router, :selection => :ip_version do
|
72
|
-
|
73
|
-
|
72
|
+
sflow_ip4_addr 1
|
73
|
+
sflow_ip6_addr 2
|
74
74
|
end
|
75
75
|
uint32 :src_mask_len
|
76
76
|
uint32 :dst_mask_len
|
@@ -74,8 +74,8 @@ class IPV4Header < BinData::Record
|
|
74
74
|
uint8 :ip_ttl
|
75
75
|
uint8 :ip_protocol
|
76
76
|
uint16 :ip_checksum
|
77
|
-
|
78
|
-
|
77
|
+
sflow_ip4_addr :src_ip
|
78
|
+
sflow_ip4_addr :dst_ip
|
79
79
|
array :ip_options, :initial_length => lambda { (((ip_header_length * 4) - 20)/4).ceil }, :onlyif => :is_options? do
|
80
80
|
string :ip_option, :length => 4, :pad_byte => "\0"
|
81
81
|
end
|
@@ -108,8 +108,8 @@ class EthernetHeader < BinData::Record
|
|
108
108
|
mandatory_parameter :size_header
|
109
109
|
|
110
110
|
endian :big
|
111
|
-
|
112
|
-
|
111
|
+
sflow_mac_address :eth_dst
|
112
|
+
sflow_mac_address :eth_src
|
113
113
|
uint16 :eth_type
|
114
114
|
choice :layer3, :selection => :eth_type do
|
115
115
|
ip_header 2048, :size_header => lambda { size_header - (14 * 8) }
|
@@ -4,7 +4,7 @@ require 'bindata'
|
|
4
4
|
require 'ipaddr'
|
5
5
|
|
6
6
|
# noinspection RubyResolve
|
7
|
-
class
|
7
|
+
class SflowMacAddress < BinData::Primitive
|
8
8
|
array :bytes, :type => :uint8, :initial_length => 6
|
9
9
|
|
10
10
|
def set(val)
|
@@ -18,7 +18,7 @@ class MacAddress < BinData::Primitive
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# noinspection RubyResolve,RubyResolve,RubyResolve
|
21
|
-
class
|
21
|
+
class SflowIP4Addr < BinData::Primitive
|
22
22
|
endian :big
|
23
23
|
uint32 :storage
|
24
24
|
|
@@ -36,7 +36,7 @@ class IP4Addr < BinData::Primitive
|
|
36
36
|
end
|
37
37
|
|
38
38
|
# noinspection RubyResolve
|
39
|
-
class
|
39
|
+
class SflowIP6Addr < BinData::Primitive
|
40
40
|
endian :big
|
41
41
|
uint128 :storage
|
42
42
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-sflow'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.7.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "The sflow codec is for decoding SFlow v5 flows."
|
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/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-sflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Fraison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|