diff options
author | Thomas Habets <thomas@habets.pp.se> | 2004-08-05 02:36:34 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2004-08-05 02:36:34 +0000 |
commit | 754e7d16e6a77810a234d382b56272add58c0b8a (patch) | |
tree | 19888d26f6c914a706318f81c0507ca2b8db274f | |
parent | 6460b5b6297f9df8520b7824d181bc1c6d280b25 (diff) | |
download | arping-754e7d16e6a77810a234d382b56272add58c0b8a.tar.gz |
cisco mac addr fix
-rw-r--r-- | arping-2/arping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arping-2/arping.c b/arping-2/arping.c index 29ff08e..1db9a0c 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 1100 2004-05-23 15:08:42Z marvin $ + * $Id: arping.c 1116 2004-08-05 02:36:34Z marvin $ */ /* * Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se> @@ -232,7 +232,7 @@ static void usage(int ret) static int is_mac_addr(const char *p) { unsigned int n[6]; - if(6==sscanf(p, "%2x%x.%2x%x.%2x%x", + if(6==sscanf(p, "%2x%2x.%2x%2x.%2x%2x", &n[0],&n[1],&n[2],&n[3],&n[4],&n[5])){ return 1; } |