From owner-freebsd-questions@FreeBSD.ORG Mon Aug 13 15:20:33 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49C041065680 for ; Mon, 13 Aug 2012 15:20:33 +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 106FB8FC16 for ; Mon, 13 Aug 2012 15:20:32 +0000 (UTC) Received: by obbun3 with SMTP id un3so9492252obb.13 for ; Mon, 13 Aug 2012 08:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bnTlzO64eGHR8kOCc1lkn8ACv475XO9DPj+XwOzzXG8=; b=lylApt8JEStSHQPJ1XnZCEFniD4Kc9jL7L6w0BigIcKH98FeGgMeMLdBRwTlX0R05W /eTIH8AlV6dvlfVbA/nsBDo8oBJfqgWJUdhru2DYlIT53REyw8MPZodPgNIwvTwKItQU H/Fb2FcHeb0bYC9sIgngbhVngnXZoDsQfU84XB/Pd4lqdzyl1Y70zq6FUAuaL6A924j4 MHIjzl90zrJwuKV2jB2cmO/FxXWEjh0SIKJAWxFXALdrHjt8qv8UQYFHtxHklmuRhu5g Q7bLGHAmHGwQyG16IckvDSbdD4YXQRcrJiamiKglBz4jAqo9MZw7g1PQTKpqAda9981F Trdw== MIME-Version: 1.0 Received: by 10.182.174.68 with SMTP id bq4mr12592989obc.53.1344871232091; Mon, 13 Aug 2012 08:20:32 -0700 (PDT) Received: by 10.76.84.202 with HTTP; Mon, 13 Aug 2012 08:20:32 -0700 (PDT) Date: Mon, 13 Aug 2012 20:50:32 +0530 Message-ID: From: Venkat Duvvuru To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ether_vlanencap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2012 15:20:33 -0000 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? /Venkat