View | Details | Raw Unified | Return to bug 230498 | Differences between
and this patch

Collapse All | Expand All

(-)sys/net/rtsock.c (-1 / +4 lines)
Lines 1556-1565 sysctl_dumpentry(struct radix_node *rn, Link Here
1556
	    rt_mask(rt), &ss);
1556
	    rt_mask(rt), &ss);
1557
	info.rti_info[RTAX_GENMASK] = 0;
1557
	info.rti_info[RTAX_GENMASK] = 0;
1558
	if (rt->rt_ifp) {
1558
	if (rt->rt_ifp) {
1559
		info.rti_info[RTAX_IFP] = rt->rt_ifp->if_addr->ifa_addr;
1559
		IF_ADDR_RLOCK(rt->rt_ifp);
1560
		if (rt->rt_ifp->if_addr != NULL)
1561
			info.rti_info[RTAX_IFP] = rt->rt_ifp->if_addr->ifa_addr;
1560
		info.rti_info[RTAX_IFA] = rt->rt_ifa->ifa_addr;
1562
		info.rti_info[RTAX_IFA] = rt->rt_ifa->ifa_addr;
1561
		if (rt->rt_ifp->if_flags & IFF_POINTOPOINT)
1563
		if (rt->rt_ifp->if_flags & IFF_POINTOPOINT)
1562
			info.rti_info[RTAX_BRD] = rt->rt_ifa->ifa_dstaddr;
1564
			info.rti_info[RTAX_BRD] = rt->rt_ifa->ifa_dstaddr;
1565
		IF_ADDR_RUNLOCK(rt->rt_ifp);
1563
	}
1566
	}
1564
	if ((error = rtsock_msg_buffer(RTM_GET, &info, w, &size)) != 0)
1567
	if ((error = rtsock_msg_buffer(RTM_GET, &info, w, &size)) != 0)
1565
		return (error);
1568
		return (error);

Return to bug 230498