netdev
[Top] [All Lists]

Re: [PATCH 2/2] [SKBUFF] introduce tr_hdr(skb)

To: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>
Subject: Re: [PATCH 2/2] [SKBUFF] introduce tr_hdr(skb)
From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>
Date: Wed, 06 Oct 2004 16:18:49 -0300
Cc: Thomas Graf <tgraf@xxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <4164424E.6000504@xxxxxxxxxxxxxxxx>
Organization: Conectiva S.A.
References: <41643C40.8070605@xxxxxxxxxxxxxxxx> <20041006185835.GB19714@xxxxxxxxxxxxxx> <4164424E.6000504@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)


Arnaldo Carvalho de Melo wrote:


Thomas Graf wrote:

* Arnaldo Carvalho de Melo <41643C40.8070605@xxxxxxxxxxxxxxxx> 2004-10-06 15:41

-        trh = (struct trh_hdr *)skb_push(skb, sizeof(*trh));
+        skb->mac.raw = skb_push(skb, sizeof(*trh));
+        trh = tr_hdr(skb);
        trh->ac = AC;
        trh->fc = LLC_FRAME;
        if (sa)
@@ -51,7 +52,6 @@
            memcpy(trh->daddr, da, dev->addr_len);
            tr_source_route(skb, trh, dev);
        }
-        skb->mac.raw = skb->data;



Are you sure the bevhaviour is the same? There is an skb_pull
in tr_source_route so skb->data gets modified.



Thanks for reviewing, checking...



You're right, if tr_source_route is called, skb->mac.raw has to be set
to skb->data, to maintain the old behaviour, if it is right? Oh well,
as I said there aren't many people using Token Ring, let alone LLC over
token ring, I'll be posting a patch in some minutes.

- Arnaldo

<Prev in Thread] Current Thread [Next in Thread>