EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: CA at LynxOS/x86
From: [email protected] (Jeff Hill)
To: "'Tatiana V. Salikova'" <[email protected]>, "[email protected]" <[email protected]>
Date: Fri, 18 Sep 1998 11:34:38 -0600
Tatiana,

> I compile  R3.13.0.beta12 at LynxOS/x86 platform, LynxOS is real time 
> UNIX ( www.lynx.com).
> 

I believe that NASA/Langley has some experience with EPICS on LynxOS, but I don't think
that they have folded their changes back into the master development source at  APS.

> 1.---------------------------
> "make install.host" was finished, I start "caRepeater &" which reports that   
> CAC: 13 if fnd
> CAC: if fnd sl0
> CAC: if was down
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CAC: if fnd sl2
> AC: if was down
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CAC: if fnd lo0
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CAC: could not obtain if flags
> CA Repeater: failed during initialization - no local IP address
> 
> "netstat -di" showed that
> Name  Mtu   Network     Address            Ipkts Ierrs   
> sl0*  296   <Link>                             0     0        
> .... 
> sl7*  296   <Link>                             0     0        
> lo0   1536  <Link>                            74     0       
> lo0   1536  loopback-ne localhost             74     0       
> smc0  1500  <Link>0.0.c0.d5.48.f9             77     0        
> smc0  1500  private.net FEL-lynxos1          77     0  
> 

It appears that the code is somehow unable to fetch the network
interface flags for the Ethernet card? since it is able to fetch the
flags for the first interface and only intermittently for subsequent 
interfaces I am guessing that the code is somehow indexing
incorrectly through the array of "ifreq" structures written by the
SIOCGIFCONF ioctl(). Nevertheless, the code is clearly not experiencing
this sort of problem on Solaris and several other operating systems.

> I the sequence of network devices is inverse at LynxOS. 
> lo0 is first device. 
> Could you explain me the way for solution  of this problems? 
> 

Actually on our Solaris system I see that the loop back interface is first also:

CAC: 2 net intf found
CAC: net intf lo0 found
CAC: net intf hme0 found

I recommend the following course of action at your site:

1) Print out the interface name when the interface flags cant
be fetched (in the "could not obtain if flags" printf() call), and
send the resulting output. Perhaps this will confirm that
the interface table on LynxOS cant be indexed as an array
(indexing the structure as an array is required on Solaris
and at least permitted on the other UNIX systems).

2) Please send a copy of the LynxOS definition of "struct ifconf" and also
"struct ifreq". On Solaris these data structures are defined in
"/usr/include/net/if.h". If possible send a copy of the entire file if it exists on
LynxOS. Please also send the man pages for use
of ioctl() codes SIOCGIFCONF, SIOCGIFFLAGS, and SIOCGIFADDR
on LynxOS. This information can be obtained on Solaris by 
typing "man if_tcp".

Thanks for your persistence in this matter.

Jeff

Navigate by Date:
Prev: Re: edif executable file (and e2db, dbst, db2capsym) Rozelle Wright
Next: Problem building medm2_3_4a on Linux Burkhard W. Kolb
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CA at LynxOS/x86 Tatiana V. Salikova
Next: edif executable file Jin Yu
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·