Do not set the RTF_GATEWAY flag if RTF_LLINFO is set, it doesn't make much

sense in that context, and leads to unusable routes.
This should unbreak bootpd.

Discussed with: glebius
Submitted by:   bms
Approved by:    re (bmah)
This commit is contained in:
Olivier Houchard 2007-09-08 19:28:45 +00:00
parent 851b7298b3
commit 18b6e4c8d2

View File

@ -528,7 +528,8 @@ route_output(struct mbuf *m, struct socket *so)
RT_UNLOCK(rt); RT_UNLOCK(rt);
senderr(error); senderr(error);
} }
rt->rt_flags |= RTF_GATEWAY; if (!(rt->rt_flags & RTF_LLINFO))
rt->rt_flags |= RTF_GATEWAY;
} }
if (info.rti_ifa != NULL && if (info.rti_ifa != NULL &&
info.rti_ifa != rt->rt_ifa) { info.rti_ifa != rt->rt_ifa) {