diff options
author | NatasFX <nataschmitt02@gmail.com> | 2021-11-02 12:24:48 -0300 |
---|---|---|
committer | Thomas Habets <thomas@habets.se> | 2021-11-02 15:37:44 +0000 |
commit | df76e51351205d9e3593e0acd9fa260b4d536e36 (patch) | |
tree | 5573fdca96735b03c367638e7a9332a4d617bd85 | |
parent | 239f9f39cae315cbabaddca3fb9921bb528adc28 (diff) | |
download | arping-df76e51351205d9e3593e0acd9fa260b4d536e36.tar.gz |
-P (reply mode) will set ARP Target MAC Address by -t (target MAC) option
-rw-r--r-- | src/arping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c index 2427c4f..fd43523 100644 --- a/src/arping.c +++ b/src/arping.c @@ -1125,7 +1125,7 @@ pingip_send() send_reply ? ARPOP_REPLY : ARPOP_REQUEST, srcmac, (uint8_t*)&srcip, - unsolicited ? (uint8_t*)ethxmas : (uint8_t*)ethnull, + unsolicited ? (uint8_t*)ethxmas : (send_reply ? dstmac : (uint8_t*)ethnull) (uint8_t*)&dstip, (uint8_t*)padding, sizeof padding, |