-extern struct sockaddr *in6_v4mapsin6_sockaddr(in_port_t port,
- struct in_addr *addr_p);
-extern int in6_setpeeraddr(struct socket *so, struct sockaddr **nam);
-extern int in6_setsockaddr(struct socket *so, struct sockaddr **nam);
+extern void in6_sockaddr_s(in_port_t, struct in6_addr *, struct sockaddr_in6 *);
+extern int in6_getpeeraddr(struct socket *, struct sockaddr **);
+extern int in6_getpeeraddr_s(struct socket *, struct sockaddr_storage *);
+extern int in6_getsockaddr(struct socket *, struct sockaddr **);
+extern int in6_getsockaddr_s(struct socket *, struct sockaddr_storage *);