l2tp: fix missing print session offset info
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 22 Dec 2017 14:10:17 +0000 (15:10 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 31 May 2018 23:30:05 +0000 (00:30 +0100)
commit5a6bf28ca66543e1c024382a779fc57f3dc04a88
treec0c8cc1fc47409080e41a1ca8716c72fdbaff17f
parent5d3ecc8aa8eb3dc677d5214464a0b01e7b5e1d26
l2tp: fix missing print session offset info

commit 820da5357572715c6235ba3b3daa2d5b43a1198f upstream.

Report offset parameter in L2TP_CMD_SESSION_GET command if
it has been configured by userspace

Fixes: 309795f4bec ("l2tp: Add netlink control API for L2TP")
Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.2:
 - Use NLA_PUT_U16, consistent with the rest of the function
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/l2tp/l2tp_netlink.c