gpt4 book ai didi

c - 如何修复 :UDP packet send through vlan(eth0. 4092),到达 eth0 和 eth0.4092

转载 作者:太空宇宙 更新时间:2023-11-04 11:54:45 24 4
gpt4 key购买 nike

我尝试使用“setsockopt bind to interface”通过 vlan 接口(interface)发送 snmp UDP 数据包,但是在客户端,当我使用 wireshark 捕获数据包时,我可以在 eth0.4092 和 eth0 中捕获数据包。

1:我尝试使用 setsockopt 绑定(bind)接口(interface)名称,它有效但数据包到达 eth0 和 eth0.4092

2:我尝试绑定(bind)到特定地址,没有变化

预期:数据包应该只到达 vlan 接口(interface)。

最佳答案

预计,带有 vlan 标签的数据包到达 eth0,去除 vlan 标签的数据包到达 eth0.4092,vlan 是一种软件功能,因此数据包应该到达物理接口(interface),然后才移动到虚拟接口(interface)。

关于c - 如何修复 :UDP packet send through vlan(eth0. 4092),到达 eth0 和 eth0.4092,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54752533/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com