diff options
author | Thomas Habets <thomas@habets.pp.se> | 2003-11-28 02:13:40 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2003-11-28 02:13:40 +0000 |
commit | 5f137469b5e7913a606968dd841044332d06a0d2 (patch) | |
tree | 03c18038bd18c713bed1c679a9b2a6620e0c27aa | |
parent | d2a9682ead71a70d4d34c224d66f9b3f78154b9e (diff) | |
download | arping-5f137469b5e7913a606968dd841044332d06a0d2.tar.gz |
fixed bug where -s wouldn't work
-rw-r--r-- | arping-2/arping.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arping-2/arping.c b/arping-2/arping.c index ae92da8..6b68309 100644 --- a/arping-2/arping.c +++ b/arping-2/arping.c @@ -12,7 +12,7 @@ * * Also finds out IP of specified MAC * - * $Id: arping.c 1052 2003-11-14 14:04:24Z marvin $ + * $Id: arping.c 1055 2003-11-28 02:13:40Z marvin $ */ /* * Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se> @@ -752,6 +752,7 @@ int main(int argc, char **argv) for (c = 0; c < 6; c++) { srcmac[c] = n[c] & 0xff; } + srcmac_given = 1; break; } case 'S': // set source IP, may be null for don't-know @@ -783,8 +784,8 @@ int main(int argc, char **argv) for (c = 0; c < 6; c++) { dstmac[c] = n[c] & 0xff; } - break; mode = PINGIP; + break; } case 'T': // set destination IP if (mode == PINGIP) { |