Skip to content
Snippets Groups Projects
Commit a1ccfcf9 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Use a better name for UDP length.

parent b89feee7
No related branches found
No related tags found
No related merge requests found
......@@ -357,8 +357,8 @@ struct packet *new_icmp_packet(int address_family,
*seq = htonl(tcp_start_sequence);
}
if (protocol == IPPROTO_UDP) {
u16 *cov = packet_echoed_udp_len(packet);
*cov = htons(payload_bytes + sizeof(struct udp));
u16 *len = packet_echoed_udp_len(packet);
*len = htons(payload_bytes + sizeof(struct udp));
}
if (protocol == IPPROTO_UDPLITE) {
u16 *cov = packet_echoed_udplite_cov(packet);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment