diff options
Diffstat (limited to 'src/dev/net/ethertap.hh')
-rw-r--r-- | src/dev/net/ethertap.hh | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/dev/net/ethertap.hh b/src/dev/net/ethertap.hh index 96cc4710c..9b4e175e1 100644 --- a/src/dev/net/ethertap.hh +++ b/src/dev/net/ethertap.hh @@ -109,21 +109,7 @@ class EtherTapBase : public EtherObject protected: std::queue<EthPacketPtr> packetBuffer; void retransmit(); - - class TxEvent : public Event - { - protected: - EtherTapBase *tap; - - public: - TxEvent(EtherTapBase *_tap) : tap(_tap) {} - void process() { tap->retransmit(); } - virtual const char *description() const - { return "EtherTapBase retransmit"; } - }; - - friend class TxEvent; - TxEvent txEvent; + EventFunctionWrapper txEvent; }; class EtherTapInt : public EtherInt |