This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK doesn't add VLAN header

Hi all,

I'm using the C6657 EVM and I need to add a VLAN to ethernet interface.

I have a simple project where I have included the NDK; I've added a VLAN using this simple code from the programmer guide:

prio_mapping[0] = 7;
prio_mapping[1] = 5;
prio_mapping[2] = 0;
prio_mapping[3] = 0;
prio_mapping[4] = 0;
prio_mapping[5] = 0;
prio_mapping[6] = 0;
prio_mapping[7] = 0;
/* Use the VLAN API to create a new VLAN device. */
if (VLANAddDevice (1, 10, 0, prio_mapping) < 0)
printf ("Error VLAN Failed errcode=%d\n");


The expected result is the VLAN 10 tag insertion in outgoing packets, but it doesn't happen!

Also using the client example and adding the vlan from console, the outgoing packet doesn't have the vlan tag.

Is it a known issue of NDK?

Thanks

Matteo