(IN6_ADDR_V6_TO_V4): use `s6_addr' instead of the non-standard

`s6_addr32'.  From Yoshinobu Inoue <shin@kame.net> by way of the KAME
repository


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6860 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-23 21:05:37 +00:00
parent 4877e1a4db
commit 8a0a53244b

View File

@@ -203,7 +203,7 @@ ipv6_sockaddr2addr (const struct sockaddr *sa, krb5_address *a)
#ifdef IN6_EXTRACT_V4ADDR
#define IN6_ADDR_V6_TO_V4(x) (&IN6_EXTRACT_V4ADDR(x))
#else
#define IN6_ADDR_V6_TO_V4(x) ((struct in_addr *)&(x)->s6_addr32[3])
#define IN6_ADDR_V6_TO_V4(x) ((struct in_addr *)&(x)->s6_addr[12])
#endif
#endif
memcpy (buf, IN6_ADDR_V6_TO_V4(&sin6->sin6_addr), 4);