00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef ns_ping_h
00010 #define ns_ping_h
00011
00012 #include "agent.h"
00013 #include "tclcl.h"
00014 #include "packet.h"
00015 #include "address.h"
00016 #include "ip.h"
00017
00018
00019 struct hdr_ping {
00020 char ret;
00021 double send_time;
00022 };
00023
00024
00025 class PingAgent : public Agent {
00026 public:
00027 PingAgent();
00028 int command(int argc, const char*const* argv);
00029 void recv(Packet*, Handler*);
00030 protected:
00031 int off_ping_;
00032 };
00033
00034
00035 #endif