From owner-freebsd-net@FreeBSD.ORG Mon Nov 15 01:27:54 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCD7C106564A for ; Mon, 15 Nov 2010 01:27:54 +0000 (UTC) (envelope-from Rozhuk_I@mail.ru) Received: from fallback8.mail.ru (fallback8.mail.ru [94.100.176.136]) by mx1.freebsd.org (Postfix) with ESMTP id 832C38FC12 for ; Mon, 15 Nov 2010 01:27:54 +0000 (UTC) Received: from smtp13.mail.ru (smtp13.mail.ru [94.100.176.90]) by fallback8.mail.ru (mPOP.Fallback_MX) with ESMTP id 77A50CD339 for ; Mon, 15 Nov 2010 04:12:17 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Reply-To; bh=DvHicy58WV9ncRQHog56wbZA8uANMsM8IyGSiHZxr78=; b=CrsCJcoM2YyFrpVS9R2oQ9r5nJWKX/6GMQ2UlqKaj9LF85oK8fPC+bdkbIZHj3NR2XXPzc/QhvXdEXAYtZ4WwMcWcfENGNJlQc96qKeYNwTpd2j1/F9AtZQvPRjsfc1Q; Received: from [92.124.34.184] (port=30123 helo=rimwks1x64) by smtp13.mail.ru with asmtp id 1PHncF-0006yP-00 for freebsd-net@freebsd.org; Mon, 15 Nov 2010 04:12:15 +0300 From: "Rozhuk Ivan" To: Date: Mon, 15 Nov 2010 09:12:13 +0800 Message-ID: <006d01cb8462$23ff81c0$6bfe8540$@ru> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuEYiGybtyVkIMTRKKeOfAOXaKDNw== Content-Language: ru X-Mras: Ok Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk_I@mail.ru List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 01:27:54 -0000 This is a patched version of original function code /* * If underlying interface can not do VLAN tag insertion itself * then attach a packet tag that holds it. */ if ((m->m_flags & M_VLANTAG) && (ifp->if_capenable & IFCAP_VLAN_HWTAGGING) =3D=3D 0) { m =3D ether_vlanencap(m, m->m_pkthdr.ether_vtag); if (m =3D=3D NULL) { ifp->if_oerrors++; return (ENOBUFS); } m->m_flags &=3D ~M_VLANTAG; } was added =A0 -- Rozhuk Ivan =A0=20