]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: pedit: Fix retain value for ihl adjustments
authorPhil Sutter <phil@nwl.cc>
Wed, 2 Mar 2016 11:20:31 +0000 (12:20 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 6 Mar 2016 20:53:11 +0000 (12:53 -0800)
commit338b003bcc22a62c98b84dbe5e491cae84dbb03c
treef3baf2ff4649ba2c65923f0c95e9b1e2fde2f24b
parentf440e9d8c2f6f0eb2e9fccd8f4d7c42c11ba4979
tc: pedit: Fix retain value for ihl adjustments

Since the IP Header Length field is just half a byte, adjust retain to
only match these bits so the Version field is not overwritten by
accident.

The whole concept is actually broken due to dependency on endianness
which pedit ignores.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/p_ip.c