summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2010-04-01 18:48:36 +0200
committerThomas Habets <thomas@habets.pp.se>2010-04-01 18:48:36 +0200
commitdf36995363d6b92d635d353a55ba4b51ce004b5a (patch)
tree174f120c4d0a0942b37328e09e25c02dffc99412 /src
parentd4810ddc781235a51d2ef08315d69bca236ef1cf (diff)
parentbbcfde4425c9d9b0f3fbfc9c4e7fa0a5a0225c97 (diff)
downloadarping-df36995363d6b92d635d353a55ba4b51ce004b5a.tar.gz
Merge fixarping-2.09
Diffstat (limited to 'src')
-rw-r--r--src/arping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arping.c b/src/arping.c
index 2fff271..7b5e43e 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -111,7 +111,7 @@ static libnet_t *libnet = 0;
static struct timeval lastpacketsent;
-uint32_t srcip,dstip;
+uint32_t srcip, dstip;
static int beep = 0;
static int reverse_beep = 0;
@@ -125,7 +125,7 @@ static unsigned int numrecvd = 0;
static unsigned int numdots = 0;
static int addr_must_be_same = 0;
/* RAWRAW is RAW|RRAW */
-static enum { NORMAL,QUIET,RAW,RRAW,RAWRAW,DOT } display = NORMAL;
+static enum { NORMAL, QUIET, RAW, RRAW, RAWRAW, DOT } display = NORMAL;
static char *target = "huh? bug in arping?";
static uint8_t ethnull[ETH_ALEN];
static uint8_t ethxmas[ETH_ALEN];
@@ -133,6 +133,7 @@ static char srcmac[ETH_ALEN];
static char dstmac[ETH_ALEN];
static char lastreplymac[ETH_ALEN];
+/* doesn't need to be volatile */
volatile int time_to_die = 0;
/**