Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2012 17:21:35 +0530
From:      Venkat Duvvuru <venkatduvvuru.ml@gmail.com>
To:        Julian Elischer <julian@freebsd.org>, freebsd-net@freebsd.org
Subject:   Re: ether_vlanencap
Message-ID:  <CAGdae7Ya0itEeFbEKuv8iO4FccC%2Bd6kfbLR_iL_ymfkxnjdBVA@mail.gmail.com>
In-Reply-To: <CAGdae7YZx6=o7g5krgXH9q4iunh0gKVnfL8TEB41b1RFghxZPw@mail.gmail.com>
References:  <CAGdae7YiNm6X-Sj4aqP8hgf8G3zmhwbAXCS4X2mfiDBCBgz3gg@mail.gmail.com> <5029EA86.8020808@freebsd.org> <CAGdae7YZx6=o7g5krgXH9q4iunh0gKVnfL8TEB41b1RFghxZPw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It's working fine...I was interpreting it wrongly. Sorry!!

On Tue, Aug 14, 2012 at 2:47 PM, Venkat Duvvuru
<venkatduvvuru.ml@gmail.com>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 <julian@freebsd.org>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<http://lists.freebsd.org/mailman/listinfo/freebsd-net>;
>>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@**freebsd.org<freebsd-net-unsubscribe@freebsd.org>
>>> "
>>>
>>>
>>>
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGdae7Ya0itEeFbEKuv8iO4FccC%2Bd6kfbLR_iL_ymfkxnjdBVA>