Searched refs:rawPacket (Results 1 – 1 of 1) sorted by relevance
489 struct packet rawPacket; in ping_network() local520 (rawSocket, &rawPacket, sizeof(rawPacket), 0, in ping_network()525 memset(&rawPacket, 0, sizeof(rawPacket)); in ping_network()527 rawPacket.hdr.type = ICMP_ECHO; in ping_network()528 rawPacket.hdr.un.echo.id = pid; in ping_network()530 for (i = 0; i < sizeof(rawPacket.msg) - 1; i++) { in ping_network()531 rawPacket.msg[i] = i + '0'; in ping_network()534 rawPacket.msg[i] = 0; in ping_network()535 rawPacket.hdr.un.echo.sequence = count++; in ping_network()536 rawPacket.hdr.checksum = in ping_network()[all …]