--279709697-1200478863-879338040=:15237
Content-Type: TEXT/PLAIN; charset=US-ASCII
This patch uses the IFF_SOFTHEADER flag and sets the mac data
pointer appropriately on ISDN net devices. This allows raw
packet snoopers (particularly diald and probably tcpdump) to
see meaningful data on the interface without cruft from
whatever encapsulation is in use. It's stolen from the PPP
code if any justification is needed.
I sent it to Fritz a while back but I haven't seen it in a
kernel yet (but then I haven't been paying that much attention
recently).
Mike
-- .----------------------------------------------------------------------. | Mike Jagdis | Internet: mailto:mike@roan.co.uk | | Roan Technology Ltd. | | | 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 | | RG40 1XG, ENGLAND | Fax: +44 118 989 1195 | `----------------------------------------------------------------------'--279709697-1200478863-879338040=:15237 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="isdn.patch" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.3.91.971112123400.15237B@toaster.roan.co.uk> Content-Description: Soft header patch for ISDN net devices
LS0tIGlzZG5fbmV0LmMub2xkCUZyaSBTZXAgMTIgMTI6MjQ6NDQgMTk5Nw0K KysrIGlzZG5fbmV0LmMJRnJpIFNlcCAxMiAxNjoxMjoxNyAxOTk3DQpAQCAt MTM0NCw2ICsxMzQ0LDcgQEANCiAJaXNkbl9uZXRfbG9jYWwgKmxwID0gZGV2 LT5wcml2Ow0KIAl1c2hvcnQgbGVuID0gMDsNCiANCisJc2tiLT5tYWMucmF3 ID0gc2tiLT5kYXRhOw0KIAlzd2l0Y2ggKGxwLT5wX2VuY2FwKSB7DQogCQlj YXNlIElTRE5fTkVUX0VOQ0FQX0VUSEVSOg0KIAkJCWxlbiA9IG15X2V0aF9o ZWFkZXIoc2tiLCBkZXYsIHR5cGUsIGRhZGRyLCBzYWRkciwgcGxlbik7DQpA QCAtMjI1Niw2ICsyMjU3LDcgQEANCiAJCQlwLT5sb2NhbC5jaGFyZ2VpbnQg PSBjZmctPmNoYXJnZWludCAqIEhaOw0KIAkJfQ0KIAkJaWYgKGNmZy0+cF9l bmNh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