Skip to content

Commit 820da53

Browse files
liuhangbindavem330
authored andcommitted
l2tp: fix missing print session offset info
Report offset parameter in L2TP_CMD_SESSION_GET command if it has been configured by userspace Fixes: 309795f ("l2tp: Add netlink control API for L2TP") Reported-by: Jianlin Shi <[email protected]> Signed-off-by: Hangbin Liu <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9f30e5c commit 820da53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/l2tp/l2tp_netlink.c

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static int l2tp_nl_session_send(struct sk_buff *skb, u32 portid, u32 seq, int fl
761761

762762
if ((session->ifname[0] &&
763763
nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) ||
764+
(session->offset &&
765+
nla_put_u16(skb, L2TP_ATTR_OFFSET, session->offset)) ||
764766
(session->cookie_len &&
765767
nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len,
766768
&session->cookie[0])) ||

0 commit comments

Comments
 (0)