diff options
author | Thomas Habets <thomas@habets.pp.se> | 2003-04-07 18:02:51 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2003-04-07 18:02:51 +0000 |
commit | 65ffab31f574a9a770957fd26ef7e95da76eeb49 (patch) | |
tree | 1cb1ca138f1e86f01713cf8b8b0ceab2fecc029d | |
parent | c0c7db51b7899c0bc6799b9005f33e4570176f87 (diff) | |
download | arping-65ffab31f574a9a770957fd26ef7e95da76eeb49.tar.gz |
alignment error
-rw-r--r-- | arping.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |