blob: c1242e1fbdce46a7853b7f84448cdc2cb0924fec [file] [log] [blame]
Junxiao Shi33152f12014-07-16 19:54:32 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Junxiao Shi06a1eab2017-09-04 13:13:02 +00002/*
Davide Pesavento95afc6d2023-08-02 20:50:25 -04003 * Copyright (c) 2014-2023, Regents of the University of California,
Junxiao Shi06a1eab2017-09-04 13:13:02 +00004 * Arizona Board of Regents,
5 * Colorado State University,
6 * University Pierre & Marie Curie, Sorbonne University,
7 * Washington University in St. Louis,
8 * Beijing Institute of Technology,
9 * The University of Memphis.
Junxiao Shi33152f12014-07-16 19:54:32 -070010 *
11 * This file is part of NFD (Named Data Networking Forwarding Daemon).
12 * See AUTHORS.md for complete list of NFD authors and contributors.
13 *
14 * NFD is free software: you can redistribute it and/or modify it under the terms
15 * of the GNU General Public License as published by the Free Software Foundation,
16 * either version 3 of the License, or (at your option) any later version.
17 *
18 * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
19 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20 * PURPOSE. See the GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License along with
23 * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26#ifndef NFD_DAEMON_FW_FORWARDER_COUNTERS_HPP
27#define NFD_DAEMON_FW_FORWARDER_COUNTERS_HPP
28
Davide Pesavento2cae8ca2019-04-18 20:48:05 -040029#include "common/counter.hpp"
Junxiao Shi33152f12014-07-16 19:54:32 -070030
31namespace nfd {
32
Davide Pesavento95afc6d2023-08-02 20:50:25 -040033/**
34 * \brief Counters provided by Forwarder.
Junxiao Shi33152f12014-07-16 19:54:32 -070035 */
Junxiao Shida93f1f2015-11-11 06:13:16 -070036class ForwarderCounters
Junxiao Shi33152f12014-07-16 19:54:32 -070037{
Junxiao Shi632a6202014-07-20 01:14:30 -070038public:
Junxiao Shida93f1f2015-11-11 06:13:16 -070039 PacketCounter nInInterests;
40 PacketCounter nOutInterests;
41 PacketCounter nInData;
42 PacketCounter nOutData;
43 PacketCounter nInNacks;
44 PacketCounter nOutNacks;
Alex Lane6bead9b2020-05-12 19:08:20 -050045
Ju Pan6eb1ac92018-10-26 16:26:15 +000046 PacketCounter nSatisfiedInterests;
47 PacketCounter nUnsatisfiedInterests;
Alex Lane6bead9b2020-05-12 19:08:20 -050048 PacketCounter nUnsolicitedData;
Junxiao Shi06a1eab2017-09-04 13:13:02 +000049
50 PacketCounter nCsHits;
51 PacketCounter nCsMisses;
Junxiao Shi33152f12014-07-16 19:54:32 -070052};
53
Junxiao Shi33152f12014-07-16 19:54:32 -070054} // namespace nfd
55
56#endif // NFD_DAEMON_FW_FORWARDER_COUNTERS_HPP