Home
last modified time | relevance | path

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

/external/ltp/testcases/network/sockets/
DltpClient.c567 struct packet rawTracePacket; in ltp_traceroute() local
598 memset(&rawTracePacket, 0, sizeof(rawTracePacket)); in ltp_traceroute()
600 rawTracePacket.hdr.type = ICMP_ECHO; in ltp_traceroute()
601 rawTracePacket.hdr.un.echo.id = pid; in ltp_traceroute()
603 for (i = 0; i < sizeof(rawTracePacket.msg) - 1; i++) { in ltp_traceroute()
604 rawTracePacket.msg[i] = i + '0'; in ltp_traceroute()
607 rawTracePacket.msg[i] = 0; in ltp_traceroute()
608 rawTracePacket.hdr.un.echo.sequence = count++; in ltp_traceroute()
609 rawTracePacket.hdr.checksum = in ltp_traceroute()
610 checksum(&rawTracePacket, sizeof(rawTracePacket)); in ltp_traceroute()
[all …]