34 lines
1.0 KiB
Protocol Buffer
34 lines
1.0 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 BacktrackingFlow {
|
||
|
||
int32 table_id = 1; //编号20
|
||
int64 mac_src = 2; //源MAC
|
||
int64 mac_dst = 3; //目标MAC
|
||
IPAddress ip_src = 4; //源IP
|
||
IPAddress ip_dst = 5; //目标IP
|
||
int32 port_src = 6; //源端口,如果没有,为-1
|
||
int32 port_dst = 7; //目标端口,如果没有,为-1
|
||
int32 l3_proto = 8; //第三层协议ID,如果没有,为-1
|
||
int32 l4_proto = 9; //第四层协议ID,如果没有,为-1
|
||
int32 tos = 10; //Tos,一个字节,如果没有,为-1
|
||
int32 vlan_id = 11; //vlan ID,如果没有,为-1
|
||
uint64 bytes = 12; //字节总数
|
||
uint64 packets = 13; //数据包总数
|
||
uint64 tcp_sp = 14; //TCP同步包数
|
||
uint64 tcp_scpn = 15; //TCP同步确认包数
|
||
uint64 tcp_srp = 16; //TCP同步重置包数
|
||
uint32 app_id = 17;
|
||
uint32 app_group_id = 18;
|
||
int32 mpls_label = 19;
|
||
}
|