Date: Sat, 8 Jun 2002 22:28:25 +0300 (EEST) From: Iasen Kostov <ikostov@otel.net> To: Brian Somers <brian@Awfulhak.org> Cc: freebsd-net@FreeBSD.ORG Subject: Re: host routes for interface addresses Message-ID: <20020608222106.U9095-200000@shadowhand.OTEL.net> In-Reply-To: <20020608201825.468bbab6.brian@Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1265262991-1023564505=:9095 Content-Type: TEXT/PLAIN; charset=US-ASCII Oooo...ppzzZ. I think I didn't sleep enough last night :P. But I found what I was looking for :). This is it line 950 of net/rtsock.c : ifm->ifm_flags = (u_short)ifp->if_flags | ifp->if_ipending; And I even try it - it works. But Im not sure if it will work in all cases... On Sat, 8 Jun 2002, Brian Somers wrote: > On Sat, 8 Jun 2002 21:53:59 +0300 (EEST), Iasen Kostov <ikostov@otel.net> wrote: > > Here is the patch. I'm now looking in the code to see where kernel > > replays to the interface table requests. I hope there are not a lot > > of places where it sets ifm_flags. > [.....] > > I think you forgot to add the patch :*P > > -- > Brian <brian@Awfulhak.org> <brian.somers@sun.com> > <http://www.Awfulhak.org> <brian@[uk.]FreeBSD.org> > Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > --0-1265262991-1023564505=:9095 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ifcflags.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20020608222825.B9095@shadowhand.OTEL.net> Content-Description: Content-Disposition: attachment; filename="ifcflags.patch" LS0tIHN5cy9uZXQvaWYuYwlTdW4gQXByIDI4IDA4OjQwOjI1IDIwMDINCisr KyBzeXMvbmV0L2lmLm15LmMJU2F0IEp1biAgOCAyMDo1MjoxMiAyMDAyDQpA QCAtOTUyLDYgKzk1Miw3IEBADQogCXN0cnVj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FfSE9TVCkpIHsNCisJ CSAgICBpZiAoKGVycm9yID0gcnRpbml0KCZpYS0+aWFfaWZhLCAoaW50KVJU TV9BREQsIGZsYWdzKSkgIT0gMCkgew0KKwkJICAgIAlpYS0+aWFfYWRkciA9 IG9sZGFkZHI7DQorCQkJcmV0dXJuIChlcnJvcik7DQorCQkgICAgfQ0KKwkJ ICAgIGlhLT5pYV9mbGFncyB8PSBJRkFfUk9VVEU7DQorCSAgICB9DQogDQog CS8qDQogCSAqIElmIHRoZSBpbnRlcmZhY2Ugc3VwcG9ydHMgbXVsdGljYXN0 LCBqb2luIHRoZSAiYWxsIGhvc3RzIg0K --0-1265262991-1023564505=:9095-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020608222106.U9095-200000>