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: Wed, 23 Aug 2006 11:36:19 -0500
On Aug 23, 2006, at 9:56 AM, Ralph Lange wrote:

There's an additional local buffer, word-aligned. After stepping through the array using ifreqNext, we're memcpy'ing from pifreq to our buffer, using the same algorithm as ifreqNext to determine the number of bytes to copy. That way we're creating an additional local copy of the ifreq entry with the only difference of the pointer to it always being word-aligned.

Well - we are identifying all network interfaces on the ARM board using the original ifreqNext and our word-aligned copies. All the names are there. So I guess it can't be really random memory. Is 70 really that ridiculous? I mean, it does sound so, but why are we finding all interfaces using that big step of 70 after the first ifreq entry?

Hmm...now I'm confused again.

I agree that since you're finding all the network interfaces with the existing ifreqNext code, it would indicate that the '70' (sa_len==54) is actually correct.  
So the problem is that 70 is not divisible by 4?
If that's the problem then perhaps the copy to a local buffer is actually the correct thing to do.
OR
Find where that '70' is coming from and see if you can make it into a '72'.....

Yes. No watchpoints, though. Ralf is trying to figure out looking at the code who is filling the buffer with what, why, when, and where. Not a trivial task.

Agreed.
I've got about 18 other things going on so I'm afraid that I can't be of more help at the moment.

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



Replies:
Re: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Ralph Lange
References:
RE: osiSockDiscoverBroadcastAddresses(): pointer not word-aligned? Jeff Hill
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? Ralph Lange
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? Ralph Lange
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 ·