net: l2tp: only set L2TP_ATTR_UDP_CSUM if AF_INET
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
Mon, 7 Nov 2016 20:39:25 +0000 (20:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 23:55:36 +0000 (18:55 -0500)
commit7ff516ffe4ec723aad824d68d8a23751330e8f19
tree9c88e3acec5a720e1e02edd1c046c8feb4bb9ef6
parent3f11ec045fecf2c0fb21f08f68ebc9237bd1d03c
net: l2tp: only set L2TP_ATTR_UDP_CSUM if AF_INET

Only set L2TP_ATTR_UDP_CSUM in l2tp_nl_tunnel_send()
when it's running over IPv4.

This prepares the code to also have IPv6 specific attributes.

Signed-off-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_netlink.c