[PATCH] proxyarp for shaper device, kernel 2.4.9

Roberto Arcomano (berto@fatamorgana.com)
Sun, 9 Sep 2001 20:02:04 +0200


--------------Boundary-00=_G3QECGQTA8QB55UJXEA2
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

I report here a tested and working patch to manage proxy arp on shaper device.
Details are on readme.txt file attached.
I had problems using only a patch file, if someone could tell me what is the
right command to make a diff file for all kernel source tree.... (I tried
with "diff -ur tree.orig tree.modified > diff_file" but also other useless
data are reported... :-()
Thank you
Best Regards
Roberto Arcomano
--------------Boundary-00=_G3QECGQTA8QB55UJXEA2
Content-Type: text/plain;
charset="iso-8859-1";
name="readme.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="readme.txt"

U3ViamVjdDogUEFUQ0ggdG8gdXBkYXRlIHByb3h5IGFycCBmZWF0dXJlIG9uIHNoYXBlciBkZXZp
Y2UKCkF1dGhvcjogUm9iZXJ0byBBcmNvbWFubywgYmVydG9AZmF0YW1vcmdhbmEuY29tLAogICAg
ICAgIGh0dHA6Ly93d3cuZmF0YW1vcmdhbmEuY29tL2JlcnRvbGludXgKCkRhdGU6IDkvOS8yMDAx
CgpEZXNjcmlwdGlvbjogU2hhcGVyIGRldmljZSBpcyBzZWVuIGJ5IHRoZSBrZXJuZWwgbGlrZSBh
IAogICAgICAgICAgICAgZGlmZmVyZW50IGRldmljZSAoaS5lLiBzaGFwZXIwKSB0aGFuIHRoZSAK
CSAgICAgcGh5c2ljYWwgb25lIChpLmUuIGV0aDApICB0byB3aGljaCBpcyBhdHRhY2hlZDoKCSAg
ICAgc28ga2VybmVsIGFsd2F5cyBpc3N1ZXMgYW4gIkFSUCBSRVBMWSIgCgkgICAgIChpZiBwcm94
eSBhcnAgaXMgYWN0aXZlIG9uIHNoYXBlciBwaHlzaWNhbCAKCSAgICAgaW50ZXJmYWNlKTogdGhp
cyBwcmV2ZW50IHVzIGZyb20gdXNlIHByb3h5IGFycCBvbiAKCSAgICAgYSB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9tIE9T
LCB3aGlsZSB1c2luZyBwYXRjaGVkIHZlcnNpb24gCiAgICAgICB0aGVyZSBhcmUgbm8gcHJvYmxl
bXMuCiAgICAgICBQcm94eSBhcnAgc3RpbGwgZG9lcyBpdHMgd29yayBjYXVzZSwgaWYgSSBnaXZl
IENMSUVOVDIgSVAKICAgICAgIGFkZHJlc3MgdG8gQ0xJRU5UMSBtYWNoaW5lLCBJIHJlY2VpdmUg
KGZyb20gQ0xJRU5UMSBPUykgYQogICAgICAgSVAgYnVzeSBtZXNzYWdlLgoKICAgICAgIEFsc28g
dGVzdHMgb24gY29tbWVyY2lhbCBzZXJ2ZXIgaGF2ZSBiZWVuIGRvbmUgd2l0aCBnb29kCiAgICAg
ICByZXN1bHRzLgoKICAgICAgIEtlcm5lbCB2ZXJzaW9uIHRlc3RlZCBpcyAyLjQuOQogICAgICAg
CgpGaW5hbCBub3RlczogSXQgc2hvdWxkIGJlIHZlcnkgc2ltcGxlIHRvIHBvcnQgcGF0Y2ggdG8g
b2xkZXIKICAgICAgICAgICAgIGtlcm5lbCB2ZXJzaW9uICgyLjAueHgsIDIuMS54eCwgMi4yLnh4
LCAyLjMueHgpCgkgICAgCgkgICAgICAgICAgICAgCgkgICAgIAoJICAgICAK

--------------Boundary-00=_G3QECGQTA8QB55UJXEA2
Content-Type: text/x-c;
charset="iso-8859-1";
name="diff-shaper"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="diff-shaper"

LS0tIGxpbnV4LTIuNC45Lm9yaWcvZHJpdmVycy9uZXQvc2hhcGVyLmMJVGh1IEp1biAyOCAwMjox
MDo1NSAyMDAxCisrKyBsaW51eC0yLjQuOS9kcml2ZXJzL25ldC9zaGFwZXIuYwlTdW4gU2VwICA5
IDE2OjI3OjE3IDIwMDEKQEAgLTY3MCw2ICs2NzAsNyBAQAogCWRldi0+YWRkcl9sZW4JCT0gMDsK
IAlkZXYtPnR4X3F1ZXVlX2xlbgk9IDEwOwogCWRldi0+ZmxhZ3MJCT0gMDsKKwlkZXYtPmZlYXR1
cmVzCQl8PSBORVRJRl9GX1NIQVBFUjsKIAkJCiAJLyoKIAkgKglTaGFwZXIgaXMgb2sK

--------------Boundary-00=_G3QECGQTA8QB55UJXEA2
Content-Type: text/x-c;
charset="iso-8859-1";
name="diff-netdevice"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="diff-netdevice"

LS0tIGxpbnV4LTIuNC45Lm9yaWcvaW5jbHVkZS9saW51eC9uZXRkZXZpY2UuaAlTdW4gU2VwICA5
IDE2OjE1OjQwIDIwMDEKKysrIGxpbnV4LTIuNC45L2luY2x1ZGUvbGludXgvbmV0ZGV2aWNlLmgJ
U3VuIFNlcCAgOSAxNjoyODo1NiAyMDAxCkBAIC0zNDUsNiArMzQ1LDcgQEAKICNkZWZpbmUgTkVU
SUZfRl9EWU5BTExPQwkxNgkvKiBTZWxmLWRlY3RydWN0YWJsZSBkZXZpY2UuICovCiAjZGVmaW5l
IE5FVElGX0ZfSElHSERNQQkJMzIJLyogQ2FuIERNQSB0byBoaWdoIG1lbW9yeS4gKi8KICNkZWZp
bmUgTkVUSUZfRl9GUkFHTElTVAk2NAkvKiBTY2F0dGVyL2dhdGhlciBJTy4gKi8KKyNkZWZpbmUg
TkVUSUZfRl9TSEFQRVIgIAkxMjgJLyogU2hhcGVyIGRldmljZS4gKi8KIAogCS8qIENhbGxlZCBh
ZnRlciBkZXZpY2UgaXMgZGV0YWNoZWQgZnJvbSBuZXR3b3JrLiAqLwogCXZvaWQJCQkoKnVuaW5p
dCkoc3RydWN0IG5ldF9kZXZpY2UgKmRldik7Cg==

--------------Boundary-00=_G3QECGQTA8QB55UJXEA2
Content-Type: text/x-c;
charset="iso-8859-1";
name="diff-ifshaper"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="diff-ifshaper"

LS0tIGxpbnV4LTIuNC45Lm9yaWcvaW5jbHVkZS9saW51eC9pZl9zaGFwZXIuaAlXZWQgQXVnIDE4
IDIwOjM4OjQ3IDE5OTkKKysrIGxpbnV4LTIuNC45L2luY2x1ZGUvbGludXgvaWZfc2hhcGVyLmgJ
U3VuIFNlcCAgOSAxNjoyNzowMSAyMDAxCkBAIC0xNCw2ICsxNCw4IEBACiAjZGVmaW5lIFNIQVBF
Ul9NQVhTTElQCTIKICNkZWZpbmUgU0hBUEVSX0JVUlNUCShIWi81MCkJCS8qIEdvb2QgZm9yID4x
MjhLIHRoZW4gKi8KIAorI2RlZmluZSBJU19TSEFQRVJERVZJQ0UoZGV2KSAoKGRldiktPmZlYXR1
cmVzICYgTkVUSUZfRl9TSEFQRVIpCisKIHN0cnVjdCBzaGFwZXIKIHsKIAlzdHJ1Y3Qgc2tfYnVm
Zl9oZWFkIHNlbmRxOwo=

--------------Boundary-00=_G3QECGQTA8QB55UJXEA2
Content-Type: text/x-c;
charset="iso-8859-1";
name="diff-arp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="diff-arp"

LS0tIGxpbnV4LTIuNC45Lm9yaWcvbmV0L2lwdjQvYXJwLmMJV2VkIE1heSAxNiAxOToyMTo0NSAy
MDAxCisrKyBsaW51eC0yLjQuOS9uZXQvaXB2NC9hcnAuYwlTdW4gU2VwICA5IDE2OjI2OjU1IDIw
MDEKQEAgLTExMSw4ICsxMTEsNyBAQAogCiAjaW5jbHVkZSA8YXNtL3N5c3RlbS5oPgogI2luY2x1
ZGUgPGFzbS91YWNjZXNzLmg+Ci0KLQorI2luY2x1ZGUgPGxpbnV4L2lmX3NoYXBlci5oPgogCiAv
KgogICoJSW50ZXJmYWNlIHRvIGdlbmVyaWMgbmVpZ2hib3VyIGNhY2hlLgpAQCAtNzY3LDggKzc2
NiwxNSBAQAogCQkJfQogCQkJZ290byBvdXQ7CiAJCX0gZWxzZSBpZiAoSU5fREVWX0ZPUldBUkQo
aW5fZGV2KSkgeworICAgICAgICAgICAgICAgICAgICAgICAgY2hhciBzaGZsYWc9MDsKKyAgICAg
ICAgICAgICAgICAgICAgICAgIGlmICggKHJ0LT51LmRzdC5kZXYpICYmCisJCQkgICAgIChydC0+
dS5kc3QuZGV2LT5wcml2KSAmJgorCQkJICAgICAoKChzdHJ1Y3Qgc2hhcGVyICopIHJ0LT51LmRz
dC5kZXYtPnByaXYpLT5kZXYpICYmCisJCQkgICAgIChJU19TSEFQRVJERVZJQ0UocnQtPnUuZHN0
LmRldikpICkKKwkJCSAgc2hmbGFnPTE7CiAJCQlpZiAoKHJ0LT5ydF9mbGFncyZSVENGX0ROQVQp
IHx8Ci0JCQkgICAgKGFkZHJfdHlwZSA9PSBSVE5fVU5JQ0FTVCAgJiYgcnQtPnUuZHN0LmRldiAh
PSBkZXYgJiYKKwkJCSAgICAoYWRkcl90eXBlID09IFJUTl9VTklDQVNUICAmJiAKKwkJCSAgICAo
ICgoc2hmbGFnKSAmJiAoICgoc3RydWN0IHNoYXBlciAqKSBydC0+dS5kc3QuZGV2LT5wcml2KS0+
ZGV2ICE9IGRldikpIHx8ICgoIXNoZmxhZykgJiYgKHJ0LT51LmRzdC5kZXYgIT0gZGV2KSkgKSAm
JgogCQkJICAgICAoSU5fREVWX1BST1hZX0FSUChpbl9kZXYpIHx8IHBuZWlnaF9sb29rdXAoJmFy
cF90YmwsICZ0aXAsIGRldiwgMCkpKSkgewogCQkJCW4gPSBuZWlnaF9ldmVudF9ucygmYXJwX3Ri
bCwgc2hhLCAmc2lwLCBkZXYpOwogCQkJCWlmIChuKQo=

--------------Boundary-00=_G3QECGQTA8QB55UJXEA2--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/