Coverage Report

Created: 2025-12-31 06:08

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/ntopng/include/L4Stats.h
Line
Count
Source
1
#ifndef _L4_STATS_H_
2
#define _L4_STATS_H_
3
4
class L4Stats {
5
 private:
6
  TrafficStats tcp_sent, tcp_rcvd;
7
  TrafficStats udp_sent, udp_rcvd;
8
  TrafficStats icmp_sent, icmp_rcvd;
9
  TrafficStats other_ip_sent, other_ip_rcvd;
10
11
 public:
12
  void luaStats(lua_State* vm);
13
  void incStats(time_t when, u_int8_t l4_proto, u_int64_t rcvd_packets,
14
                u_int64_t rcvd_bytes, u_int64_t sent_packets,
15
                u_int64_t sent_bytes);
16
17
0
  inline TrafficStats* getTCPSent() { return (&tcp_sent); }
18
0
  inline TrafficStats* getTCPRcvd() { return (&tcp_rcvd); }
19
0
  inline TrafficStats* getUDPSent() { return (&udp_sent); }
20
0
  inline TrafficStats* getUDPRcvd() { return (&udp_rcvd); }
21
0
  inline TrafficStats* getICMPSent() { return (&icmp_sent); }
22
0
  inline TrafficStats* getICMPRcvd() { return (&icmp_rcvd); }
23
0
  inline TrafficStats* getOtherIPSent() { return (&other_ip_sent); }
24
0
  inline TrafficStats* getOtherIPRcvd() { return (&other_ip_rcvd); }
25
};
26
27
#endif