Home
last modified time | relevance | path

Searched refs:icmp_header (Results 1 – 2 of 2) sorted by relevance

/system/connectivity/shill/
Dicmp.cc79 struct icmphdr icmp_header; in TransmitEchoRequest() local
80 memset(&icmp_header, 0, sizeof(icmp_header)); in TransmitEchoRequest()
81 icmp_header.type = ICMP_ECHO; in TransmitEchoRequest()
82 icmp_header.code = kIcmpEchoCode; in TransmitEchoRequest()
83 icmp_header.un.echo.id = id; in TransmitEchoRequest()
84 icmp_header.un.echo.sequence = seq_num; in TransmitEchoRequest()
85 icmp_header.checksum = ComputeIcmpChecksum(icmp_header, sizeof(icmp_header)); in TransmitEchoRequest()
97 &icmp_header, in TransmitEchoRequest()
98 sizeof(icmp_header), in TransmitEchoRequest()
102 int expected_result = sizeof(icmp_header); in TransmitEchoRequest()
Dicmp_unittest.cc168 struct icmphdr icmp_header; in TEST_F() local
169 memset(&icmp_header, 0, sizeof(icmp_header)); in TEST_F()
170 icmp_header.type = ICMP_ECHO; in TEST_F()
171 icmp_header.code = Icmp::kIcmpEchoCode; in TEST_F()
172 icmp_header.un.echo.id = 1; in TEST_F()
173 icmp_header.un.echo.sequence = 1; in TEST_F()
174 icmp_header.checksum = ComputeIcmpChecksum(icmp_header, sizeof(icmp_header)); in TEST_F()
177 IsIcmpHeader(icmp_header), in TEST_F()
178 sizeof(icmp_header), in TEST_F()
184 .WillOnce(Return(sizeof(icmp_header) - 1)) in TEST_F()
[all …]