trisulrp 2.0.2 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/trisulrp/protocol.rb +4 -1
- data/lib/trisulrp/trp.pb.rb +3 -3
- data/lib/trisulrp/trp.proto +6 -5
- data/trisulrp.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3d5ec5c5c5a153c3ad182292e7d7e2b67b1598
|
4
|
+
data.tar.gz: 65e73a1228e3f94459b69518db2aac2095e06fb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68333ba5a7e17c805b1ed89fa63ee57739b8d7c5d657ad683cb129f4fd6ac1adcffae735a04eaf778d9e046daaed1ca3c6e70302662ad299b24ae3a244dc1588
|
7
|
+
data.tar.gz: 3c0d676a7929abf9386519827dab7cfba14a1d46577157c975238eae9faf93839480fb3ccf6589f0331d63a207193842286e46f9212aaaff469ac360bf15c221
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.4
|
data/lib/trisulrp/protocol.rb
CHANGED
@@ -114,7 +114,10 @@ module TrisulRP::Protocol
|
|
114
114
|
dataarray=conn.read(datalen)
|
115
115
|
resp =TRP::Message.new
|
116
116
|
resp.parse dataarray
|
117
|
-
|
117
|
+
if resp.trp_command == TRP::Message::Command::ERROR_RESPONSE
|
118
|
+
print "TRP ErrorResponse: #{resp.error_response.error_message}\n"
|
119
|
+
raise resp.error_response
|
120
|
+
end
|
118
121
|
yield unwrap_response(resp) if block_given?
|
119
122
|
return unwrap_response(resp)
|
120
123
|
end
|
data/lib/trisulrp/trp.pb.rb
CHANGED
@@ -433,21 +433,21 @@ module TRP
|
|
433
433
|
set_fully_qualified_name "TRP.FilteredDatagramRequest.BySession"
|
434
434
|
|
435
435
|
optional :string, :session_group, 1, :default => "{99A78737-4B41-4387-8F31-8077DB917336}"
|
436
|
-
|
436
|
+
repeated ::TRP::SessionID, :session_ids, 2
|
437
437
|
end
|
438
438
|
|
439
439
|
class ByAlert < ::ProtocolBuffers::Message
|
440
440
|
set_fully_qualified_name "TRP.FilteredDatagramRequest.ByAlert"
|
441
441
|
|
442
442
|
optional :string, :alert_group, 1, :default => "{9AFD8C08-07EB-47E0-BF05-28B4A7AE8DC9}"
|
443
|
-
|
443
|
+
repeated ::TRP::AlertID, :alert_ids, 2
|
444
444
|
end
|
445
445
|
|
446
446
|
class ByResource < ::ProtocolBuffers::Message
|
447
447
|
set_fully_qualified_name "TRP.FilteredDatagramRequest.ByResource"
|
448
448
|
|
449
449
|
required :string, :resource_group, 1
|
450
|
-
|
450
|
+
repeated ::TRP::ResourceID, :resource_ids, 2
|
451
451
|
end
|
452
452
|
|
453
453
|
optional :int64, :max_packets, 1, :default => 0
|
data/lib/trisulrp/trp.proto
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
// Trisul Remote Protocol (TRP) definition
|
2
2
|
// Based on Google Protocol Buffers
|
3
3
|
// (c) 2010-11, Unleash Networks (http://www.unleashnetworks.com)
|
4
|
-
// $Rev:
|
4
|
+
// $Rev: 6929 $
|
5
5
|
package TRP;
|
6
6
|
|
7
7
|
message Timestamp {
|
@@ -317,12 +317,12 @@ message FilteredDatagramRequest{
|
|
317
317
|
required TimeInterval time_interval=1;
|
318
318
|
required string filter_expression=2;
|
319
319
|
}
|
320
|
-
optional ByFilterExpr
|
320
|
+
optional ByFilterExpr filter_expression=4;
|
321
321
|
|
322
322
|
// by session
|
323
323
|
message BySession {
|
324
324
|
optional string session_group=1[default="{99A78737-4B41-4387-8F31-8077DB917336}"];
|
325
|
-
|
325
|
+
repeated SessionID session_ids=2;
|
326
326
|
}
|
327
327
|
optional BySession session=5;
|
328
328
|
|
@@ -330,18 +330,19 @@ message FilteredDatagramRequest{
|
|
330
330
|
// by alert
|
331
331
|
message ByAlert {
|
332
332
|
optional string alert_group=1[default="{9AFD8C08-07EB-47E0-BF05-28B4A7AE8DC9}"];
|
333
|
-
|
333
|
+
repeated AlertID alert_ids=2;
|
334
334
|
}
|
335
335
|
optional ByAlert alert=6;
|
336
336
|
|
337
337
|
// by resource
|
338
338
|
message ByResource {
|
339
339
|
required string resource_group=1;
|
340
|
-
|
340
|
+
repeated ResourceID resource_ids=2;
|
341
341
|
}
|
342
342
|
optional ByResource resource=7;
|
343
343
|
|
344
344
|
optional PcapDisposition disposition=8[default=DOWNLOAD];
|
345
|
+
|
345
346
|
}
|
346
347
|
|
347
348
|
/////////////////////////////////////
|
data/trisulrp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "trisulrp"
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["vivek"]
|
12
|
-
s.date = "2014-
|
12
|
+
s.date = "2014-06-14"
|
13
13
|
s.description = "This gem deals about the trisul remote protocol"
|
14
14
|
s.email = "vivek_rajagopal@yahoo.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trisulrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-protocol-buffers
|