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: Thu, 24 Aug 2006 11:25:56 -0500
Great detective work!
I did a quick google check and it seems that SIOCGIFCONF is not a very well defined operation.   Your plan to copy to a properly aligned local buffer sounds good to me.


On Aug 24, 2006, at 11:07 AM, Ralph Lange wrote:

OK - here are our latest findings:

First - the Bottom line: The RTEMS network code does not work as expected. Calling socket_ioctl() with SIOCGIFCONF does return also AF_LINK structures, not just AF_INET interfaces, as the linux man page says.

.......

We are suggesting to keep the double buffer: memcpy()ing whatever is coming up into a local buffer which is word-aligned, and handing a pointer to that copy down in subsequent socket_ioctl() calls. This doesn't use much space and time and should be safe - no matter what is coming up in the ifreq array. osiSockDiscoverBroadcastAddresses() isn't called much anyway.

Jeff: should I commit that patch to the APS repository for 3.14 and the trunk? Or send it to you first?

The CA data garble issue was solved by applying the patch from Peter Denison. Do you want me to commit that, too?

Thanks again to both of you for your valuable help!!
Ralph & Ralf


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



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