Skip to content

Commit

Permalink
Merge pull request logrhythm#83 from Logrhythm/master
Browse files Browse the repository at this point in the history
update proto buffers from master
  • Loading branch information
Ben Aldrich committed Oct 21, 2013
2 parents e800728 + 2547da6 commit 87fd996
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 11 deletions.
14 changes: 10 additions & 4 deletions protofiles/BaseConfMsg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ message BaseConf {
optional string pcapBufferSize = 9;
optional string pcapInterface = 10;
optional string dpiHalfSessions = 11;
optional string packetSendQueueSize = 13;
optional string packetRecvQueueSize = 14;
optional string dpiMsgSendQueueSize = 15;
optional string dpiMsgRecvQueueSize = 16;
optional string packetSendQueueSize = 12;
optional string packetRecvQueueSize = 13;
optional string dpiMsgSendQueueSize = 14;
optional string dpiMsgRecvQueueSize = 15;
optional string syslogSendQueueSize = 16;
optional string syslogRecvQueueSize = 17;
optional string qosmosDebugModeEnabled = 18;
optional string qosmos64BytePool = 19;
optional string qosmos128BytePool = 20;
Expand All @@ -35,5 +37,9 @@ message BaseConf {
optional string captureMemoryLimit = 39;
optional string captureMaxPackets = 41;
optional string captureIndividualFileLimit = 42;
optional string dpiMaxFree = 43;
optional string dpiMinFree = 44;
optional string dpiFreeThreshold = 45;
optional string dpiRecycleThreshold = 46;
}

1 change: 1 addition & 0 deletions protofiles/CommandRequest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message CommandRequest {
NETWORK_CONFIG = 3;
NTP_CONFIG = 4;
SHUTDOWN = 5;
DRIVEINFO = 6;
}
required CommandType type = 1;
optional string stringArgOne = 2;
Expand Down
28 changes: 28 additions & 0 deletions protofiles/DriveInfo.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package protoMsg;

option java_package = "com.logrhythm.nm.message";
option java_outer_classname = "DriveInfoMsg";

message DrivesInfo {
message DriveInfo {

message Partition {
optional uint32 number = 1 [default = 0];
optional uint64 startInB = 2 [default = 0];
optional uint64 endInB = 3 [default = 0];
optional uint64 sizeInB = 4 [default = 0];
optional string type = 5;
optional string fileSystem = 6;
optional string flags = 7;
}
optional string model = 1;
optional string device = 2;
optional uint64 capacityInB = 3 [default = 0];
repeated Partition partitions = 4;
optional string table = 5;

}

repeated DriveInfo drives = 1;

}
14 changes: 7 additions & 7 deletions protofiles/SyslogConfMsg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ option java_outer_classname = "SyslogConfMsg";

message SyslogConf {
optional string syslogEnabled = 1;
optional string syslogLogAgentIP = 2;
optional string syslogLogAgentPort = 3;
optional string syslogMaxLineLength = 4;
optional string siemLogging = 5;
optional string debugSiemLogging = 6;
optional string scrubPasswords = 7;
optional string syslogTcpEnabled = 2;
optional string syslogLogAgentIP = 3;
optional string syslogLogAgentPort = 4;
optional string syslogMaxLineLength = 5;
optional string siemLogging = 6;
optional string debugSiemLogging = 7;
optional string scrubPasswords = 8;
optional string reportEverything = 99;
}

2 changes: 2 additions & 0 deletions scripts/buildProtoFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ cd "$cppSrcDir"
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/CommandReply.proto
"$protoc" -I="$protoFileDir" --cpp_out=libprocess "$protoFileDir"/ProcessRequest.proto
"$protoc" -I="$protoFileDir" --cpp_out=libprocess "$protoFileDir"/ProcessReply.proto
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/DriveInfo.proto
mv liblrdpi/DpiMsgLRproto.pb.cc liblrdpi/DpiMsgLRproto.pb.cpp
mv liblrdpi/Applications.pb.cc liblrdpi/Applications.pb.cpp
mv libstats/StatsMsg.pb.cc libstats/StatsMsg.pb.cpp
Expand All @@ -81,6 +82,7 @@ mv libcommand/CommandRequest.pb.cc libcommand/CommandRequest.pb.cpp
mv libcommand/CommandReply.pb.cc libcommand/CommandReply.pb.cpp
mv libprocess/ProcessRequest.pb.cc libprocess/ProcessRequest.pb.cpp
mv libprocess/ProcessReply.pb.cc libprocess/ProcessReply.pb.cpp
mv libcommand/DriveInfo.pb.cc libcommand/DriveInfo.pb.cpp
cd "$startDir"

mkdir -p "$phpSrcDir"
Expand Down

0 comments on commit 87fd996

Please sign in to comment.