IP-Ethernet Routing Problem (4.2)

Chris Torek chris at umcp-cs.UUCP
Fri Oct 4 06:10:56 AEST 1985


I cannot say for certain that this is your problem, but I recall a bug
in the distributed 4.2 code.  In netinet/ip_output.c, inside ip_output(),
if you have a bit of code that reads

	if (ro->ro_rt == 0 || (ifp = ro->ro_rt->rt_ifp) == 0) {
		error = ENETUNREACH;
		goto bad;
	}
	ro->ro_rt->rt_use++;
	if (ro->ro_rt->rt_flags & RTF_GATEWAY)
		dst = &ro->ro_rt->rt_gateway;

change the last two lines to

	if (ro->ro_rt->rt_flags & (RTF_GATEWAY|RTF_HOST))
		dst = &ro->ro_rt->rt_gateway;
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.unix.wizards mailing list