LWIP:添加支持Vlan Taggin
我运行了LWIP堆栈2.0.2版,我可以无问题广播ENET帧:
status_t status = ENET_DRV_SendFrame(INST_ETHERNET1, 0U, &buff, NULL);
if(status != STATUS_SUCCESS)
{
printf("cannot send eth frame \r\n");
}
现在我需要添加VLAN支持。
我试图在文件lwipopts.h中添加为VLAN支持的定义,
#define ETHARP_SUPPORT_VLAN 1
但这似乎还不够。 请任何建议。
I run a LWIP stack version 2.0.2, I can broadcast ENET frames without issue:
status_t status = ENET_DRV_SendFrame(INST_ETHERNET1, 0U, &buff, NULL);
if(status != STATUS_SUCCESS)
{
printf("cannot send eth frame \r\n");
}
Now I have a requirement that I should add VLAN support.
I tried to add the define for VLAN support in the file lwipopts.h
#define ETHARP_SUPPORT_VLAN 1
But this seems not enough.
any suggestion please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论