From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Cc: Thomas Graf <tgraf@suug.ch>, "David S. Miller" <davem@redhat.com>,
netdev@oss.sgi.com
Subject: Re: [PATCH 2/2] [SKBUFF] introduce tr_hdr(skb)
Date: Wed, 06 Oct 2004 16:18:49 -0300 [thread overview]
Message-ID: <41644519.6040405@conectiva.com.br> (raw)
In-Reply-To: <4164424E.6000504@conectiva.com.br>
Arnaldo Carvalho de Melo wrote:
>
>
> Thomas Graf wrote:
>
>> * Arnaldo Carvalho de Melo <41643C40.8070605@conectiva.com.br>
>> 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
next prev parent reply other threads:[~2004-10-06 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-06 18:41 [PATCH 2/2] [SKBUFF] introduce tr_hdr(skb) Arnaldo Carvalho de Melo
2004-10-06 18:58 ` Thomas Graf
2004-10-06 19:06 ` Arnaldo Carvalho de Melo
2004-10-06 19:18 ` Arnaldo Carvalho de Melo [this message]
2004-10-06 19:16 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41644519.6040405@conectiva.com.br \
--to=acme@conectiva.com.br \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
--cc=tgraf@suug.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).