X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tunprotocol.h;h=79e528f379904f9b642440fb5328285f79325b7a;hb=3bcabb4fd4764b0804b8b44cb967edf7369cc714;hp=d9f40fa4e661c07e43f34b40ea838ec8e6ed70e1;hpb=4c15e1ffd081f5e2f7840a6dea58b131c4358533;p=greproxy diff --git a/tunprotocol.h b/tunprotocol.h index d9f40fa..79e528f 100644 --- a/tunprotocol.h +++ b/tunprotocol.h @@ -13,9 +13,14 @@ public: virtual int fd() const; virtual void read_packet(Sender* sender); + int get_received_packets() const { return received_packets; } + int get_sent_packets() const { return sent_packets; } + private: int tunfd; int seq; + + int received_packets = 0, sent_packets = 0; }; #endif // !defined(_TUNPROTOCOL_H)