]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix UDP checksum support
authorJames Chapman <jchapman@katalix.com>
Tue, 16 Dec 2008 09:23:49 +0000 (01:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Dec 2008 09:23:49 +0000 (01:23 -0800)
commit5973553c3c63246d34de50132287a122a9974ce6
treeb531cdc5afb34dae85d67aef5607d344996e1f44
parent0f08833f9ac9ab4b2c157fe6f4da6e8d2ee4e3db
l2tp: fix UDP checksum support

The pppol2tp driver has had broken UDP checksum code for a long
time. This patch fixes it. If UDP checksums are enabled in the
tunnel's UDP socket, the L2TP driver now properly validates the
checksum on receive and fills in the checksum on transmit. If the
network device has hardware checksum support and is enabled, it is
used instead of generating/checking the checksum in software.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppol2tp.c