Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Eric Leblond <eric@regit.org>
To: lartc@vger.kernel.org
Subject: [LARTC] Is negative offset possible in u32 ?
Date: Tue, 14 Jan 2003 12:40:13 +0000	[thread overview]
Message-ID: <marc-lartc-104254797731703@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Has somebody realyy manage to use the examples given when using negative
offset in u32 ?

I look at the kernel code, I'm almost a real beginner here so I could
wrote stupid things :

I saw that in the file cls_u32.c we work with skb and use only 
skb->nh.raw. That's the network header, so we don't have any information
about Ethernet header (it's in skb->mac.raw that we have the ethernet
header and that the protocol is given).
Furthermore (maybe i'm wrong cause of inverted stockage in memory) in
the skbuf struct the ethernet header union follow the network header
union so we should read something else.
Thus we can at least say that negative offset in u32 are really "tricky"
and really non clean and as seems to show experiment that they don't
work (?)

-- 
Éric Leblond
courriel : eric@regit.org

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2003-01-14 12:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-14 12:40 Eric Leblond [this message]
2003-01-14 13:22 ` [LARTC] Is negative offset possible in u32 ? Stephane Ouellette
2003-01-14 13:28 ` Eric Leblond
2003-01-14 23:34 ` Julian Anastasov

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=marc-lartc-104254797731703@msgid-missing \
    --to=eric@regit.org \
    --cc=lartc@vger.kernel.org \
    /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