Hello!
> OK. There is problem that these two bytes are passed to userspace through
> netlink :-( So if you remove them here, you'll have to add them in netlink.
I speak exactly about this: adding two bytes was sort of optimization,
which forced correct alignment of ethertap data and allowed to avoid
data copying, when feeding packets from user to kernel.
It was confusing and we decided to kill it making tunable reservations
at netlink level, but I forgot to make it in time.
In any case, the solution is easy, the patch is appended.
Alexey
--- ../orig/linux/drivers/net/ethertap.c Tue Oct 27 23:22:25 1998
+++ linux/drivers/net/ethertap.c Mon May 3 19:07:12 1999
@@ -98,6 +98,7 @@
ether_setup(dev);
+ dev->hard_header_len = 16;
dev->tx_queue_len = 0;
dev->flags|=IFF_NOARP;
tap_map[dev->base_addr]=dev;
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]