All of lore.kernel.org
 help / color / mirror / Atom feed
From: soyoung@taonetworks.com
To: lartc@vger.kernel.org
Subject: [LARTC] [Q]about u32 filter
Date: Thu, 29 May 2003 09:04:10 +0000	[thread overview]
Message-ID: <marc-lartc-105419914522876@msgid-missing> (raw)

Hi, I have a question about u32 filter.

in u32_classify() function (located in net/sched/cls_u32.c), 
there is a memory address boundary check code : 

--

#if !defined(__i386__) && !defined(__mc68000__)
	if ((unsigned long)ptr & 3) { // ptr = skb->nh.raw
		printk("ptr error...returned -1\n");
		return -1;
	}
#endif

--

According to the code, it is error if ptr is not a multiple of 4 
except on the i386 or mc68000.  Why is this kind of code necessary? 
What kind of problem could happen if that code is removed 
on the other platform - arm or mips or etc..

SoYoung
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2003-05-29  9:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-105419914522876@msgid-missing \
    --to=soyoung@taonetworks.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.