--- Rask Ingemann Lambertsen <rask@xxxxxxxxxx> a
écrit : > On Fri, Nov 07, 2003 at 09:38:44AM +0100,
> donzet wrote:
> > It seems to me that there is a problem ;). If i
> > in skb->csum a sum of all words of the packet
> data, it
> > will be unusable by tcp (the skb->csum doesn't
> > contain the checksum of tcpheader plus data only,
> > the ipheader is part of the packet when the sum is
> > computed)
> That can be accounted for by the TCP code because
> the IP header is known to
> the TCP code. IIRC, the pseudoheader is similiar to
> a real IP header, so it
> may take just a few lines of code to make up for the
> difference, but I
> haven't checked that.
The theory seems fine, but there is no clue of this
way in the code.
> What do you do with an IEEE 802.1q (VLAN) or 802.2
> (LLC) packet? The VLAN
> code in vlan_skb_recv() does not adjust skb->csum or
> skb->ip_summed. Neither
> does the 802.2 code.
no matter the link layer header is 802.3,802.2 or
8021.q . Tcp checksum offloading is supported,
whatever the type of the link layer (as skb->csum is
computed without the link layer header).
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com