Date: Thu, 14 Dec 2000 14:44:32 -0800 (PST) From: Nick Sayer <nsayer@freebsd.org> To: freebsd-emulation@freebsd.org Subject: Suggestet patch to vmware2 port: netgraph bridging Message-ID: <Pine.BSF.4.21.0012141441480.93965-200000@medusa.kfu.com>
next 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-1534504094-976833872=:93965 Content-Type: TEXT/PLAIN; charset=US-ASCII I've been using netgraph bridging for quite some time now and it works remarkably well. One of the big advantages of it is that it is far less likely to gum up multi-interface configurations, since you pick which interface you want to "chain" the guest to at install-time. I usually dummy up the vmware.sh script by hand, so this patch is not thoroughly tested, but I think it would be a good replacement for the bridge functionality we have in the vmware2 port now. If nothing else, it means you can run vmware without having to recompile the kernel! --0-1534504094-976833872=:93965 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=p Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0012141444320.93965@medusa.kfu.com> Content-Description: Content-Disposition: attachment; filename=p SW5kZXg6IE1ha2VmaWxlDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg ZmlsZTogL2hvbWUvbmN2cy9wb3J0cy9lbXVsYXRvcnMvdm13YXJlMi9NYWtl ZmlsZSx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMjkNCmRpZmYgLXUgLXIx LjI5IE1ha2VmaWxlDQotLS0gTWFrZWZpbGUJMjAwMC8xMS8wNyAxNDo0MDoy MwkxLjI5DQorKysgTWFrZWZpbGUJMjAwMC8xMi8xNCAyMjo0MTozMw0KQEAg LTEwMiw2ICsxMDIsOCBAQA0KIAkke1NFRH0gCS1lICdzO0BAUFJFRklYQEA7 JHtQUkVGSVh9OycgXA0KIAkJLWUgJ3M7QEBMSU5VWEJBU0VAQDske0xJTlVY QkFTRX07JyBcDQogC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JveCBcDQorIlxuIlwNCisiVGhl IGZvbGxvd2luZyBvcHRpb25zIHdpbGwgYmUgdXNlZC5cblxuIlwNCisiQ29u ZmlndXJhdGlvbjogYnJpZGdlZFxuIlwNCisiSW50ZXJmYWNlOiAgICAgJGJk Z19pbnRlcmZhY2VcbiJcDQorCSAgICAxMCA1MA0KKwllbHNlDQogCS91c3Iv YmluL2RpYWxvZyAtLXRpdGxlICIkdGl0bGUiIC0taW5mb2JveCBcDQogIlxu IlwNCiAiVGhlIGZvbGxvd2luZyBvcHRpb25zIHdpbGwgYmUgdXNlZC5cblxu IlwNCi0iSVAgYWRkcmVzczogJGhvc3RfaXBcbiJcDQotIk5ldG1hc2s6ICAg ICRuZXRtYXNrXG4iXA0KKyJDb25maWd1cmF0aW9uOiBob3N0IG9ubHlcbiJc DQorIklQIGFkZHJlc3M6ICAgICRob3N0X2lwXG4iXA0KKyJOZXRtYXNrOiAg ICAgICAkbmV0bWFza1xuIlwNCiAJMTAgNTANCisJZmkNCiAgICAgZmkNCiBl bHNlICNCQVRDSA0KICAgICBbIC1mICR7V1JLRElSfS9NYWtlZmlsZS5pbmMu bmV0IF0gJiYgZXhpdCAwDQpAQCAtMTAwLDYgKzE1MCw4IEBADQogZXhlYyA+ ICR7V1JLRElSfS9NYWtlZmlsZS5pbmMubmV0DQogDQogZWNobyAnIycgYGRh dGVgDQorZWNobyBWTU5FVF9CUklER0VEPSRicmlkZ2VkDQorZWNobyBWTU5F VF9CUklER0VEX0lOVEVSRkFDRT0kYmRnX2ludGVyZmFjZQ0KIGVjaG8gVk1O RVRfSE9TVF9JUD0kaG9zdF9pcA0KIGVjaG8gVk1ORVRfTkVUTUFTSz0kbmV0 bWFzaw0KIGVjaG8gVk1ORVRfTkVUV09SS0lORz0kbmV0d29ya2luZw0K --0-1534504094-976833872=:93965-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012141441480.93965-200000>