ether_vlanencap

Venkat Duvvuru venkatduvvuru.ml at gmail.com
Tue Aug 14 11:51:36 UTC 2012


It's working fine...I was interpreting it wrongly. Sorry!!

On Tue, Aug 14, 2012 at 2:47 PM, Venkat Duvvuru
<venkatduvvuru.ml at 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 at 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 at 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 at freebsd.org>
>>> "
>>>
>>>
>>>
>>
>


More information about the freebsd-net mailing list