]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/pedit: p_ip: introduce editing ttl header
authorAmir Vadai <amir@vadai.me>
Sun, 23 Apr 2017 12:53:52 +0000 (15:53 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 1 May 2017 16:22:16 +0000 (09:22 -0700)
commit8d193d96074bdc103d7e1738742aa371709cf7d4
treeb717563e8143136d93dca8ecd05046d05c193546
parentc05ddaf9e07e8fe3d4acf5c6b28c561afd342fbd
tc/pedit: p_ip: introduce editing ttl header

Enable user to edit IP header ttl field.

For example, to forward any TCP packet and decrease its TTL by one:
$ tc filter add dev enp0s9 protocol ip parent ffff: \
    flower \
      ip_proto tcp \
    action pedit ex munge \
      ip ttl add 0xff pipe \
    action mirred egress \
      redirect dev veth0

Signed-off-by: Amir Vadai <amir@vadai.me>
man/man8/tc-pedit.8
tc/p_ip.c