From: Daniel Borkmann <daniel@iogearbox•net>
To: Jamal Hadi Salim <jhs@mojatatu•com>, davem@davemloft•net
Cc: netdev@vger•kernel.org, xiyou.wangcong@gmail•com, fw@strlen•de
Subject: Re: [PATCH v2 net-next 2/3] net sched actions: skbedit add support for mod-ing skb pkt_type
Date: Sat, 02 Jul 2016 19:35:49 +0200 [thread overview]
Message-ID: <5777FB75.2050407@iogearbox.net> (raw)
In-Reply-To: <1467456196-25712-2-git-send-email-jhs@emojatatu.com>
On 07/02/2016 12:43 PM, Jamal Hadi Salim wrote:
> From: Jamal Hadi Salim <jhs@mojatatu•com>
>
> Extremely useful for setting packet type to host so i dont
> have to modify the dst mac address using pedit (which requires
> that i know the mac address)
>
> Example usage:
> tc filter add dev eth0 parent ffff: protocol ip pref 9 u32 \
> match ip src 5.5.5.5/32 \
> flowid 1:5 action skbedit ptype host
>
> This will tag all packets incoming from 5.5.5.5 with type
> PACKET_HOST
>
> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu•com>
Acked-by: Daniel Borkmann <daniel@iogearbox•net>
next prev parent reply other threads:[~2016-07-02 17:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 10:43 [PATCH v2 net-next 1/3] net: simplify and make pkt_type_ok() available for other users Jamal Hadi Salim
2016-07-02 10:43 ` [PATCH v2 net-next 2/3] net sched actions: skbedit add support for mod-ing skb pkt_type Jamal Hadi Salim
2016-07-02 17:35 ` Daniel Borkmann [this message]
2016-07-04 22:11 ` David Miller
2016-07-02 10:43 ` [PATCH v2 net-next 3/3] net sched actions: skbedit convert to use more modern nla_put_xxx Jamal Hadi Salim
2016-07-04 22:11 ` David Miller
2016-07-02 17:29 ` [PATCH v2 net-next 1/3] net: simplify and make pkt_type_ok() available for other users Daniel Borkmann
2016-07-04 22:11 ` David 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=5777FB75.2050407@iogearbox.net \
--to=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=fw@strlen$(echo .)de \
--cc=jhs@mojatatu$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=xiyou.wangcong@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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