summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2003-04-07 18:02:51 +0000
committerThomas Habets <thomas@habets.pp.se>2003-04-07 18:02:51 +0000
commit65ffab31f574a9a770957fd26ef7e95da76eeb49 (patch)
tree1cb1ca138f1e86f01713cf8b8b0ceab2fecc029d
parentc0c7db51b7899c0bc6799b9005f33e4570176f87 (diff)
downloadarping-65ffab31f574a9a770957fd26ef7e95da76eeb49.tar.gz
alignment error
-rw-r--r--arping.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arping.c b/arping.c
index 1d56f70..ce92f51 100644
--- a/arping.c
+++ b/arping.c
@@ -12,7 +12,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 859 2003-04-07 17:38:44Z marvin $
+ * $Id: arping.c 860 2003-04-07 18:02:51Z marvin $
*/
/*
* Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se>
@@ -291,8 +291,10 @@ static void handlepacket(const char *unused, struct pcap_pkthdr *h,
printf("%.2x ", *cp++);
}
if (rawoutput & 1) {
+ u_int32_t tmp;
+ memcpy(&tmp, &hip->saddr, 4);
printf("%s",
- libnet_host_lookup(hip->saddr,
+ libnet_host_lookup(tmp,
0));
}
if (!rawoutput) {