Permalink
Browse files

arpspoof: limit TTL of ARP probes

  • Loading branch information...
1 parent dd3da70 commit 50fd623f33a50364206e6bc435162c01ab3300e3 @wertarbyte committed Dec 11, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 arpspoof.c
View
@@ -129,6 +129,8 @@ arp_force(in_addr_t dst)
if ((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
return (0);
+ int ttl = 1;
+ setsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl));
memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = dst;

0 comments on commit 50fd623

Please sign in to comment.