Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 313855 | Differences between
and this patch

Collapse All | Expand All

(-)ars.c.org (-2 / +2 lines)
Lines 482-488 Link Here
482
		sum += (sum >> 16);
482
		sum += (sum >> 16);
483
		return (u_int16_t) ~sum;
483
		return (u_int16_t) ~sum;
484
	} else {
484
	} else {
485
		assert("else reached in ars_multi_cksum()" == "");
485
		assert("else reached in ars_multi_cksum()");
486
	}
486
	}
487
	return 0; /* unreached, here to prevent warnings */
487
	return 0; /* unreached, here to prevent warnings */
488
}
488
}
Lines 914-920 Link Here
914
		return -ARS_INVALID;
914
		return -ARS_INVALID;
915
	}
915
	}
916
	ip = (struct ars_iphdr*) packet;
916
	ip = (struct ars_iphdr*) packet;
917
#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
917
#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
918
	ip->tot_len = ntohs(ip->tot_len);
918
	ip->tot_len = ntohs(ip->tot_len);
919
	ip->frag_off = ntohs(ip->frag_off);
919
	ip->frag_off = ntohs(ip->frag_off);
920
#endif
920
#endif

Return to bug 313855