Date: Sat, 8 Jun 2002 23:20:40 +0300 (EEST) From: Iasen Kostoff <tbyte@otel.net> To: Brian Somers <brian@Awfulhak.org> Cc: freebsd-net@FreeBSD.ORG Subject: Re: host routes for interface addresses Message-ID: <20020608231655.J21392-200000@shadowhand.OTEL.net> In-Reply-To: <20020608172432.3f030ceb.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-499592805-1023567640=:21392 Content-Type: TEXT/PLAIN; charset=US-ASCII This should be the full patch , but I'm not so sure :) I add ifconfig and net/rtsock.c fixes. I hope I don't miss something this time :) --0-499592805-1023567640=:21392 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ifcflags.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20020608232040.A21392@shadowhand.OTEL.net> Content-Description: Content-Disposition: attachment; filename="ifcflags.patch" LS0tIHN5cy9uZXQvaWYuYwlTdW4gQXByIDI4IDA4OjQwOjI1IDIwMDINCisr KyBzeXMvbmV0L2lmLm15LmMJU2F0IEp1biAgOCAyMDo1MjoxMiAyMDAyDQpA QCAtOTUyLDYgKzk1Miw3IEBADQogCXN0cnVjdCBpZnN0YXQgKmlmczsNCiAJ aW50IGVycm9yOw0KIAlzaG9ydCBvaWZfZmxhZ3M7DQorCWludCBmbGFnc2xv bmc7DQogDQogCXN3aXRjaCAoY21kKSB7DQogDQpAQCAtOTgwLDcgKzk4MSw4 IEBADQogCXN3aXRjaCAoY21kKSB7DQogDQogCWNhc2UgU0lPQ0dJRkZMQUdT Og0KLQkJaWZyLT5pZnJfZmxhZ3MgPSBpZnAtPmlmX2ZsYWdzOw0KKwkJZmxh Z3Nsb25nID0gaWZwLT5pZl9mbGFncyAmIDB4MDAwMGZmZmY7DQorCQlpZnIt Pmlmcl9mbGFnc2xvbmcgPSBmbGFnc2xvbmcgfCBpZnAtPmlmX2lwZW5kaW5n Ow0K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V9zaG9ydClpZnAtPmlmX2ZsYWdzOw0KKwkJCWlmbS0+aWZtX2ZsYWdzID0g KHVfc2hvcnQpaWZwLT5pZl9mbGFncyB8IGlmcC0+aWZfaXBlbmRpbmc7DQog CQkJaWZtLT5pZm1fZGF0YSA9IGlmcC0+aWZfZGF0YTsNCiAJCQlpZm0tPmlm bV9hZGRycyA9IGluZm8ucnRpX2FkZHJzOw0KIAkJCWVycm9yID0gU1lTQ1RM X09VVCh3LT53X3JlcSwoY2FkZHJfdClpZm0sIGxlbik7DQo= --0-499592805-1023567640=:21392-- 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?20020608231655.J21392-200000>