Skip to content

Commit 4dfd627

Browse files
liuhangbingregkh
authored andcommitted
l2tp: fix missing print session offset info
[ Upstream commit 820da53 ] 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]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f192874 commit 4dfd627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/l2tp/l2tp_netlink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,8 @@ static int l2tp_nl_session_send(struct sk_buff *skb, u32 portid, u32 seq, int fl
732732

733733
if ((session->ifname[0] &&
734734
nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) ||
735+
(session->offset &&
736+
nla_put_u16(skb, L2TP_ATTR_OFFSET, session->offset)) ||
735737
(session->cookie_len &&
736738
nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len,
737739
&session->cookie[0])) ||

0 commit comments

Comments
 (0)