]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipl2tp.c
l2tp: fix L2TP_ATTR_UDP_CSUM handling
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
Wed, 16 Nov 2016 22:45:22 +0000 (22:45 +0000)
committerStephen Hemminger <sthemmin@microsoft.com>
Tue, 29 Nov 2016 21:31:30 +0000 (13:31 -0800)
commitc73fad78603e130b80a10a498582ff701ac93515
treee15d0a0ff1614d3e1d9297a41ac476516c275e34
parent4d51b3331eae9cbd77e22272903f6f0efd0b4847
l2tp: fix L2TP_ATTR_UDP_CSUM handling

L2TP_ATTR_UDP_CSUM is read by the kernel as a NLA_FLAG value,
but is validated as a NLA_U8, so we will write it as an u8,
but the value isn't actually being read by the kernel.

It is written by the kernel as a NLA_U8, so we will read as
such.

Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
ip/ipl2tp.c