At 02:52 PM 3/5/01 -0800, s tsao wrote:
>Hello,
>
>Does anyone know which header file defines
>sockaddr_storage?
I find it in /usr/include/bits/socket.h
>I'm trying to compile a C file which contains the
>line:
> struct sockaddr_storage;
> if (ss.ss_family == AF_INET6);
>
>However, upon compiling, I get errors:
> 'structure has no memeber named 'ss_family'
That matches what I see. From the file:
struct sockaddr_storage
{
__SOCKADDR_COMMON (__ss_); /* Address family, etc. */
__ss_aligntype __ss_align; /* Force desired alignment. */
char __ss_padding[_SS_PADSIZE];
};
The __SOCKADDR_COMMON is in turn defined in ./bits/sockaddr.h, and it
contains no member ss_family, though it does contain sa_family_t .
--
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs