diff options
author | Shane Kerr <shane@isc.org> | 2007-05-23 10:35:11 +0000 |
---|---|---|
committer | Shane Kerr <shane@isc.org> | 2007-05-23 10:35:11 +0000 |
commit | 76c944da0457bc1bc8428c642c9697aae1a5be15 (patch) | |
tree | 6f6700495791ba8cec6374162abc73b5baf5294b /common/icmp.c | |
parent | bb4ceaa2078dbaf99dda92cc55de79f3f90d3750 (diff) | |
download | isc-dhcp-76c944da0457bc1bc8428c642c9697aae1a5be15.tar.gz |
Fix pointer size in 64-bit land.
See RT ticket #16902 for more.
Diffstat (limited to 'common/icmp.c')
-rw-r--r-- | common/icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/icmp.c b/common/icmp.c index a5f0711d..79074542 100644 --- a/common/icmp.c +++ b/common/icmp.c @@ -35,7 +35,7 @@ #ifndef lint static char copyright[] = -"$Id: icmp.c,v 1.33 2005/03/17 20:14:58 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n"; +"$Id: icmp.c,v 1.34 2007/05/23 10:35:10 shane Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -167,7 +167,7 @@ int icmp_echorequest (addr) icmp.icmp_code = 0; icmp.icmp_cksum = 0; icmp.icmp_seq = 0; -#ifdef PTRSIZE_64BIT +#if SIZEOF_STRUCT_IADDR_P == 8 icmp.icmp_id = (((u_int32_t)(u_int64_t)addr) ^ (u_int32_t)(((u_int64_t)addr) >> 32)); #else |