diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-02-20 08:15:13 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-02-20 08:49:56 +0100 |
commit | cc4b333f5a6964120f2e40c33f67d0be7dd409fc (patch) | |
tree | d91399337554d3877c1f912f44f2b0c5a45c671b /src/ipcpd/normal/CMakeLists.txt | |
parent | e72fcd924b25b2b3b8a45c85d9c3d09388885249 (diff) | |
download | ouroboros-cc4b333f5a6964120f2e40c33f67d0be7dd409fc.tar.gz ouroboros-cc4b333f5a6964120f2e40c33f67d0be7dd409fc.zip |
ipcpd: Export flow statistics to RIB
This adds flow statistics for the data transfer (DT) component to the
RIB. The DT component will keep track of the traffic on each
flow. This feature can be enabled or disabled by setting the
IPCP_FLOW_STATS variable in the build system.
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/normal/CMakeLists.txt')
-rw-r--r-- | src/ipcpd/normal/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ipcpd/normal/CMakeLists.txt b/src/ipcpd/normal/CMakeLists.txt index 0b444852..e7e230d2 100644 --- a/src/ipcpd/normal/CMakeLists.txt +++ b/src/ipcpd/normal/CMakeLists.txt @@ -21,6 +21,16 @@ protobuf_generate_c(KAD_PROTO_SRCS KAD_PROTO_HDRS kademlia.proto) math(EXPR PFT_EXPR "1 << 12") set(PFT_SIZE ${PFT_EXPR} CACHE STRING "Size of the PDU forwarding table") +if (HAVE_FUSE) + set(IPCP_FLOW_STATS FALSE CACHE BOOL + "Enable flow statistics tracking in IPCP") + if (IPCP_FLOW_STATS) + message(STATUS "IPCP flow statistics enabled") + else () + message(STATUS "IPCP flow statistics disabled") + endif () +endif () + set(SOURCE_FILES # Add source files here |