]> git.sesse.net Git - greproxy/blobdiff - tunprotocol.h
Mark copyright.
[greproxy] / tunprotocol.h
index 7f160668f7973985988f515cd98d925f38263896..79e528f379904f9b642440fb5328285f79325b7a 100644 (file)
@@ -13,8 +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)