Go to the documentation of this file.
9 #ifndef SQUID_SRC_TESTS_TESTICMP_H
10 #define SQUID_SRC_TESTS_TESTICMP_H
23 virtual int Open() {
return 0; };
30 virtual void Recv(
void) {};
41 class testIcmp :
public CPPUNIT_NS::TestFixture
virtual void Recv(void)
Handle ICMP responses.
int testChecksum(unsigned short *ptr, int size)
virtual int Open()
Start pinger helper and initiate control channel.
CPPUNIT_TEST_SUITE(testIcmp)
virtual void Close()
Shutdown pinger helper and control channel.
virtual void SendEcho(Ip::Address &, int, const char *, int)
Construct ECHO request.
CPPUNIT_TEST(testChecksum)
int CheckSum(unsigned short *ptr, int size)
Calculate a packet checksum.