[client] for spoofed SPA packets over ICMP, switche back to sending over echo reply
authorMichael Rash <mbr@cipherdyne.org>
Fri, 5 Oct 2012 01:05:22 +0000 (21:05 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Fri, 5 Oct 2012 01:05:22 +0000 (21:05 -0400)
client/spa_comm.c

index 97ddabf..1d914ac 100644 (file)
@@ -477,7 +477,7 @@ send_spa_packet_icmp(const char *spa_data, const int sd_len,
 
     /* Now the ICMP header values.
     */
-    icmph->type     = ICMP_ECHO; /* Make it an echo reply */
+    icmph->type     = ICMP_ECHOREPLY; /* Make it an echo reply */
     icmph->code     = 0;
     icmph->checksum = 0;