lkml.org 
[lkml]   [1999]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ethertap -> are this really ethernet-packets? [includes patch]
BIONDI Philippe wrote:
> You have missed something:
> What is read in /dev/tap0 now have 2 extra bytes to align the begining of
> the ethernet data to 16 bytes.
> > 001] ff:ff:fe:fd:00:00 fb:0f:ff:ff:ff:ff 0000|
> ^ here begin then real packet.
>

Thank you very much!
In my opinion this is rather strange behaviour and should be
described in the documentation.
Also that you need the netlink device emulation should be
described.

Patch for Documentation/networking/ethertap.txt:
24a25,26
> Also, do not forget to include "netlink device emulation" in the
> kernel!
88a91,93
>
> When reading from the device, skip the first two bytes in every packet; they
> are added for padding and contain invalid data.



--
------------------------------------------------------------
Folkert van Heusden
some e-mail addresses: f.v.heusden@ftr.nl, flok99@dds.nl
mobile phone: +31-6-22390057


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:6.709 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site