From 7a6912794da91b4181a5c452c0f28bd0a8a25c11 Mon Sep 17 00:00:00 2001 From: cognet Date: Sat, 8 Sep 2007 19:28:45 +0000 Subject: 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) --- sys/net/rtsock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net/rtsock.c') diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 82bc719..c2a2051 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -528,7 +528,8 @@ route_output(struct mbuf *m, struct socket *so) RT_UNLOCK(rt); senderr(error); } - rt->rt_flags |= RTF_GATEWAY; + if (!(rt->rt_flags & RTF_LLINFO)) + rt->rt_flags |= RTF_GATEWAY; } if (info.rti_ifa != NULL && info.rti_ifa != rt->rt_ifa) { -- cgit v1.1