[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160704.151154.1138773384083862532.davem@davemloft.net>
Date: Mon, 04 Jul 2016 15:11:54 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jhs@...atatu.com
Cc: netdev@...r.kernel.org, daniel@...earbox.net,
xiyou.wangcong@...il.com, fw@...len.de
Subject: Re: [PATCH v2 net-next 2/3] net sched actions: skbedit add support
for mod-ing skb pkt_type
From: Jamal Hadi Salim <jhs@...atatu.com>
Date: Sat, 2 Jul 2016 06:43:15 -0400
> From: Jamal Hadi Salim <jhs@...atatu.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@...atatu.com>
Applied.
Powered by blists - more mailing lists