mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-06-08 16:46:06 +02:00
Added logic to build Flow Data Protobuf binding
This commit is contained in:
parent
aa19e6b015
commit
d6f5c9b381
|
@ -14,3 +14,5 @@ src/fastnetmon.pb.cc
|
|||
src/fastnetmon.pb.h
|
||||
src/simple_packet_capnp/simple_packet.capnp.c++
|
||||
src/simple_packet_capnp/simple_packet.capnp.h
|
||||
src/flow_data.pb.cc
|
||||
src/flow_data.pb.h
|
||||
|
|
|
@ -523,6 +523,12 @@ if (ENABLE_GOBGP_SUPPORT)
|
|||
|
||||
message(STATUS "Protoc return code for gobgp.proto and attribute.proto Protobuf: ${PROTOC_RETURN_CODE} std err: ${PROTOC_STDERR}")
|
||||
|
||||
message(STATUS "Building Protobuf bindings for C++ for Flow Data")
|
||||
|
||||
execute_process(COMMAND ${PROTOC_BINARY} -I ${PROJECT_SOURCE_DIR} --cpp_out=${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/flow_data.proto ERROR_VARIABLE PROTOC_STDERR RESULT_VARIABLE PROTOC_RETURN_CODE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
message(STATUS "Protoc return code for FlowData Protobuf: ${PROTOC_RETURN_CODE} std err: ${PROTOC_STDERR}")
|
||||
|
||||
# Build gRPC and protocol bufffers libraries and link they to gobgp_action
|
||||
add_library(gobgp_api_client_pb_cc STATIC actions/gobgp.pb.cc)
|
||||
add_library(gobgp_api_client_grpc_pb_cc STATIC actions/gobgp.grpc.pb.cc)
|
||||
|
|
|
@ -72,12 +72,12 @@ message TrafficData {
|
|||
// TTL for IPv4 or Hop Limit for IPv6
|
||||
uint32 ttl = 18;
|
||||
|
||||
// IP address of device which sent traffic data
|
||||
uint32 agent_address = 19;
|
||||
// IPv4 or IPv6 address of device which sent traffic data
|
||||
bytes agent_address = 19;
|
||||
|
||||
// TCP flags encoded in bit set
|
||||
uint32 tcp_flags = 20;
|
||||
|
||||
bool ip_fragmented_flag = 21;
|
||||
bool ip_dont_fragment_flag = 22;
|
||||
bool ip_fragmented = 21;
|
||||
bool ip_dont_fragment = 22;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue