Re: [PATCH] Fix alignment in tun_get_user

2005-03-18 Thread David S. Miller
On Fri, 18 Mar 2005 19:25:46 +0100 Sven Henkel <[EMAIL PROTECTED]> wrote: > This patch fixes an alignment-problem in tun_get_user: Only > ethernet-frames need to be headed by 2 bytes (due to their size of 14 > bytes), IP-frames should not be touched. The patch changes > tun_get_user to reserve 2 b

[PATCH] Fix alignment in tun_get_user

2005-03-18 Thread Sven Henkel
Hi! This patch fixes an alignment-problem in tun_get_user: Only ethernet-frames need to be headed by 2 bytes (due to their size of 14 bytes), IP-frames should not be touched. The patch changes tun_get_user to reserve 2 bytes of the skb for TUN_TAP_DEVs and 0 bytes otherwise. Ciao, Sven --- linux