Searched refs:icmp_p (Results 1 – 1 of 1) sorted by relevance
355 struct icmp4_segment *icmp_p; /* ICMPv4 part of sending packet */ in create_clean_packet() local363 icmp_p = (struct icmp4_segment *)&(pkt.payload); in create_clean_packet()379 icmp_p->hdr.type = ICMP_ECHO; in create_clean_packet()380 icmp_p->hdr.code = 0; in create_clean_packet()381 icmp_p->hdr.checksum = 0; /* Calculate later */ in create_clean_packet()382 icmp_p->hdr.un.echo.id = htons(ICMP_ECHO_ID); in create_clean_packet()383 icmp_p->hdr.un.echo.sequence = htons(1); in create_clean_packet()386 fill_payload(icmp_p->data, fake_p->data_size); in create_clean_packet()391 icmp_p->hdr.checksum = calc_checksum((u_int16_t *) icmp_p, in create_clean_packet()