point-to-point address should come from ifa_dstaddr

This commit is contained in:
Sam Leffler 2007-03-09 23:28:40 +00:00
parent e7573e7ad7
commit 7c25c5c447
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167388

View File

@ -66,7 +66,7 @@ ipx_status(int s __unused, const struct ifaddrs *ifa)
printf("\tipx %s ", ipx_ntoa(sipx->sipx_addr));
if (ifa->ifa_flags & IFF_POINTOPOINT) {
sipx = (struct sockaddr_ipx *)ifa->ifa_broadaddr;
sipx = (struct sockaddr_ipx *)ifa->ifa_dstaddr;
if (sipx == NULL) {
memset(&null_sipx, 0, sizeof(null_sipx));
sipx = &null_sipx;