添加 IPAddress结构

This commit is contained in:
huangsimin 2022-07-04 13:42:09 +08:00
parent 4bccad3eec
commit e7efff5fd2
9 changed files with 32 additions and 10 deletions

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";

View File

@ -5,7 +5,6 @@ import "google/protobuf/any.proto";
option java_multiple_files = false; //
option java_package = "com.yuandian.dataflow.proto";
option go_package = "../grpc-gen;grpcgen";
package dataflow;
@ -22,6 +21,13 @@ message Request {
repeated google.protobuf.Any param = 3; // . 使
}
message IPAddress {
oneof IP {
bytes v4 = 1;
bytes v6 = 2;
}
}
service CollectPacketsServer {
rpc GetPackets (Request) returns (stream Response);
}

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
@ -15,9 +17,9 @@ message BussFlowExternal {
uint32 msg_len = 5;
uint64 src_mac = 6;
uint64 dst_mac = 7;
uint32 request_ip = 8;
IPAddress request_ip = 8;
uint32 request_port = 9;
uint32 response_ip = 10;
IPAddress response_ip = 10;
uint32 response_port = 11;
uint32 probeif = 12;
uint32 protocol = 13;

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto" ;
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
@ -29,9 +31,9 @@ message BussFlowMidd {
uint32 recog_status = 19;
uint32 probe_if = 20; //
string channel = 21; //
uint32 request_ip = 22; //
IPAddress request_ip = 22; //
uint32 request_port = 23; //
uint32 response_ip = 24; //
IPAddress response_ip = 24; //
uint32 response_port = 25; //
uint32 start_time_tv_sec = 26; //
uint32 start_time_tv_usec = 27; //

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
@ -33,9 +35,9 @@ message BussFlowWeb {
uint32 probe_if = 23; //
string channel = 24; //
string sessionid = 25; //id
uint32 request_ip = 26; //ip地址
IPAddress request_ip = 26; //ip地址
uint32 request_port = 27; //
uint32 response_ip = 28; //ip地址
IPAddress response_ip = 28; //ip地址
uint32 response_port = 29; //
uint32 start_time_tv_sec = 30; //
uint32 start_time_tv_usec = 31; //

View File

@ -1,5 +1,7 @@
syntax = "proto3";
import "Base.proto";
option java_multiple_files = false;
option java_package = "com.yuandian.dataflow.proto.msgtype";
option go_package = "../grpc-gen;grpcgen";
@ -9,8 +11,8 @@ package dataflow;
message QoeFlow {
int32 table_id = 1; //18
uint32 src_ip = 2;
uint32 dst_ip = 3;
IPAddress src_ip = 2;
IPAddress dst_ip = 3;
uint32 s_tv_sec = 4;
uint32 s_tv_usec = 5;
uint32 l_tv_sec = 6;