>such a struct is passed to a function, and I want to do something with the
>address in it, the __ss_family field is important to determine what kind
>of address it contains. But I feel very unconfortable using struct members
>with double underscores at the beginning of the name; those are supposed
>to be glibc private, right?

Your function should be declared to accept `struct sockaddr *'; you can just 
refer to sa->sa_family etc.  The `struct sockaddr_storage' type is only 
intended to be used to reserve memory.

p.


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to