point-to-point address should come from ifa_dstaddr

This commit is contained in:
sam 2007-03-09 23:28:40 +00:00
parent f5e3969340
commit 877325c8fa

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;