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

Collapse All | Expand All

(-)src/sys/net/rtsock.c (+2 lines)
Lines 1567-1573 sysctl_dumpentry(struct radix_node *rn, void *vw) Link Here
1567
	    rt_mask(rt), &ss);
1567
	    rt_mask(rt), &ss);
1568
	info.rti_info[RTAX_GENMASK] = 0;
1568
	info.rti_info[RTAX_GENMASK] = 0;
1569
	if (rt->rt_ifp) {
1569
	if (rt->rt_ifp) {
1570
		/* panics system at reference to rt->rt_ifp->if_addr sometimes is invalid and not null
1570
		info.rti_info[RTAX_IFP] = rt->rt_ifp->if_addr->ifa_addr;
1571
		info.rti_info[RTAX_IFP] = rt->rt_ifp->if_addr->ifa_addr;
1572
		*/
1571
		info.rti_info[RTAX_IFA] = rt->rt_ifa->ifa_addr;
1573
		info.rti_info[RTAX_IFA] = rt->rt_ifa->ifa_addr;
1572
		if (rt->rt_ifp->if_flags & IFF_POINTOPOINT)
1574
		if (rt->rt_ifp->if_flags & IFF_POINTOPOINT)
1573
			info.rti_info[RTAX_BRD] = rt->rt_ifa->ifa_dstaddr;
1575
			info.rti_info[RTAX_BRD] = rt->rt_ifa->ifa_dstaddr;

Return to bug 233306