>Is the application IPv6 aware? Is it possibly copying IPv6 hostent values
>(longer) to IPv4 sockaddr structures (shorter)?
>
>There is supposed to be a way for IPv4 clients to use IPv6 but I have not
>reviewed the manuals for awhile.
>
>...chris.
The application runs only IPv6 sockets, but on an IPv4 network, using
IPv4-mapped IPv6 addresses. Easy to make an IPv4-mapped IPv6 address; he last 4
bytes of the IPv6 address are the IPv4 address; it's preceded by two bytes of
X'FFFF', and the other 10 bytes are nulls. ( ::FFFF.nnn.nnn.nnn.nnn ). So, the
short answer is, I use IPv6 throughout the application, so I define the
sockaddr_in structures in the long format (sockaddr_in6 - 28 bytes). If it is
running on a system where IPv6 isn't enabled, I just use the beginning of that
structure as an IPv4 sockaddr_in (16 bytes). What I'm getting is, a connection
arrives and the full sockaddr_in6 structure that ACCEPT returns is not where I
told it to go; it's overlaying an existing one somewhere else. It's also offset
8 bytes to the right, which kills the 8 bytes after the sockaddr_in6, and isn't
good for the IP address itself, either. Why it goes somewhere in
hither-and-yonspace is, so far, beyond me.
R;
Confidentiality Notice: This electronic message transmission, including any
attachment(s), may contain confidential, proprietary, or privileged information
from Chemical Abstracts Service ("CAS"), a division of the American Chemical
Society ("ACS"). If you have received this transmission in error, be advised
that any disclosure, copying, distribution, or use of the contents of this
information is strictly prohibited. Please destroy all copies of the message
and contact the sender immediately by either replying to this message or
calling 614-447-3600.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN