EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned?
From: Eric Norum <[email protected]>
To: Ralph Lange <[email protected]>
Cc: Jeff Hill <[email protected]>, EPICS Core Talk <[email protected]>, Ralf Hartmann <[email protected]>
Date: Tue, 22 Aug 2006 11:38:34 -0500

On Aug 22, 2006, at 11:26 AM, Ralph Lange wrote:

Nah. Sorry. Darn.

calloc() is working - our assert had the big bug right in the _expression_ :-)

You were obviously much closer -

Doing the printout in ifreqNext() that you suggested, we find the size of the first structure coming up is 70 (dec), which is not divisible by 4, which leads to the pointer to the second structure being misaligned.

Who decides the size of the ifreq structure and doesn't pad correctly? Or should we do the padding up there?

A value of 70 from ifreq_size sounds awfully suspicious.   I don' t know of anything in the network stack that could possibly be that large.  RTEMS is IPV4 only so I would expect that ifreqNext would always drop back to returning the 'sizeof(*pifreq)' value.

Are you building RTEMS from source there?
Sounds like it's time for some well-placed printfs in the network code.

-- 
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793



References:
osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Ralph Lange
Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Eric Norum
Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Ralph Lange
Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Eric Norum
Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Ralph Lange

Navigate by Date:
Prev: Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Ralph Lange
Next: RE: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Jeff Hill
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Ralph Lange
Next: Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Andrew Johnson
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·