Date: Wed, 20 Jan 1999 19:17:18 +0600 (ALMT) From: Boris Popov <bp@butya.kz> To: freebsd-hackers@FreeBSD.ORG Subject: Two bugs and suggestion for IPX stack Message-ID: <Pine.BSF.4.02.9901201855280.29453-300000@lion.butya.kz>
next in thread | raw e-mail | index | archive | help
--0-1094206439-916838238=:29453 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello, for about a two months ago I make few changes in IPX stack related to broadcast bug, internal net support and little bug in SPX implementation. As they work stable I suggest them to discuss and commit in to source tree. Here is a short explanation: Broadcasts: local host never get broadcast packet originated by itself. Novell implementation do that, and this simplify programming. Internal net: it is possible to implement internal net conception like used in Netware servers by configure loopback interface as follows: ifconfig lo0 ipx 0x5a5a.1 After that, server programs like mars_nwe , can use only network 0x5a5a and host 1. Of course this requires small changes to ipx stack and IPXrouted. SPX bug are just invalid order of operators :) All patches are simple and attached at the end of letter. BTW, I mostly finish work on Netware client (typical throughput about 730Kb/s on 10Mbit network). Higher rates is possible with packet burst mode, so does any body know the details ? -- Boris Popov --0-1094206439-916838238=:29453 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff1 Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.02.9901201917180.29453@lion.butya.kz> Content-Description: Content-Disposition: attachment; filename=diff1 ZGlmZiAtcnViIC4vc2FwX3RhYmxlcy5jIG5ldy9zYXBfdGFibGVzLmMNCi0t LSAuL3NhcF90YWJsZXMuYwlNb24gRmViIDE2IDE5OjU0OjMyIDE5OTgNCisr KyBuZXcvc2FwX3RhYmxlcy5jCVNhdCBEZWMgIDUgMjE6MDU6MjYgMTk5OA0K QEAgLTEzNCw2ICsxMzQsNyBAQA0KIAkJZm9yKHNhcCA9IHNoLT5mb3J3OyBz YXAgIT0gKHNhcF9lbnRyeSAqKXNoOyBzYXAgPSBzYXAtPmZvcncpIHsNCiAJ CQlpZiAoU2VydlR5cGUgIT0gc2FwLT5zYXAuU2VydlR5cGUpDQogCQkJCWNv bnRpbnVlOw0KKy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W50X2ZsYWdzICYgSUZGX0xPT1BCQUNLKQ0KIAkJCWNvbnRpbnVlOw0K IAkJaWZwID0gKHN0cnVjdCBpbnRlcmZhY2UgKikNCiAJCQltYWxsb2Moc2Rs LT5zZGxfbmxlbiArIDEgKyBzaXplb2YoaWZzKSk7DQo= --0-1094206439-916838238=:29453 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff2 Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.02.9901201917181.29453@lion.butya.kz> Content-Description: Content-Disposition: attachment; filename=diff2 ZGlmZiAtcnViIC4vaXB4X291dHB1dGZsLmMgbmV3L2lweF9vdXRwdXRmbC5j DQotLS0gLi9pcHhfb3V0cHV0ZmwuYwlNb24gRmViIDE2IDE5OjM0OjMwIDE5 OTgNCisrKyBuZXcvaXB4X291dHB1dGZsLmMJV2VkIEphbiAyMCAxNTozODo1 NyAxOTk5DQpAQCAtMTE4LDcgKzExOCw3IEBADQogCSAqIHN1Y2ggYSBwYWNr ZXQuDQogCSAqLw0KIAlpZiAoZHN0LT5zaXB4X2FkZHIueF9ob3N0LmNfaG9z dFswXSYxKSB7DQotCQlpZiAoKGlmcC0+aWZfZmxhZ3MgJiBJRkZfQlJPQURD QVNUKSA9PSAwKSB7DQorCQlpZiAoKGlmcC0+aWZfZmxhZ3MgJiAoSUZGX0JS T0FEQ0FTVCB8IElGRl9MT09QQkFDSykpID09IDApIHsNCiAJCQllcnJvciA9 IEVBRERSTk9UQVZBSUw7DQogCQkJZ290byBiYWQ7DQogCQl9DQpAQCAtMTI2 LDYgKzEyNiw3IEBADQogCQkJZXJyb3IgPSBFQUNDRVM7DQogCQkJZ290byBi YWQ7DQogCQl9DQorCQltMC0+bV9mbGFncyB8PSBNX0JDQVNUOw0KIAl9DQog DQogCWlmIChodG9ucyhpcHgtPmlweF9sZW4pIDw9IGlmcC0+aWZfbXR1KSB7 DQpkaWZmIC1ydWIgLi9zcHhfdXNycmVxLmMgbmV3L3NweF91c3JyZXEuYw0K LS0tIC4vc3B4X3VzcnJlcS5jCVdlZCBKYW4gMTMgMTQ6NDE6MDAgMTk5OQ0K KysrIG5ldy9zcHhfdXNycmVxLmMJV2VkIEphbiAyMCAxODo1MTowNSAxOTk5 DQpAQCAtMTMzNSwxMyArMTMzNSwxMyBAQA0KIAlpcHhwID0gc290b2lweHBj Yihzbyk7DQogDQogCU1BTExPQyhjYiwgc3RydWN0IHNweHBjYiAqLCBzaXpl b2YgKmNiLCBNX1BDQiwgTV9OT1dBSVQpOw0KLQliemVybyhjYiwgc2l6ZW9m ICpjYik7DQotCXNiID0gJnNvLT5zb19zbmQ7DQogDQogCWlmIChjYiA9PSBO VUxMKSB7DQogCQllcnJvciA9IEVOT0JVRlM7DQogCQlnb3RvIHNweF9hdHRh Y2hfZW5kOw0KIAl9DQorCWJ6ZXJvKGNiLCBzaXplb2YgKmNiKTsNCisJc2Ig PSAmc28tPnNvX3NuZDsNCiANCiAJbW0gPSBtX2dldGNscihNX0RPTlRXQUlU LCBNVF9IRUFERVIpOw0KIAlpZiAobW0gPT0gTlVMTCkgew0K --0-1094206439-916838238=:29453-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" 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.02.9901201855280.29453-300000>