From patchwork Fri Dec 22 03:32:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hangbin Liu X-Patchwork-Id: 852232 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BC8VEtia"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z2vGC3Vmdz9s81 for ; Fri, 22 Dec 2017 14:32:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754007AbdLVDca (ORCPT ); Thu, 21 Dec 2017 22:32:30 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33390 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766AbdLVDc3 (ORCPT ); Thu, 21 Dec 2017 22:32:29 -0500 Received: by mail-pf0-f196.google.com with SMTP id y89so14827630pfk.0 for ; Thu, 21 Dec 2017 19:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JfEbWsE5XSIBxm+5umv4CicXdH6Qp9BRu9xNiBtLSb8=; b=BC8VEtia1xhNwe5ASsWQLGfHDQQ3pz/mLdJxsX6iRQskpgZ2HdSi1NrDTBu/7g1TA3 cBmSANUNc74WBsJ6Dw3dULvpanhveOkiLEkafR3BYlz/V2mJ5z3Ry+yQUeYXpHiOksZQ b4lJdoaaGd6cp6VbAiXeXzc/jtYeyZ5nI6O+VUnXMjEDIp8wE9LOH6coqhxuz/d22HNe aE7w8C5mY/rF4iPdZrNndNNZHNRT5HZ+t69nxS+SnqH3Q+ngEq8aM2nWLTRUmt9iIuCn BlfugUNmbzUbZQdz8AKfHo4EeqGRD2wshpot+xP6i9HRw4VzmQxgmClmFQ0c7sN4byAL 47TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JfEbWsE5XSIBxm+5umv4CicXdH6Qp9BRu9xNiBtLSb8=; b=Q1/luPRn5mdxcIgMx1Wb1kYQSnu7xYOMKjfi7dgAcd3RL111GSoTdhWWZWJLT2A9hI RfsAmr1mIt8zu7TCCKUOqHIe5fT0nTLQcH9H4g+nsrKyCrFf4OrNRCq6nmCweb6R+G8T THIut6HYHzK6jsktgjYvdRZIqbZW694YOWBL00cy8dRyiySnD4L7ddAMlJnpppncCFHY Ycpk7+US8+A9egilv9gsx78vfaG6HiBSrD3U692ginuYumTBbRFN7DwC7XKjHd8UnMXU 3Xf4jnIEjq8bV20kt051ORZLJ77ee69zoV6qWrBaYD/PRxcj2kvzjxAlzKxXhKNv/Ayc i+SQ== X-Gm-Message-State: AKGB3mJrzz4ZfWHnhG5Nsbhdzfw3oGTrnux9muLI30GlrJXL7AvBglFo cJkVPXAjtnzFt/FwRDlWardAi4Vv X-Google-Smtp-Source: ACJfBosuo6hDGQSJn20YBStmGS9uNARxaI6gdM1eveI9Iz2fC8ckr5CAmlts3V1grcaDjDK9oLZGmw== X-Received: by 10.99.108.5 with SMTP id h5mr11900565pgc.113.1513913548710; Thu, 21 Dec 2017 19:32:28 -0800 (PST) Received: from leo.usersys.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id z25sm38642561pfe.121.2017.12.21.19.32.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 19:32:28 -0800 (PST) From: Hangbin Liu To: netdev@vger.kernel.org Cc: James Chapman , "David S. Miller" , Hangbin Liu Subject: [PATCHv2 net] l2tp: fix missing print session offset info Date: Fri, 22 Dec 2017 11:32:12 +0800 Message-Id: <1513913532-8090-1-git-send-email-liuhangbin@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1513838730-14033-1-git-send-email-liuhangbin@gmail.com> References: <1513838730-14033-1-git-send-email-liuhangbin@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes: 309795f4bec ("l2tp: Add netlink control API for L2TP") Reported-by: Jianlin Shi Signed-off-by: Hangbin Liu --- net/l2tp/l2tp_netlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index a1f24fb..36378b4 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c @@ -761,6 +761,8 @@ static int l2tp_nl_session_send(struct sk_buff *skb, u32 portid, u32 seq, int fl if ((session->ifname[0] && nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) || + (session->offset && + nla_put_u16(skb, L2TP_ATTR_OFFSET, session->offset)) || (session->cookie_len && nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len, &session->cookie[0])) ||