From: Jarek Poplawski <jarkao2@gmail.com>
To: Denys Fedoryschenko <denys@visp.net.lb>
Cc: hadi@cyberus.ca, netdev@vger.kernel.org
Subject: Re: kernel mode pppoe ppp if + ifb + mirred redirect, ethernet packets in ifb?!
Date: Wed, 14 Oct 2009 21:11:55 +0200 [thread overview]
Message-ID: <20091014191155.GA3471@del.dom.local> (raw)
In-Reply-To: <200910130144.04910.denys@visp.net.lb>
Denys Fedoryschenko wrote, On 10/13/2009 12:44 AM:
...
> As i understand, for pppoe case, he can just skip offset for ethernet and
> pppoe header, and he can filter by ip, or not?
> Current way is maybe better, cause someone who want to count everything with
> ethernet and pppoe headers - can, and who want without - also can (by setting
> offset , just a bit more difficult.
>
> Like
> /sbin/tc filter add dev eth1 protocol 0x8864 parent 2:0 prio 1 u32 \
> match u32 0x$IPREMOTE_HEX 0xffffffff at 24 flowid 2:$ID
> (found in LARTC)
Maybe I miss something, but generally (for IP, TCP etc. matches) it
should work "as usual". I think you and those other users you quoted
were mislead by that tcpdump on ifb. Probably in some configs you
might needed this 'protocol 0x8864' or 'protocol all'. You should
see it on ppp's tcpdump then, like yours:
> PPPoE_146 ~ # tcpdump -ni ppp0 -e -vvv -s 1500 -c 4
> tcpdump: WARNING:
> tcpdump: listening on ppp0, link-type LINUX_SLL (Linux cooked), capture size
> 1500 bytes
> 17:03:17.015598 Out ethertype IPv4 (0x0800), length 68: (tos 0x0, ttl 111, id
Cheers,
Jarek P.
next prev parent reply other threads:[~2009-10-14 19:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 8:43 kernel mode pppoe ppp if + ifb + mirred redirect, ethernet packets in ifb?! Denys Fedoryschenko
2009-10-12 13:10 ` jamal
2009-10-12 14:15 ` Denys Fedoryschenko
2009-10-12 20:57 ` jamal
2009-10-12 21:54 ` Denys Fedoryschenko
2009-10-12 22:07 ` jamal
2009-10-12 22:44 ` Denys Fedoryschenko
2009-10-13 12:21 ` jamal
2009-10-13 12:45 ` Denys Fedoryschenko
2009-10-13 13:02 ` jamal
2009-10-13 14:34 ` Benjamin LaHaise
2009-10-14 12:00 ` jamal
2009-10-14 19:11 ` Jarek Poplawski [this message]
2009-10-14 19:59 ` Jarek Poplawski
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=20091014191155.GA3471@del.dom.local \
--to=jarkao2@gmail.com \
--cc=denys@visp.net.lb \
--cc=hadi@cyberus.ca \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).