Received: by mail.netbsd.org (Postfix, from userid 605) id 417FD84D51; Tue, 13 Mar 2018 17:42:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2F4DB84E71 for ; Tue, 13 Mar 2018 17:42:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id dwdianD92VrW for ; Tue, 13 Mar 2018 17:42:39 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id AAB6D84E65 for ; Tue, 13 Mar 2018 17:42:39 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id A7B70FB40; Tue, 13 Mar 2018 17:42:39 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 13 Mar 2018 17:42:39 +0000 From: "Soren Jacobsen" Subject: CVS commit: [netbsd-6-1] src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20180313174239.A7B70FB40@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Soren Jacobsen" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: snj Date: Tue Mar 13 17:42:39 UTC 2018 Modified Files: src/sys/net [netbsd-6-1]: if_mpls.c src/sys/netmpls [netbsd-6-1]: mpls_ttl.c Log Message: Pull up following revision(s) (requested by uwe in ticket #1534): sys/net/if_mpls.c: 1.31-1.33 via patch sys/netmpls/mpls_ttl.c: 1.9 via patch Style, and fix several bugs: - ip4_check(), mpls_unlabel_inet() and mpls_unlabel_inet6() perform pullups, so we need to pass the updated pointers back - in mpls_lse() the route is not always freed Looks a little better now. -- Kick MPLS packets earlier. -- Several changes: * In mpls_unlabel_inet, copy the label locally. It's not incorrect to keep a pointer on the mbuf, but it's bug-friendly. * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we just want to make sure that m_copydata won't fail, but if we were guaranteed that m has M_PKTHDR set, we could simply check the length against m->m_pkthdr.len. To generate a diff of this commit: cvs rdiff -u -r1.8.22.1 -r1.8.22.2 src/sys/net/if_mpls.c cvs rdiff -u -r1.3 -r1.3.32.1 src/sys/netmpls/mpls_ttl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.