From 18b6e4c8d23d4710f2add344e47e48e786286ee7 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Sat, 8 Sep 2007 19:28:45 +0000 Subject: [PATCH] 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(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 82bc719d2b0..c2a2051b733 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) {