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

Collapse All | Expand All

(-)sys/netinet/ip_input.c (-3 / +3 lines)
Lines 564-570 passin: Link Here
564
	/*
564
	/*
565
	 * Check for exact addresses in the hash bucket.
565
	 * Check for exact addresses in the hash bucket.
566
	 */
566
	 */
567
	/* IN_IFADDR_RLOCK(); */
567
	IN_IFADDR_RLOCK();
568
	LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) {
568
	LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) {
569
		/*
569
		/*
570
		 * If the address matches, verify that the packet
570
		 * If the address matches, verify that the packet
Lines 574-584 passin: Link Here
574
		if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr && 
574
		if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr && 
575
		    (!checkif || ia->ia_ifp == ifp)) {
575
		    (!checkif || ia->ia_ifp == ifp)) {
576
			ifa_ref(&ia->ia_ifa);
576
			ifa_ref(&ia->ia_ifa);
577
			/* IN_IFADDR_RUNLOCK(); */
577
			IN_IFADDR_RUNLOCK();
578
			goto ours;
578
			goto ours;
579
		}
579
		}
580
	}
580
	}
581
	/* IN_IFADDR_RUNLOCK(); */
581
	IN_IFADDR_RUNLOCK();
582
582
583
	/*
583
	/*
584
	 * Check for broadcast addresses.
584
	 * Check for broadcast addresses.

Return to bug 220078