*** route.c.orig Fri Oct 6 13:41:50 2000 --- route.c Fri Oct 6 15:12:25 2000 *************** *** 1215,1221 **** if (out_dev == in_dev && err && !(flags&(RTCF_NAT|RTCF_MASQ)) && (IN_DEV_SHARED_MEDIA(out_dev) ! || inet_addr_onlink(out_dev, saddr, FIB_RES_GW(res)))) flags |= RTCF_DOREDIRECT; if (skb->protocol != __constant_htons(ETH_P_IP)) { --- 1215,1222 ---- if (out_dev == in_dev && err && !(flags&(RTCF_NAT|RTCF_MASQ)) && (IN_DEV_SHARED_MEDIA(out_dev) ! || inet_addr_onlink(out_dev, saddr, ! FIB_RES_GW(res) ? FIB_RES_GW(res) : daddr))) flags |= RTCF_DOREDIRECT; if (skb->protocol != __constant_htons(ETH_P_IP)) {