[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AF_INET problem



Hi Karl and Myron,

Not many people around here know about AF_INET.  I did a bit of
research.  It is used in socket creation, and specifies the Internet
domain.

In theory it would be set it <sys/socket.h>.  However, on my RHL 7.0, it
is set in the following two files:

(anne) imogene:/local/ldm/src 33 % find /usr/include -name socket.h |
xargs grep 'AF_INET'
/usr/include/linux/socket.h:#define AF_INET     2       /* Internet IP Protocol 
*/
/usr/include/linux/socket.h:#define AF_INET6    10      /* IP version 6         
        */
/usr/include/linux/socket.h:#define PF_INET             AF_INET
/usr/include/linux/socket.h:#define PF_INET6    AF_INET6
/usr/include/bits/socket.h:#define      AF_INET         PF_INET
/usr/include/bits/socket.h:#define      AF_INET6        PF_INET6

These values would have been hard wired into the code when it was built.

Karl, did you do a binary installation or a source installation?

Anne
-- 
***************************************************
Anne Wilson                     UCAR Unidata Program            
address@hidden                 P.O. Box 3000
                                  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************

myron mccallum wrote:
> 
> Karl/Anne:
> It's an IPv4 vs IPv6  related issue, if that helps:
>   ... address type which is `AF_INET' for IPv4 or `AF_INET6'     for IPv6.
> 
> -myron
> 
> ----- Original Message -----
> From: "Karl Feaux" <address@hidden>
> To: "Anne Wilson" <address@hidden>
> Cc: "myron mccallum" <address@hidden>
> Sent: Wednesday, March 21, 2001 1:43 PM
> Subject: Re: AF_INET problem
> 
> > Anne,
> >
> > Everything seems to be working and this error is not something that has just
> > started.  I just didn't notice it as an ldm error before.
> > It happens when the process is stopped, presumably using the ldmadmin stop.
> > We are using RHL 6.2.   I dont know about the libraries, and I currently can
> > not access the machine (I'm cloning the HD for an emergecy shipment to
> > Washington).
> >
> > Thanks for looking into this.
> >
> > -karl
> >
> > ----- Original Message -----
> > From: "Anne Wilson" <address@hidden>
> > To: "Karl Feaux" <address@hidden>
> > Cc: <address@hidden>
> > Sent: Wednesday, March 21, 2001 1:10 PM
> > Subject: AF_INET problem
> >
> >
> > > Hi Karl,
> > >
> > > This is a new one.  I'm going to do some research on it.  Please provide
> > > me with some more info.  Are you running Red Hat Linux 6.2?  Version
> > > 5.1.2, right?  Also, what libraries are you using?   (Go to ~ldm/bin and
> > > do 'ldd ./rpc.ldmd'.)
> > >
> > > And, Jeff tells me that you saw this message as you did 'ldmadmin stop',
> > > is that right?   What were the circumstances, e.g., had anything changed
> > > before this particular invocation?  Had the LDM been running for a
> > > while?   Were there any other unusual symptoms, or was your LDM running
> > > ok?  Are you able to run the LDM now?
> > >
> > >
> > > Anne
> > >
> > > > ---------- Forwarded message ----------
> > > > Date: Wed, 21 Mar 2001 10:49:02 -0700
> > > > From: Karl Feaux <address@hidden>
> > > > To: address@hidden
> > > >
> > > > Rpc.ldmd:
> > > >
> > > > Forgot to set AF_INET
> > > >  Fix it!
> > >
> > > --
> > > ***************************************************
> > > Anne Wilson UCAR Unidata Program
> > > address@hidden        P.O. Box 3000
> > >                 Boulder, CO  80307
> > > ----------------------------------------------------
> > > Unidata WWW server       http://www.unidata.ucar.edu/
> > > ****************************************************
> > >
> >