Return-Path: X-Original-To: rt@krbdev.mit.edu Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by krbdev.mit.edu (Postfix) with ESMTP id B2A04CD08F for ; Tue, 30 Dec 2008 19:32:30 +0000 (UTC) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id mBUJWTQc011043 for ; Tue, 30 Dec 2008 14:32:29 -0500 (EST) Received: from [192.168.1.47] (pool-71-162-89-30.bstnma.east.verizon.net [71.162.89.30]) (authenticated bits=0) (User authenticated as epeisach@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id mBUJWR3q021989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 30 Dec 2008 14:32:28 -0500 (EST) Message-ID: <495A7734.8050401@mit.edu> Date: Tue, 30 Dec 2008 14:32:04 -0500 From: Ezra Peisach User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: rt@krbdev.mit.edu Subject: Re: [krbdev.mit.edu #6308] Alignment problem in resolver test References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-BY: MIMEDefang 2.42 X-Spam-Flag: NO X-Spam-Score: 0.00 RT-Send-Cc: X-RT-Original-Encoding: iso-8859-1 Content-Length: 397 Ken, With regards to alignment - I believe that is why the "fix" to use a union would force an alignment. I will use an in_addr to ensure alignment. As I indicated in my initial analysis - there is one other place gethostbyaddr is used w/o a struct in_addr - but the memory is malloced. I am correct that malloc will return an alignment that is compatible w/ any structure - right? Ezra