how to set VLAN tag for outgoing packets from program



Hello,

After browsing Internet for a while I could not find any code
on how to set VLAN tag for outgoing packets from a program and for
the program.

Are there any functions/ioctls to set VLAN things :) ?


Many thanks in advance,
Vlad.

.