From owner-freebsd-net@FreeBSD.ORG Tue Aug 14 11:51:36 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E6FB106566B; Tue, 14 Aug 2012 11:51:36 +0000 (UTC) (envelope-from venkatduvvuru.ml@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C5FFD8FC14; Tue, 14 Aug 2012 11:51:35 +0000 (UTC) Received: by obbun3 with SMTP id un3so586828obb.13 for ; Tue, 14 Aug 2012 04:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=aRI36GHEgDmjk+B7p/q5Am1hAOpn6Fgx3+ITmO+mj54=; b=LIbxbsRJ/AoNwTyqEhufmJocoFC8YdAFhuPd53YneS81eJ3mYd2tXhXQStEg77Ezgv G1LC2hocQYWdNjiH5mO11Ndo4+4t/ih2xJxIAK3Pz8vS6Nx2oCeJk6tAWdCt/0TiSt5i tzvycRuxCHEUgNPYdZVMxlXBJbNx1TJESLOFqfiOUsT93b+VP++sSBHf/LZvLT2G2IbO n0r/s2TnyOhy6gp0ksoxV4BNDJPMeOYaTQNFzOouWowCWft+CzCmrfnXb/JT3jGtpTgn XHHmRZ5usIrp20YY4pug3E5Ro3XXJfwZveCumB6WH45Y0blq8dQHFG/xNlWZLXwwk4+u V+Vw== MIME-Version: 1.0 Received: by 10.182.72.9 with SMTP id z9mr18238792obu.5.1344945095062; Tue, 14 Aug 2012 04:51:35 -0700 (PDT) Received: by 10.76.84.202 with HTTP; Tue, 14 Aug 2012 04:51:35 -0700 (PDT) In-Reply-To: References: <5029EA86.8020808@freebsd.org> Date: Tue, 14 Aug 2012 17:21:35 +0530 Message-ID: From: Venkat Duvvuru To: Julian Elischer , freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: ether_vlanencap X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 11:51:36 -0000 It's working fine...I was interpreting it wrongly. Sorry!! On Tue, Aug 14, 2012 at 2:47 PM, Venkat Duvvuru wrote: > My question is more about "ether_vlanencap" api. This api is supposed to > insert vlantag and tranform Ethernet header into an Ethernet header with > 802.1Q encapsulation and if it is unable to prepend then it will allocate a > new mbuf and populate the data including the vlan tag. > But it is not happening in my case, I'm passing mbuf and vlantag to this > api and I get partial junk data in the packet and a corrupted m_len as > well. > > Folks, any inputs? > /Venkat > > On Tue, Aug 14, 2012 at 11:34 AM, Julian Elischer wrote: > >> On 8/13/12 10:50 PM, Venkat Duvvuru wrote: >> >>> Hi, >>> I'm trying to insert vlan tag into the packet using "ether_vlanencap" but >>> the packet is getting corrupted in the mbuf and m_len is also showing a >>> wrong length. >>> Am I doing something wrong here? Can I directly pass mbuf pointer and >>> vlan >>> tag to this api for inserting the vlan tag? >>> >> >> I think you can do it with the vlan netgraph node.. >> >> >>> /Venkat >>> ______________________________**_________________ >>> freebsd-net@freebsd.org mailing list >>> http://lists.freebsd.org/**mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@**freebsd.org >>> " >>> >>> >>> >> >