44 lines
1.2 KiB
Protocol Buffer
44 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "Base.proto" ;
|
|
|
|
option java_multiple_files = false;
|
|
option java_package = "com.yuandian.dataflow.proto.msgtype";
|
|
option go_package = "../grpc-gen;grpcgen";
|
|
|
|
|
|
package dataflow;
|
|
|
|
message BussFlowExternal {
|
|
int32 table_id = 1; //编号25
|
|
uint32 msg_type = 2;
|
|
uint32 msg_version = 3;
|
|
uint32 msg_seq = 4;
|
|
uint32 msg_len = 5;
|
|
uint64 src_mac = 6;
|
|
uint64 dst_mac = 7;
|
|
IPAddress request_ip = 8;
|
|
uint32 request_port = 9;
|
|
IPAddress response_ip = 10;
|
|
uint32 response_port = 11;
|
|
uint32 probeif = 12;
|
|
uint32 protocol = 13;
|
|
uint32 start_time_tv_sec = 14;
|
|
uint32 start_time_tv_usec = 15;
|
|
uint32 end_time_tv_sec = 16;
|
|
uint32 end_time_tv_usec = 17;
|
|
uint32 req_len = 18;
|
|
uint32 res_len = 19;
|
|
uint32 busi_msg_len = 20; //bussiness resouce data length
|
|
uint32 key_msg_len = 21; // sub bussiness resouce data length
|
|
uint32 detail_msg_len = 22; //parents bussiness data length
|
|
uint32 remain_len = 23; //reserve data length
|
|
bytes busi_code = 24;
|
|
bytes sessionid = 25;
|
|
bytes req_data = 26;
|
|
bytes res_data = 27;
|
|
bytes busi_msg = 28;
|
|
bytes busi_key_msg = 29;
|
|
bytes busi_detail_msg = 30;
|
|
bytes remain_data = 31;
|
|
} |