Author Topic: VLAN  (Read 8450 times)

Offline hervé

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
VLAN
« on: January 06, 2010, 03:57:14 PM »
Hello Mark,

I activated the SUPPORT_VLAN but got the following errors :

Code: [Select]
.\ObjectFiles\TGIP_BM.axf: Error: L6218E: Undefined symbol vlan_active (referred from ethernet.o).
.\ObjectFiles\TGIP_BM.axf: Error: L6218E: Undefined symbol vlan_vid (referred from ethernet.o).

It looks like some files are missing, isn't it?

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: VLAN
« Reply #1 on: January 06, 2010, 05:35:49 PM »
Hi Hervé

These are two global variables that need to be supplied by the application:

#ifdef SUPPORT_VLAN
    extern int vlan_active;
    extern unsigned short vlan_vid;
#endif


VLAN operation is enabled and disabled by the application setting vlan_active to 0 or 1

vlan_vid is the identifier to be used, which can be changed by the application during operation if needed.

Unfortunately VLAN was added quite a long time ago and this operation, although very simple, is not particularly typical of the project. It was probably described in a release note at the time but I don't know of any other documentation. It is however quite a simple operation so shouldn't cause any problems...

Regards

Mark


Offline hervé

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: VLAN
« Reply #2 on: January 07, 2010, 03:44:38 PM »
Thanks for your comments