proto/BacktrackingFlow.proto
2022-07-28 14:49:21 +08:00

34 lines
1.0 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}