]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute_lwtunnel: csum_mode value checking was ineffective
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Aug 2017 17:09:30 +0000 (19:09 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 18 Aug 2017 16:13:17 +0000 (09:13 -0700)
commit08806fb0191e9ee8769507dc93b722fd021feb34
treeee62e6d5c4059119605df4f4f5178ace8e2d8127
parent58a15e6c7e7cb4c0d25e6bb3762ac2b1c94ff523
iproute_lwtunnel: csum_mode value checking was ineffective

ila_csum_name2mode() returning -1 on error but being declared as
returning __u8 doesn't make much sense. Change the code to correctly
detect this issue. Checking for __u8 overruns shouldn't be necessary
though since ila_csum_name2mode() return values are well-defined.

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